Changeset 219728 in webkit
- Timestamp:
- Jul 21, 2017 9:02:22 AM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r219725 r219728 1 2017-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 1 16 2017-07-21 Yusuke Suzuki <utatane.tea@gmail.com> 2 17 -
trunk/Tools/Scripts/build-webkit
r219486 r219728 90 90 --help Show this help message 91 91 --clean Cleanup the build directory 92 --generate-project-only Only generate project files 92 93 --debug Compile with Debug configuration 93 94 --release Compile with Release configuration … … 262 263 die "Run \"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcvarsall.bat\" before build-webkit when using ninja"; 263 264 } 265 266 exit 0 if isGenerateProjectOnly(); 267 264 268 chdirWebKit(); 265 269 if (canUseNinja()) { … … 279 283 } 280 284 } elsif (isAppleCocoaWebKit() && !isCMakeBuild()) { 285 exit 0 if isGenerateProjectOnly(); 286 281 287 # Build, and abort if the build fails. 282 288 for my $dir (@projects) { -
trunk/Tools/Scripts/webkitdirs.pm
r218344 r219728 140 140 my $generateDsym; 141 141 my $isCMakeBuild; 142 my $isGenerateProjectOnly; 142 143 my $isWin64; 143 144 my $isInspectorFrontend; … … 2136 2137 $returnCode = exitStatus(generateBuildSystemFromCMakeProject($prefixPath, @cmakeArgs)); 2137 2138 exit($returnCode) if $returnCode; 2139 exit 0 if isGenerateProjectOnly(); 2138 2140 2139 2141 $returnCode = exitStatus(buildCMakeGeneratedProject($makeArgs)); … … 2163 2165 determineIsCMakeBuild(); 2164 2166 return $isCMakeBuild; 2167 } 2168 2169 sub determineIsGenerateProjectOnly() 2170 { 2171 return if defined($isGenerateProjectOnly); 2172 $isGenerateProjectOnly = checkForArgumentAndRemoveFromARGV("--generate-project-only"); 2173 } 2174 2175 sub isGenerateProjectOnly() 2176 { 2177 determineIsGenerateProjectOnly(); 2178 return $isGenerateProjectOnly; 2165 2179 } 2166 2180
Note: See TracChangeset
for help on using the changeset viewer.