Changeset 94288 in webkit


Ignore:
Timestamp:
Sep 1, 2011 5:24:41 AM (13 years ago)
Author:
Csaba Osztrogonác
Message:

[Qt] Build dependency problems
https://bugs.webkit.org/show_bug.cgi?id=38054

Make clean build after the defines are changed.

Patch by Kristóf Kosztyó <kkristof@inf.u-szeged.hu> on 2011-09-01
Reviewed by Csaba Osztrogonác.

Source/WebCore:

  • features.pri:

Tools:

  • Scripts/webkitdirs.pm:

(buildQMakeProject):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r94287 r94288  
     12011-09-01  Kristóf Kosztyó  <kkristof@inf.u-szeged.hu>
     2
     3        [Qt] Build dependency problems
     4        https://bugs.webkit.org/show_bug.cgi?id=38054
     5
     6        Make clean build after the defines are changed.
     7
     8        Reviewed by Csaba Osztrogonác.
     9
     10        * features.pri:
     11
    1122011-09-01  Vsevolod Vlasov  <vsevik@chromium.org>
    213
  • trunk/Source/WebCore/features.pri

    r94121 r94288  
    214214        DEFINES += WTF_USE_QT_MULTIMEDIA=1
    215215    }
    216 }
    217 
    218 # Used to compute defaults for the build-webkit script
    219 CONFIG(compute_defaults) {
    220     message($$DEFINES)
    221     error("Done computing defaults")
    222216}
    223217
     
    268262contains(DEFINES, ENABLE_VIDEO_TRACK=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_VIDEO_TRACK=1
    269263contains(DEFINES, ENABLE_DATA_TRANSFER_ITEMS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_DATA_TRANSFER_ITEMS=1
     264
     265# Used to compute defaults for the build-webkit script
     266# Don't place anything after this!
     267CONFIG(compute_defaults) {
     268    message($$DEFINES)
     269    error("Done computing defaults")
     270}
  • trunk/Tools/ChangeLog

    r94263 r94288  
     12011-09-01  Kristóf Kosztyó  <kkristof@inf.u-szeged.hu>
     2
     3        [Qt] Build dependency problems
     4        https://bugs.webkit.org/show_bug.cgi?id=38054
     5
     6        Make clean build after the defines are changed.
     7
     8        Reviewed by Csaba Osztrogonác.
     9
     10        * Scripts/webkitdirs.pm:
     11        (buildQMakeProject):
     12
    1132011-08-31  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Tools/Scripts/webkitdirs.pm

    r93939 r94288  
    16721672    my $dir = File::Spec->canonpath(productDir());
    16731673
     1674    my $originalCwd = getcwd();
     1675    chdir File::Spec->catfile(sourceDir(), "Source", "WebCore");
     1676    my $defaults = `$qmakebin CONFIG+=compute_defaults 2>&1`;
     1677    chdir $originalCwd;
    16741678
    16751679    # On Symbian qmake needs to run in the same directory where the pro file is located.
     
    16801684    File::Path::mkpath($dir);
    16811685    chdir $dir or die "Failed to cd into " . $dir . "\n";
     1686
     1687    my $pathToDefaultsTxt = File::Spec->catfile( $dir, "defaults.txt" );
     1688    my $defaultsTxt = "";
     1689    if(open DEFAULTS, "$pathToDefaultsTxt"){
     1690        $defaultsTxt = <DEFAULTS>.<DEFAULTS>;
     1691        close (DEFAULTS);
     1692    }
     1693    if(not($defaults eq $defaultsTxt)){
     1694        print "Make clean build because the Defines are changed.\n";
     1695        chdir $originalCwd;
     1696        File::Path::remove_tree($dir);
     1697        File::Path::mkpath($dir);
     1698        chdir $dir or die "Failed to cd into " . $dir . "\n";
     1699        open DEFAULTS, ">$pathToDefaultsTxt";
     1700        print DEFAULTS $defaults;
     1701        close (DEFAULTS);
     1702    }
    16821703
    16831704    print "Generating derived sources\n\n";
Note: See TracChangeset for help on using the changeset viewer.