Changeset 248106 in webkit


Ignore:
Timestamp:
Aug 1, 2019 10:52:01 AM (5 years ago)
Author:
Keith Rollin
Message:

Update TestWebKitAPI for XCBuild
https://bugs.webkit.org/show_bug.cgi?id=200311
<rdar://problem/53773804>

Reviewed by Alex Christensen.

Bug 199728 (svn 247402) updated TestWebKitAPI to use the unified-build
technique. Now update WebKitLegacy to build under XCBuild after those
changes. This work involves adding an "Apply Configuration to
XCFileLists" build target, adding a check-xcfilelists.sh script,
adding a "Check xcfilelists" build phase that calls that script,
adding knowledge of the project to the generate-xcfilelists script,
creating new .xcfilelist files, and adding those to the project.

  • Scripts/webkitpy/generate_xcfilelists_lib/application.py:

(Application.init):

  • Scripts/webkitpy/generate_xcfilelists_lib/generators.py:

(WebKitTestRunnerGenerator._get_generate_derived_sources_script):
(TestWebKitAPIGenerator):
(TestWebKitAPIGenerator._get_project_file_path):
(TestWebKitAPIGenerator._get_generate_unified_sources_script):

  • TestWebKitAPI/Scripts/check-xcfilelists.sh: Added.
  • TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
  • TestWebKitAPI/UnifiedSources-output.xcfilelist: Added.
Location:
trunk/Tools
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r248104 r248106  
     12019-08-01  Keith Rollin  <krollin@apple.com>
     2
     3        Update TestWebKitAPI for XCBuild
     4        https://bugs.webkit.org/show_bug.cgi?id=200311
     5        <rdar://problem/53773804>
     6
     7        Reviewed by Alex Christensen.
     8
     9        Bug 199728 (svn 247402) updated TestWebKitAPI to use the unified-build
     10        technique. Now update WebKitLegacy to build under XCBuild after those
     11        changes. This work involves adding an "Apply Configuration to
     12        XCFileLists" build target, adding a check-xcfilelists.sh script,
     13        adding a "Check xcfilelists" build phase that calls that script,
     14        adding knowledge of the project to the generate-xcfilelists script,
     15        creating new .xcfilelist files, and adding those to the project.
     16
     17        * Scripts/webkitpy/generate_xcfilelists_lib/application.py:
     18        (Application.__init__):
     19        * Scripts/webkitpy/generate_xcfilelists_lib/generators.py:
     20        (WebKitTestRunnerGenerator._get_generate_derived_sources_script):
     21        (TestWebKitAPIGenerator):
     22        (TestWebKitAPIGenerator._get_project_file_path):
     23        (TestWebKitAPIGenerator._get_generate_unified_sources_script):
     24        * TestWebKitAPI/Scripts/check-xcfilelists.sh: Added.
     25        * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
     26        * TestWebKitAPI/UnifiedSources-output.xcfilelist: Added.
     27
    1282019-08-01  Youenn Fablet  <youenn@apple.com>
    229
  • trunk/Tools/Scripts/webkitpy/generate_xcfilelists_lib/application.py

    r248051 r248106  
    9999            "DumpRenderTree":   Generators.DumpRenderTreeGenerator,
    100100            "WebKitTestRunner": Generators.WebKitTestRunnerGenerator,
     101            "TestWebKitAPI":    Generators.TestWebKitAPIGenerator,
    101102        }
    102103
  • trunk/Tools/Scripts/webkitpy/generate_xcfilelists_lib/generators.py

    r248051 r248106  
    740740    def _get_generate_derived_sources_script(self):
    741741        return os.path.join(self._get_project_dir(), "Scripts", "generate-derived-sources.sh")
     742
     743
     744class TestWebKitAPIGenerator(BaseGenerator):
     745    VALID_PLATFORMS = ("macosx", "iphoneos", "iphonesimulator", "watchos", "watchsimulator", "appletvos", "appletvsimulator")
     746    VALID_CONFIGURATIONS = ("Debug", "Release", "Production")
     747
     748    @util.LogEntryExit
     749    def _get_project_file_path(self):
     750        return os.path.join(self.application.get_opensource_dir(), "Tools", "TestWebKitAPI", "TestWebKitAPI.xcodeproj")
     751
     752    @util.LogEntryExit
     753    def _get_generate_unified_sources_script(self):
     754        return os.path.join(self._get_project_dir(), "Scripts", "generate-unified-sources.sh")
  • trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj

    r248104 r248106  
    44        classes = {
    55        };
    6         objectVersion = 46;
     6        objectVersion = 51;
    77        objects = {
    88
    99/* Begin PBXAggregateTarget section */
     10                537CF84322EFD64100C6EBB3 /* Apply Configuration to XCFileLists */ = {
     11                        isa = PBXAggregateTarget;
     12                        buildConfigurationList = 537CF84622EFD64100C6EBB3 /* Build configuration list for PBXAggregateTarget "Apply Configuration to XCFileLists" */;
     13                        buildPhases = (
     14                                537CF84722EFD65000C6EBB3 /* ShellScript */,
     15                        );
     16                        dependencies = (
     17                        );
     18                        name = "Apply Configuration to XCFileLists";
     19                        productName = "Apply Configuration to XCFileLists";
     20                };
    1021                5C9D921422D7DA02008E9266 /* Generate Unified Sources */ = {
    1122                        isa = PBXAggregateTarget;
     
    2334                        buildConfigurationList = 7C83E02C1D0A5E1000FEBCF3 /* Build configuration list for PBXAggregateTarget "All" */;
    2435                        buildPhases = (
     36                                537CF84822EFD72000C6EBB3 /* Check .xcfilelists */,
    2537                        );
    2638                        dependencies = (
     
    40684080                                LastUpgradeCheck = 1000;
    40694081                                TargetAttributes = {
     4082                                        537CF84322EFD64100C6EBB3 = {
     4083                                                CreatedOnToolsVersion = 11.0;
     4084                                        };
    40704085                                        7C83E02B1D0A5E1000FEBCF3 = {
    40714086                                                CreatedOnToolsVersion = 8.0;
     
    41074122                                BC57597F126E74AF006F0F12 /* InjectedBundleTestWebKitAPI */,
    41084123                                A13EBB481B87339E00097110 /* WebProcessPlugIn */,
     4124                                537CF84322EFD64100C6EBB3 /* Apply Configuration to XCFileLists */,
    41094125                        );
    41104126                };
     
    41224138
    41234139/* Begin PBXShellScriptBuildPhase section */
     4140                537CF84722EFD65000C6EBB3 /* ShellScript */ = {
     4141                        isa = PBXShellScriptBuildPhase;
     4142                        buildActionMask = 2147483647;
     4143                        files = (
     4144                        );
     4145                        inputFileListPaths = (
     4146                        );
     4147                        inputPaths = (
     4148                        );
     4149                        outputFileListPaths = (
     4150                        );
     4151                        outputPaths = (
     4152                        );
     4153                        runOnlyForDeploymentPostprocessing = 0;
     4154                        shellPath = /bin/sh;
     4155                        shellScript = "eval \"${WK_SUBLAUNCH_SCRIPT_PARAMETERS[@]}\"\n";
     4156                };
     4157                537CF84822EFD72000C6EBB3 /* Check .xcfilelists */ = {
     4158                        isa = PBXShellScriptBuildPhase;
     4159                        buildActionMask = 2147483647;
     4160                        files = (
     4161                        );
     4162                        inputFileListPaths = (
     4163                        );
     4164                        inputPaths = (
     4165                        );
     4166                        name = "Check .xcfilelists";
     4167                        outputFileListPaths = (
     4168                        );
     4169                        outputPaths = (
     4170                        );
     4171                        runOnlyForDeploymentPostprocessing = 0;
     4172                        shellPath = /bin/sh;
     4173                        shellScript = "Scripts/check-xcfilelists.sh\n";
     4174                };
    41244175                5C9D921C22D7DA33008E9266 /* ShellScript */ = {
    41254176                        isa = PBXShellScriptBuildPhase;
     
    41354186                        );
    41364187                        outputFileListPaths = (
     4188                                "$(SRCROOT)/UnifiedSources-output.xcfilelist",
    41374189                        );
    41384190                        outputPaths = (
    4139                                 "$(SRCROOT)/UnifiedSources-output.xcfilelist",
    41404191                        );
    41414192                        runOnlyForDeploymentPostprocessing = 0;
     
    49014952                        name = Release;
    49024953                };
     4954                537CF84422EFD64100C6EBB3 /* Debug */ = {
     4955                        isa = XCBuildConfiguration;
     4956                        buildSettings = {
     4957                                CODE_SIGN_STYLE = Automatic;
     4958                                PRODUCT_NAME = "$(TARGET_NAME)";
     4959                        };
     4960                        name = Debug;
     4961                };
     4962                537CF84522EFD64100C6EBB3 /* Release */ = {
     4963                        isa = XCBuildConfiguration;
     4964                        buildSettings = {
     4965                                CODE_SIGN_STYLE = Automatic;
     4966                                PRODUCT_NAME = "$(TARGET_NAME)";
     4967                        };
     4968                        name = Release;
     4969                };
    49034970                5C9D921A22D7DA02008E9266 /* Debug */ = {
    49044971                        isa = XCBuildConfiguration;
     
    50205087                        defaultConfigurationName = Release;
    50215088                };
     5089                537CF84622EFD64100C6EBB3 /* Build configuration list for PBXAggregateTarget "Apply Configuration to XCFileLists" */ = {
     5090                        isa = XCConfigurationList;
     5091                        buildConfigurations = (
     5092                                537CF84422EFD64100C6EBB3 /* Debug */,
     5093                                537CF84522EFD64100C6EBB3 /* Release */,
     5094                        );
     5095                        defaultConfigurationIsVisible = 0;
     5096                        defaultConfigurationName = Release;
     5097                };
    50225098                5C9D921922D7DA02008E9266 /* Build configuration list for PBXAggregateTarget "Generate Unified Sources" */ = {
    50235099                        isa = XCConfigurationList;
Note: See TracChangeset for help on using the changeset viewer.