Changeset 245037 in webkit


Ignore:
Timestamp:
May 7, 2019 2:38:27 PM (5 years ago)
Author:
Keith Rollin
Message:

Add option to build-webkit to control whether or not XCBuild is used
https://bugs.webkit.org/show_bug.cgi?id=197668
<rdar://problem/50549728>

Reviewed by Tim Horton.

Add --[no-]xcbuild to build-webkit to force the use of XCBuild or not.
Also update build-webkit and the makefiles with the foundation for
automatically using XCBuild when the conditions allow it. This latter
facility is currently turned off until Xcode fully supports building
WebKit with XCBuild.

.:

  • Makefile.shared:

Tools:

  • Scripts/build-webkit:
  • Scripts/webkitdirs.pm:

(XcodeOptions):
(canUseXCBuild):

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r244960 r245037  
     12019-05-07  Keith Rollin  <krollin@apple.com>
     2
     3        Add option to build-webkit to control whether or not XCBuild is used
     4        https://bugs.webkit.org/show_bug.cgi?id=197668
     5        <rdar://problem/50549728>
     6
     7        Reviewed by Tim Horton.
     8
     9        Add --[no-]xcbuild to build-webkit to force the use of XCBuild or not.
     10        Also update build-webkit and the makefiles with the foundation for
     11        automatically using XCBuild when the conditions allow it. This latter
     12        facility is currently turned off until Xcode fully supports building
     13        WebKit with XCBuild.
     14
     15        * Makefile.shared:
     16
    1172019-05-06  Christopher Reid  <chris.reid@sony.com>
    218
  • trunk/Makefile.shared

    r244396 r245037  
    4242        ifneq (, $(shell which ccache))
    4343                XCODE_OPTIONS += WK_USE_CCACHE=YES
     44        endif
     45endif
     46
     47ifeq ($(findstring UseNewBuildSystem,$(ARGS)),)
     48        CAN_USE_XCBUILD = $(shell perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print canUseXCBuild()')
     49        ifeq ($(CAN_USE_XCBUILD),1)
     50                XCODE_OPTIONS += -UseNewBuildSystem=YES
     51                XCODE_OPTIONS += USE_NEW_BUILD_SYSTEM=YES
     52        else
     53                XCODE_OPTIONS += -UseNewBuildSystem=NO
    4454        endif
    4555endif
  • trunk/Tools/ChangeLog

    r245036 r245037  
     12019-05-07  Keith Rollin  <krollin@apple.com>
     2
     3        Add option to build-webkit to control whether or not XCBuild is used
     4        https://bugs.webkit.org/show_bug.cgi?id=197668
     5        <rdar://problem/50549728>
     6
     7        Reviewed by Tim Horton.
     8
     9        Add --[no-]xcbuild to build-webkit to force the use of XCBuild or not.
     10        Also update build-webkit and the makefiles with the foundation for
     11        automatically using XCBuild when the conditions allow it. This latter
     12        facility is currently turned off until Xcode fully supports building
     13        WebKit with XCBuild.
     14
     15        * Scripts/build-webkit:
     16        * Scripts/webkitdirs.pm:
     17        (XcodeOptions):
     18        (canUseXCBuild):
     19
    1202019-05-07  Andy Estes  <aestes@apple.com>
    221
  • trunk/Tools/Scripts/build-webkit

    r244895 r245037  
    7474my $noExperimentalFeatures = 0;
    7575my $ltoMode = "default";
     76my $xcbuild = undef;
    7677my $startTime = time();
    7778my $archs32bit = 0;
     
    116117  --analyze                         Enable static anaylsis (iOS and Mac only)
    117118  --lto-mode=<mode>                 Set Link Time Optimization mode (full, thin, or none) (LLVM only)
     119  --[no-]xcbuild                    Force the use of XCBuild or not
    118120
    119121  --gtk                             Build the GTK+ port
     
    154156    'no-experimental-features' => \$noExperimentalFeatures,
    155157    'lto-mode=s' => \$ltoMode,
     158    'xcbuild!' => \$xcbuild,
    156159    'skip-library-update' => \$skipLibraryUpdate,
    157160    'use-ccache!' => \$useCCache,
     
    208211if (isAppleCocoaWebKit()) {
    209212    push @options, XcodeOptions();
     213
     214    if (not defined $xcbuild) {
     215        $xcbuild = canUseXCBuild();
     216    }
     217
     218    if ($xcbuild) {
     219        push @options, "-UseNewBuildSystem=YES";
     220        push @options, "USE_NEW_BUILD_SYSTEM=YES";
     221    } else {
     222        push @options, "-UseNewBuildSystem=NO";
     223    }
     224
    210225    sub option($$)
    211226    {
  • trunk/Tools/Scripts/webkitdirs.pm

    r244895 r245037  
    850850
    851851    my @options;
    852     push @options, "-UseNewBuildSystem=NO";
    853852    push @options, "-UseSanitizedBuildSystemEnvironment=YES";
    854853    push @options, "-ShowBuildOperationDuration=YES";
     
    894893{
    895894    return "RUN_CLANG_STATIC_ANALYZER=YES";
     895}
     896
     897sub canUseXCBuild()
     898{
     899    return 0;
    896900}
    897901
Note: See TracChangeset for help on using the changeset viewer.