Changeset 52393 in webkit
- Timestamp:
- Dec 19, 2009 12:53:19 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r52385 r52393 1 2009-12-19 Daniel Bates <dbates@webkit.org> 2 3 Reviewed by Timothy Hatcher. 4 5 https://bugs.webkit.org/show_bug.cgi?id=32462 6 7 Added --inspector-frontend flag to build-webkit to copy any changes 8 to the inspector front-end files to the built WebCore framework. This 9 will make inspector development more consistent with the rest of 10 WebKit development. 11 12 * Scripts/build-webkit: 13 * Scripts/webkitdirs.pm: 14 1 15 2009-12-19 Adam Barth <abarth@webkit.org> 2 16 -
trunk/WebKitTools/Scripts/build-webkit
r51855 r52393 192 192 --gtk Build the GTK+ port 193 193 --qt Build the Qt port 194 --inspector-frontend Copy changes to the inspector front-end files to the build directory 194 195 195 196 --makeargs=<arguments> Optional Makefile flags … … 312 313 removeLibraryDependingOnSVG("WebCore", $svgSupport); 313 314 315 if (isInspectorFrontend()) { 316 exit exitStatus(copyInspectorFrontendFiles()); 317 } 318 314 319 if (isWx()) { 315 320 downloadWafIfNeeded(); -
trunk/WebKitTools/Scripts/webkitdirs.pm
r51932 r52393 64 64 my @wxArgs; 65 65 my $isChromium; 66 my $isInspectorFrontend; 66 67 67 68 # Variables for Win32 support … … 238 239 push(@args, '--wx') if isWx(); 239 240 push(@args, '--chromium') if isChromium(); 241 push(@args, '--inspector-frontend') if isInspectorFrontend(); 240 242 return @args; 241 243 } … … 774 776 } 775 777 return $hasWCSS; 778 } 779 780 sub isInspectorFrontend() 781 { 782 determineIsInspectorFrontend(); 783 return $isInspectorFrontend; 784 } 785 786 sub determineIsInspectorFrontend() 787 { 788 return if defined($isInspectorFrontend); 789 $isInspectorFrontend = checkForArgumentAndRemoveFromARGV("--inspector-frontend"); 776 790 } 777 791 … … 1173 1187 } 1174 1188 1189 sub copyInspectorFrontendFiles 1190 { 1191 my $productDir = productDir(); 1192 my $sourceInspectorPath = sourceDir() . "/WebCore/inspector/front-end/"; 1193 my $inspectorResourcesDirPath = $ENV{"WEBKITINSPECTORRESOURCESDIR"}; 1194 1195 if (!defined($inspectorResourcesDirPath)) { 1196 $inspectorResourcesDirPath = ""; 1197 } 1198 1199 if (isAppleMacWebKit()) { 1200 $inspectorResourcesDirPath = $productDir . "/WebCore.framework/Resources/inspector"; 1201 } elsif (isAppleWinWebKit()) { 1202 $inspectorResourcesDirPath = $productDir . "/WebKit.resources/inspector"; 1203 } elsif (isQt() || isGtk()) { 1204 my $prefix = $ENV{"WebKitInstallationPrefix"}; 1205 $inspectorResourcesDirPath = (defined($prefix) ? $prefix : "/usr/share") . "/webkit-1.0/webinspector"; 1206 } 1207 1208 if (! -d $inspectorResourcesDirPath) { 1209 print "*************************************************************\n"; 1210 print "Cannot find '$inspectorResourcesDirPath'.\n" if (defined($inspectorResourcesDirPath)); 1211 print "Make sure that you have built WebKit first.\n" if (! -d $productDir || defined($inspectorResourcesDirPath)); 1212 print "Optionally, set the environment variable 'WebKitInspectorResourcesDir'\n"; 1213 print "to point to the directory that contains the WebKit Inspector front-end\n"; 1214 print "files for the built WebCore framework.\n"; 1215 print "*************************************************************\n"; 1216 die; 1217 } 1218 return system "rsync", "-aut", "--exclude=/.DS_Store", "--exclude=.svn/", !isQt() ? "--exclude=/WebKit.qrc" : "", $sourceInspectorPath, $inspectorResourcesDirPath; 1219 } 1220 1175 1221 sub buildXCodeProject($$@) 1176 1222 {
Note: See TracChangeset
for help on using the changeset viewer.