Changeset 219728 in webkit


Ignore:
Timestamp:
Jul 21, 2017 9:02:22 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[CMake] Add an option to stop build after generating project files
https://bugs.webkit.org/show_bug.cgi?id=174664

Patch by Yousuke Kimoto <Yousuke.Kimoto@sony.com> on 2017-07-21
Reviewed by Konstantin Tokarev.

Add "--generate-project-only" to stop build after generating project files.

  • Scripts/build-webkit: Add '--generate-project-only' option and a checker to stop build.
  • Scripts/webkitdirs.pm: Add a function to check '--generate-project-only' option and the same checker as the above

(buildCMakeProjectOrExit): Add a cheker to stop build stop build after generating project files.
(determineIsGenerateProjectOnly): Check if '--generate-project-only' option is specified
(isGenerateProjectOnly): ditto

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r219725 r219728  
     12017-07-21  Yousuke Kimoto  <Yousuke.Kimoto@sony.com>
     2
     3        [CMake] Add an option to stop build after generating project files
     4        https://bugs.webkit.org/show_bug.cgi?id=174664
     5
     6        Reviewed by Konstantin Tokarev.
     7
     8        Add "--generate-project-only" to stop build after generating project files.
     9
     10        * Scripts/build-webkit: Add '--generate-project-only' option and a checker to stop build.
     11        * Scripts/webkitdirs.pm: Add a function to check '--generate-project-only' option and the same checker as the above
     12        (buildCMakeProjectOrExit): Add a cheker to stop build stop build after generating project files.
     13        (determineIsGenerateProjectOnly): Check if '--generate-project-only' option is specified
     14        (isGenerateProjectOnly): ditto
     15
    1162017-07-21  Yusuke Suzuki  <utatane.tea@gmail.com>
    217
  • trunk/Tools/Scripts/build-webkit

    r219486 r219728  
    9090  --help                            Show this help message
    9191  --clean                           Cleanup the build directory
     92  --generate-project-only           Only generate project files
    9293  --debug                           Compile with Debug configuration
    9394  --release                         Compile with Release configuration
     
    262263        die "Run \"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat\" before build-webkit when using ninja";
    263264    }
     265
     266    exit 0 if isGenerateProjectOnly();
     267
    264268    chdirWebKit();
    265269    if (canUseNinja()) {
     
    279283    }
    280284} elsif (isAppleCocoaWebKit() && !isCMakeBuild()) {
     285    exit 0 if isGenerateProjectOnly();
     286
    281287    # Build, and abort if the build fails.
    282288    for my $dir (@projects) {
  • trunk/Tools/Scripts/webkitdirs.pm

    r218344 r219728  
    140140my $generateDsym;
    141141my $isCMakeBuild;
     142my $isGenerateProjectOnly;
    142143my $isWin64;
    143144my $isInspectorFrontend;
     
    21362137    $returnCode = exitStatus(generateBuildSystemFromCMakeProject($prefixPath, @cmakeArgs));
    21372138    exit($returnCode) if $returnCode;
     2139    exit 0 if isGenerateProjectOnly();
    21382140
    21392141    $returnCode = exitStatus(buildCMakeGeneratedProject($makeArgs));
     
    21632165    determineIsCMakeBuild();
    21642166    return $isCMakeBuild;
     2167}
     2168
     2169sub determineIsGenerateProjectOnly()
     2170{
     2171    return if defined($isGenerateProjectOnly);
     2172    $isGenerateProjectOnly = checkForArgumentAndRemoveFromARGV("--generate-project-only");
     2173}
     2174
     2175sub isGenerateProjectOnly()
     2176{
     2177    determineIsGenerateProjectOnly();
     2178    return $isGenerateProjectOnly;
    21652179}
    21662180
Note: See TracChangeset for help on using the changeset viewer.