Changeset 52393 in webkit


Ignore:
Timestamp:
Dec 19, 2009 12:53:19 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-19 Daniel Bates <dbates@webkit.org>

Reviewed by Timothy Hatcher.

https://bugs.webkit.org/show_bug.cgi?id=32462

Added --inspector-frontend flag to build-webkit to copy any changes
to the inspector front-end files to the built WebCore framework. This
will make inspector development more consistent with the rest of
WebKit development.

  • Scripts/build-webkit:
  • Scripts/webkitdirs.pm:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r52385 r52393  
     12009-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
    1152009-12-19  Adam Barth  <abarth@webkit.org>
    216
  • trunk/WebKitTools/Scripts/build-webkit

    r51855 r52393  
    192192  --gtk                             Build the GTK+ port
    193193  --qt                              Build the Qt port
     194  --inspector-frontend              Copy changes to the inspector front-end files to the build directory
    194195
    195196  --makeargs=<arguments>            Optional Makefile flags
     
    312313removeLibraryDependingOnSVG("WebCore", $svgSupport);
    313314
     315if (isInspectorFrontend()) {
     316    exit exitStatus(copyInspectorFrontendFiles());
     317}
     318
    314319if (isWx()) {
    315320    downloadWafIfNeeded();
  • trunk/WebKitTools/Scripts/webkitdirs.pm

    r51932 r52393  
    6464my @wxArgs;
    6565my $isChromium;
     66my $isInspectorFrontend;
    6667
    6768# Variables for Win32 support
     
    238239    push(@args, '--wx') if isWx();
    239240    push(@args, '--chromium') if isChromium();
     241    push(@args, '--inspector-frontend') if isInspectorFrontend();
    240242    return @args;
    241243}
     
    774776    }
    775777    return $hasWCSS;
     778}
     779
     780sub isInspectorFrontend()
     781{
     782    determineIsInspectorFrontend();
     783    return $isInspectorFrontend;
     784}
     785
     786sub determineIsInspectorFrontend()
     787{
     788    return if defined($isInspectorFrontend);
     789    $isInspectorFrontend = checkForArgumentAndRemoveFromARGV("--inspector-frontend");
    776790}
    777791
     
    11731187}
    11741188
     1189sub 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
    11751221sub buildXCodeProject($$@)
    11761222{
Note: See TracChangeset for help on using the changeset viewer.