Title: [289093] trunk/Tools
Revision
289093
Author
[email protected]
Date
2022-02-03 17:32:46 -0800 (Thu, 03 Feb 2022)

Log Message

[XCBuild] Add headers-only dependencies to projects in Tools/
https://bugs.webkit.org/show_bug.cgi?id=235751

Reviewed by Alexey Proskuryakov.

Many projects in Tools/ depend on WebKit.framework or other products which are upstream in
the build graph. In Make-based sequential builds, WebKit and friends would always build
before Tools; in workspaces, the targets may build in any order.

Add "product dependencies" build phases to targets which do not express
their dependencies through linker options, in the same manner as
https://commits.webkit.org/246026@main.

The legacy build system doesn't understand the "Product Dependencies" phase and thinks we're
trying to copy our own build products, so add an EXCLUDED_SOURCE_FILE_NAMES setting as a
workaround.

* DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Add product dependencies.
* DumpRenderTree/mac/Configurations/Base.xcconfig: Add WK_WHICH_BUILD_SYSTEM.
* DumpRenderTree/mac/Configurations/DumpRenderTreeLibrary.xcconfig: Legacy support.
* TestWebKitAPI/Configurations/Base.xcconfig: Legacy support.
* TestWebKitAPI/Configurations/TestWTFLibrary.xcconfig: Add WK_WHICH_BUILD_SYSTEM.
* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Add product dependencies.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (289092 => 289093)


--- trunk/Tools/ChangeLog	2022-02-04 01:27:47 UTC (rev 289092)
+++ trunk/Tools/ChangeLog	2022-02-04 01:32:46 UTC (rev 289093)
@@ -1,3 +1,29 @@
+2022-02-03  Elliott Williams  <[email protected]>
+
+        [XCBuild] Add headers-only dependencies to projects in Tools/
+        https://bugs.webkit.org/show_bug.cgi?id=235751
+
+        Reviewed by Alexey Proskuryakov.
+
+        Many projects in Tools/ depend on WebKit.framework or other products which are upstream in
+        the build graph. In Make-based sequential builds, WebKit and friends would always build
+        before Tools; in workspaces, the targets may build in any order.
+
+        Add "product dependencies" build phases to targets which do not express
+        their dependencies through linker options, in the same manner as
+        https://commits.webkit.org/246026@main.
+
+        The legacy build system doesn't understand the "Product Dependencies" phase and thinks we're
+        trying to copy our own build products, so add an EXCLUDED_SOURCE_FILE_NAMES setting as a
+        workaround.
+
+        * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Add product dependencies.
+        * DumpRenderTree/mac/Configurations/Base.xcconfig: Add WK_WHICH_BUILD_SYSTEM.
+        * DumpRenderTree/mac/Configurations/DumpRenderTreeLibrary.xcconfig: Legacy support.
+        * TestWebKitAPI/Configurations/Base.xcconfig: Legacy support.
+        * TestWebKitAPI/Configurations/TestWTFLibrary.xcconfig: Add WK_WHICH_BUILD_SYSTEM.
+        * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Add product dependencies.
+
 2022-02-03  Jonathan Bedard  <[email protected]>
 
         [EWS] Rename RunJSCTestsWithoutPatch

Modified: trunk/Tools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj (289092 => 289093)


--- trunk/Tools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj	2022-02-04 01:27:47 UTC (rev 289092)
+++ trunk/Tools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj	2022-02-04 01:32:46 UTC (rev 289093)
@@ -119,6 +119,7 @@
 		BCF6C6500C98E9C000AC063E /* GCController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCF6C64F0C98E9C000AC063E /* GCController.cpp */; };
 		C23EA2081BC9F05100C980B7 /* FontWithFeatures.otf in Copy Font Files */ = {isa = PBXBuildFile; fileRef = C23EA2061BC9EABA00C980B7 /* FontWithFeatures.otf */; };
 		C23EA2091BC9F05100C980B7 /* FontWithFeatures.ttf in Copy Font Files */ = {isa = PBXBuildFile; fileRef = C23EA2071BC9EABA00C980B7 /* FontWithFeatures.ttf */; };
+		DDD2187827A21850002B7025 /* WebKit.framework in Product Dependencies */ = {isa = PBXBuildFile; fileRef = 9335435F03D75502008635CE /* WebKit.framework */; };
 		E1B7816511AF31B7007E1BC2 /* MockGeolocationProvider.mm in Sources */ = {isa = PBXBuildFile; fileRef = E1B7808711AF1669007E1BC2 /* MockGeolocationProvider.mm */; };
 		F4010B7B24DA201F00A876E2 /* PoseAsClass.mm in Sources */ = {isa = PBXBuildFile; fileRef = F4010B7924DA200E00A876E2 /* PoseAsClass.mm */; };
 		F445C68624B2789D00790440 /* UIScriptControllerShared.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F445C68524B2788F00790440 /* UIScriptControllerShared.cpp */; };
@@ -198,6 +199,17 @@
 			name = "Copy Font Files";
 			runOnlyForDeploymentPostprocessing = 0;
 		};
+		DDD2187727A21842002B7025 /* Product Dependencies */ = {
+			isa = PBXCopyFilesBuildPhase;
+			buildActionMask = 2147483647;
+			dstPath = "";
+			dstSubfolderSpec = 16;
+			files = (
+				DDD2187827A21850002B7025 /* WebKit.framework in Product Dependencies */,
+			);
+			name = "Product Dependencies";
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
@@ -879,6 +891,7 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = A1321C9F188F9A3600125434 /* Build configuration list for PBXNativeTarget "DumpRenderTree (Library)" */;
 			buildPhases = (
+				DDD2187727A21842002B7025 /* Product Dependencies */,
 				9340994D08540CAE007F3BC8 /* Sources */,
 				53A8193B21E52997000B93AB /* Check .xcfilelists */,
 			);

Modified: trunk/Tools/DumpRenderTree/mac/Configurations/Base.xcconfig (289092 => 289093)


--- trunk/Tools/DumpRenderTree/mac/Configurations/Base.xcconfig	2022-02-04 01:27:47 UTC (rev 289092)
+++ trunk/Tools/DumpRenderTree/mac/Configurations/Base.xcconfig	2022-02-04 01:32:46 UTC (rev 289093)
@@ -143,6 +143,9 @@
 WK_FRAMEWORK_VERSION_PREFIX =;
 WK_FRAMEWORK_VERSION_PREFIX[sdk=macosx*] = Versions/A/;
 
+WK_WHICH_BUILD_SYSTEM = not_;
+WK_WHICH_BUILD_SYSTEM = $(inherited)legacy;
+
 HEADER_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR)/usr/local/include $(BUILT_PRODUCTS_DIR)/WebCoreTestSupport ForwardingHeaders $(HEADER_SEARCH_PATHS_$(WK_COCOA_TOUCH));
 HEADER_SEARCH_PATHS_ = mac/InternalHeaders $(NEXT_ROOT)/usr/local/include/WebCoreTestSupport;
 HEADER_SEARCH_PATHS_cocoatouch = $(SDKROOT)/usr/local/include $(SDKROOT)/usr/local/include/WebCoreTestSupport $(SRCROOT)/../../Source/WebKit/Platform/spi/ios;

Modified: trunk/Tools/DumpRenderTree/mac/Configurations/DumpRenderTreeLibrary.xcconfig (289092 => 289093)


--- trunk/Tools/DumpRenderTree/mac/Configurations/DumpRenderTreeLibrary.xcconfig	2022-02-04 01:27:47 UTC (rev 289092)
+++ trunk/Tools/DumpRenderTree/mac/Configurations/DumpRenderTreeLibrary.xcconfig	2022-02-04 01:32:46 UTC (rev 289093)
@@ -30,6 +30,7 @@
 
 OTHER_LDFLAGS = ;
 
-EXCLUDED_SOURCE_FILE_NAMES = $(EXCLUDED_SOURCE_FILE_NAMES_$(WK_COCOA_TOUCH));
+EXCLUDED_SOURCE_FILE_NAMES = $(EXCLUDED_SOURCE_FILE_NAMES_$(WK_COCOA_TOUCH)) $(EXCLUDED_PRODUCT_DEPENDENCY_NAMES_$(WK_WHICH_BUILD_SYSTEM));
 EXCLUDED_SOURCE_FILE_NAMES_ = AccessibilityUIElementIOS.mm AccessibilityControllerIOS.mm PixelDumpSupportIOS.mm DumpRenderTreeBrowserView.mm;
 EXCLUDED_SOURCE_FILE_NAMES_cocoatouch = AccessibilityControllerMac.mm AccessibilityUIElementMac.mm DumpRenderTreeFileDraggingSource.m PixelDumpSupportMac.mm;
+EXCLUDED_PRODUCT_DEPENDENCY_NAMES_legacy = WebKit.framework;

Modified: trunk/Tools/TestWebKitAPI/Configurations/Base.xcconfig (289092 => 289093)


--- trunk/Tools/TestWebKitAPI/Configurations/Base.xcconfig	2022-02-04 01:27:47 UTC (rev 289092)
+++ trunk/Tools/TestWebKitAPI/Configurations/Base.xcconfig	2022-02-04 01:32:46 UTC (rev 289093)
@@ -127,6 +127,9 @@
 WK_FRAMEWORK_VERSION_PREFIX =;
 WK_FRAMEWORK_VERSION_PREFIX[sdk=macosx*] = Versions/A/;
 
+WK_WHICH_BUILD_SYSTEM = not_;
+WK_WHICH_BUILD_SYSTEM = $(inherited)legacy;
+
 SYSTEM_FRAMEWORK_SEARCH_PATHS = $(SYSTEM_FRAMEWORK_SEARCH_PATHS_$(WK_USE_ALTERNATE_FRAMEWORKS_DIR)) $(WK_PRIVATE_FRAMEWORKS_DIR) $(inherited);
 SYSTEM_FRAMEWORK_SEARCH_PATHS_YES = $(SDKROOT)$(WK_ALTERNATE_FRAMEWORKS_DIR)/PrivateFrameworks $(SDKROOT)$(WK_ALTERNATE_FRAMEWORKS_DIR)/Frameworks $(SDKROOT)$(WK_ALTERNATE_FRAMEWORKS_DIR)/Frameworks/Quartz.framework/Frameworks;
 SYSTEM_FRAMEWORK_SEARCH_PATHS_NO = $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/Frameworks $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/Frameworks/Quartz.framework/Frameworks;

Modified: trunk/Tools/TestWebKitAPI/Configurations/TestWTFLibrary.xcconfig (289092 => 289093)


--- trunk/Tools/TestWebKitAPI/Configurations/TestWTFLibrary.xcconfig	2022-02-04 01:27:47 UTC (rev 289092)
+++ trunk/Tools/TestWebKitAPI/Configurations/TestWTFLibrary.xcconfig	2022-02-04 01:32:46 UTC (rev 289093)
@@ -26,3 +26,6 @@
 PRODUCT_NAME = TestWTF;
 SKIP_INSTALL = YES;
 GCC_SYMBOLS_PRIVATE_EXTERN = YES;
+
+EXCLUDED_SOURCE_FILE_NAMES = $(inherited) $(EXCLUDED_PRODUCT_DEPENDENCY_NAMES_$(WK_WHICH_BUILD_SYSTEM));
+EXCLUDED_PRODUCT_DEPENDENCY_NAMES_legacy = libgtest.a WebKit.framework;

Modified: trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj (289092 => 289093)


--- trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj	2022-02-04 01:27:47 UTC (rev 289092)
+++ trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj	2022-02-04 01:32:46 UTC (rev 289093)
@@ -967,6 +967,8 @@
 		CEBCA13A1E3A807A00C73293 /* page-without-csp.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = CEBCA1371E3A803400C73293 /* page-without-csp.html */; };
 		CEBCA13B1E3A807A00C73293 /* page-without-csp-iframe.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = CEBCA1361E3A803400C73293 /* page-without-csp-iframe.html */; };
 		CEDA12412437C9FB00C28A9E /* editable-region-composited-and-non-composited-overlap.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = CEDA12402437C9EA00C28A9E /* editable-region-composited-and-non-composited-overlap.html */; };
+		DD0EDF8D2798A6AD005152AD /* libgtest.a in Product Dependencies */ = {isa = PBXBuildFile; fileRef = F3FC3EE213678B7300126A65 /* libgtest.a */; };
+		DDD2187627A21750002B7025 /* WebKit.framework in Product Dependencies */ = {isa = PBXBuildFile; fileRef = C081224813FC1B0300DC39AE /* WebKit.framework */; };
 		DF6580942722168900B3F1C1 /* ASN1Utilities.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DF6580922722168900B3F1C1 /* ASN1Utilities.cpp */; };
 		DFB80E38261512C1002D4771 /* TestAwakener.mm in Sources */ = {isa = PBXBuildFile; fileRef = DFB80E362615124E002D4771 /* TestAwakener.mm */; };
 		E1220DCA155B28AA0013E2FC /* MemoryCacheDisableWithinResourceLoadDelegate.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = E1220DC9155B287D0013E2FC /* MemoryCacheDisableWithinResourceLoadDelegate.html */; };
@@ -1649,6 +1651,18 @@
 			name = "Copy Resources";
 			runOnlyForDeploymentPostprocessing = 0;
 		};
+		DD0EDF8C2798A69E005152AD /* Product Dependencies */ = {
+			isa = PBXCopyFilesBuildPhase;
+			buildActionMask = 2147483647;
+			dstPath = "";
+			dstSubfolderSpec = 16;
+			files = (
+				DD0EDF8D2798A6AD005152AD /* libgtest.a in Product Dependencies */,
+				DDD2187627A21750002B7025 /* WebKit.framework in Product Dependencies */,
+			);
+			name = "Product Dependencies";
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
@@ -5079,6 +5093,7 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = 7C83DF651D0A590C00FEBCF3 /* Build configuration list for PBXNativeTarget "TestWTFLibrary" */;
 			buildPhases = (
+				DD0EDF8C2798A69E005152AD /* Product Dependencies */,
 				7C83DE961D0A590C00FEBCF3 /* Sources */,
 				7C83DF641D0A590C00FEBCF3 /* Frameworks */,
 			);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to