Title: [292371] trunk/Source/WebKit
Revision
292371
Author
[email protected]
Date
2022-04-04 20:59:22 -0700 (Mon, 04 Apr 2022)

Log Message

Stop generating WebKit system feature flags plists
https://bugs.webkit.org/show_bug.cgi?id=238784

Reviewed by Wenson Hsieh.

* FeatureFlags/WebKit-appletvos.plist: Removed.
* FeatureFlags/WebKit-ios.plist: Removed.
* FeatureFlags/WebKit-macos.plist: Removed.
* FeatureFlags/WebKit-watchos.plist: Removed.
* Scripts/combine-feature-flags-plist.py: Removed.
* Scripts/generate-feature-flags-plist.sh: Removed.
* WebKit.xcodeproj/project.pbxproj:

Modified Paths

Removed Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (292370 => 292371)


--- trunk/Source/WebKit/ChangeLog	2022-04-05 03:46:42 UTC (rev 292370)
+++ trunk/Source/WebKit/ChangeLog	2022-04-05 03:59:22 UTC (rev 292371)
@@ -1,3 +1,18 @@
+2022-04-04  Tim Horton  <[email protected]>
+
+        Stop generating WebKit system feature flags plists
+        https://bugs.webkit.org/show_bug.cgi?id=238784
+
+        Reviewed by Wenson Hsieh.
+
+        * FeatureFlags/WebKit-appletvos.plist: Removed.
+        * FeatureFlags/WebKit-ios.plist: Removed.
+        * FeatureFlags/WebKit-macos.plist: Removed.
+        * FeatureFlags/WebKit-watchos.plist: Removed.
+        * Scripts/combine-feature-flags-plist.py: Removed.
+        * Scripts/generate-feature-flags-plist.sh: Removed.
+        * WebKit.xcodeproj/project.pbxproj:
+
 2022-04-04  Saam Barati  <[email protected]>
 
         Turn off LLInt ICs in captive portal mode

Deleted: trunk/Source/WebKit/Scripts/combine-feature-flags-plist.py (292370 => 292371)


--- trunk/Source/WebKit/Scripts/combine-feature-flags-plist.py	2022-04-05 03:46:42 UTC (rev 292370)
+++ trunk/Source/WebKit/Scripts/combine-feature-flags-plist.py	2022-04-05 03:59:22 UTC (rev 292371)
@@ -1,61 +0,0 @@
-#
-# Copyright (c) 2021 Apple Inc. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-import plistlib
-import sys
-
-
-def main(argv):
-    if len(argv) != 4:
-        print('Usage: ', argv[0], '<feature_flags_plist> <internal_feature_flags_plist> <output_plist>')
-        return 1
-
-    feature_flags_plist_path = argv[1]
-    internal_feature_flags_plist_path = argv[2]
-    output_plist_path = argv[3]
-
-    try:
-        with open(feature_flags_plist_path, 'rb') as feature_flags_file, open(internal_feature_flags_plist_path, 'rb') as internal_feature_flags_file:
-            feature_flags = plistlib.load(feature_flags_file)
-            internal_feature_flags = plistlib.load(internal_feature_flags_file)
-            for key in internal_feature_flags:
-                if key not in feature_flags:
-                    print('Error!', key, 'does not exist in' + feature_flags_plist_path)
-                    return 1
-
-                if 'Attributes' in feature_flags[key] and 'Attributes' in internal_feature_flags[key]:
-                    feature_flags[key]['Attributes'].update(internal_feature_flags[key]['Attributes'])
-                else:
-                    feature_flags[key].update(internal_feature_flags[key])
-
-            with open(output_plist_path, 'wb') as output_plist_file:
-                plistlib.dump(feature_flags, output_plist_file)
-    except IOError:
-        print('File read/write error! Please make sure file names', feature_flags_plist_path, 'and', internal_feature_flags_plist_path, 'are correct.')
-
-    return 0
-
-
-if __name__ == '__main__':
-    sys.exit(main(sys.argv))

Deleted: trunk/Source/WebKit/Scripts/generate-feature-flags-plist.sh (292370 => 292371)


--- trunk/Source/WebKit/Scripts/generate-feature-flags-plist.sh	2022-04-05 03:46:42 UTC (rev 292370)
+++ trunk/Source/WebKit/Scripts/generate-feature-flags-plist.sh	2022-04-05 03:59:22 UTC (rev 292371)
@@ -1,54 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2021 Apple Inc. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-set -e
-
-if [[ ${WK_PLATFORM_NAME} == "appletvos" || ${WK_PLATFORM_NAME} == "appletvsimulator" ]]; then
-    WEBKIT_PLIST_FILE_NAME="WebKit-appletvos.plist"
-elif [[ ${WK_PLATFORM_NAME} == "iphoneos" || ${WK_PLATFORM_NAME} == "iphonesimulator" ]]; then
-    WEBKIT_PLIST_FILE_NAME="WebKit-ios.plist"
-elif [[ ${WK_PLATFORM_NAME} == "macosx" ]]; then
-    WEBKIT_PLIST_FILE_NAME="WebKit-macos.plist"
-elif [[ ${WK_PLATFORM_NAME} == "watchos" || ${WK_PLATFORM_NAME} == "watchsimulator" ]]; then
-    WEBKIT_PLIST_FILE_NAME="WebKit-watchos.plist"
-else
-    exit 0;
-fi
-
-WEBKIT_PLIST_DIR="${SRCROOT}/FeatureFlags"
-INTERNAL_WEBKIT_PLIST_DIR="${WK_WEBKITADDITIONS_HEADERS_FOLDER_PATH}/WebKit"
-DEST_DIR="${INSTALL_ROOT}/${WK_INSTALL_PATH_PREFIX}/${SYSTEM_LIBRARY_DIR}/FeatureFlags/Domain"
-
-if [[ ! -d "${DEST_DIR}" ]]; then
-    mkdir -p "${DEST_DIR}"
-fi
-
-if [[ ! -f "${INTERNAL_WEBKIT_PLIST_DIR}/${WEBKIT_PLIST_FILE_NAME}" ]]; then
-    echo "Copy ${WEBKIT_PLIST_DIR}/${WEBKIT_PLIST_FILE_NAME} to ${DEST_DIR}/WebKit.plist"
-    ditto "${WEBKIT_PLIST_DIR}/${WEBKIT_PLIST_FILE_NAME}" "${DEST_DIR}/WebKit.plist"
-else
-    echo "Generate ${DEST_DIR}/WebKit.plist"
-    python3 "${SRCROOT}/Scripts/combine-feature-flags-plist.py" "${WEBKIT_PLIST_DIR}/${WEBKIT_PLIST_FILE_NAME}" "${INTERNAL_WEBKIT_PLIST_DIR}/${WEBKIT_PLIST_FILE_NAME}" "${DEST_DIR}/WebKit.plist"
-fi

Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (292370 => 292371)


--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj	2022-04-05 03:46:42 UTC (rev 292370)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj	2022-04-05 03:59:22 UTC (rev 292371)
@@ -3701,10 +3701,6 @@
 		1CEF45BC27BCA46A00C3A6BC /* WebGPUShaderModuleCompilationHint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebGPUShaderModuleCompilationHint.h; sourceTree = "<group>"; };
 		1CF18F3E26BB5D90004B1722 /* LogInitialization.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = LogInitialization.cpp; sourceTree = "<group>"; };
 		1D0530C9258EAB4400E436F7 /* combine-feature-flags-plist.py */ = {isa = PBXFileReference; lastKnownFileType = text.script.python; path = "combine-feature-flags-plist.py"; sourceTree = "<group>"; };
-		1D0530D1259162C800E436F7 /* WebKit-ios.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "WebKit-ios.plist"; sourceTree = "<group>"; };
-		1D0530D2259162C900E436F7 /* WebKit-appletvos.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "WebKit-appletvos.plist"; sourceTree = "<group>"; };
-		1D0530D3259162C900E436F7 /* WebKit-macos.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "WebKit-macos.plist"; sourceTree = "<group>"; };
-		1D0530D4259162C900E436F7 /* WebKit-watchos.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "WebKit-watchos.plist"; sourceTree = "<group>"; };
 		1D0530D52591941500E436F7 /* generate-feature-flags-plist.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "generate-feature-flags-plist.sh"; sourceTree = "<group>"; };
 		1D0B66192624C11800F9712F /* WebMediaKeySystemClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebMediaKeySystemClient.cpp; sourceTree = "<group>"; };
 		1D0B661A2624C19600F9712F /* MediaKeySystemPermissionRequestManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = MediaKeySystemPermissionRequestManager.cpp; path = EncryptedMedia/MediaKeySystemPermissionRequestManager.cpp; sourceTree = "<group>"; };
@@ -7592,7 +7588,6 @@
 				2D9FB1FF2375209D0049F936 /* GPUProcess */,
 				5742A2FF2535758000B7BA14 /* WebAuthnProcess */,
 				C0CE729D1247E71D00BC0EC4 /* Derived Sources */,
-				1DEC97AB246B6865007C83F4 /* FeatureFlags */,
 				089C1665FE841158C02AAC07 /* Resources */,
 				C0CE73351247F70E00BC0EC4 /* Scripts */,
 				1A4F9769100E7B6600637A18 /* Configurations */,
@@ -8669,17 +8664,6 @@
 			path = cocoa;
 			sourceTree = "<group>";
 		};
-		1DEC97AB246B6865007C83F4 /* FeatureFlags */ = {
-			isa = PBXGroup;
-			children = (
-				1D0530D2259162C900E436F7 /* WebKit-appletvos.plist */,
-				1D0530D1259162C800E436F7 /* WebKit-ios.plist */,
-				1D0530D3259162C900E436F7 /* WebKit-macos.plist */,
-				1D0530D4259162C900E436F7 /* WebKit-watchos.plist */,
-			);
-			path = FeatureFlags;
-			sourceTree = "<group>";
-		};
 		1F0181681858DC1500F92884 /* Cocoa */ = {
 			isa = PBXGroup;
 			children = (
@@ -15730,7 +15714,6 @@
 				5DF408D1131DDBEC00130071 /* Check For Inappropriate Files In Framework */,
 				A55DEAA61670402E003DB841 /* Check For Inappropriate Macros in External Headers */,
 				1A2180161B5454620046AEC4 /* Add Symlink in /System/Library/PrivateFrameworks */,
-				1D12CC4E2414265300FDA0A3 /* Copy Feature Flags Plist */,
 				5379C7AC21E5288500E4A8F6 /* Check .xcfilelists */,
 				933170072234674500B32554 /* Create symlinks to XPC services for engineering builds */,
 				512B81CA273CAFBE00D87D49 /* Create symlinks to Daemons for engineering builds */,
@@ -16024,29 +16007,6 @@
 			shellPath = /bin/sh;
 			shellScript = "# Touch Info.plist to let Xcode know it needs to copy it into the built product\nif [[ \"${CONFIGURATION}\" != \"Production\" ]]; then\ntouch \"${PROJECT_DIR}/Info.plist\";\nfi;\n";
 		};
-		1D12CC4E2414265300FDA0A3 /* Copy Feature Flags Plist */ = {
-			isa = PBXShellScriptBuildPhase;
-			buildActionMask = 8;
-			files = (
-			);
-			inputFileListPaths = (
-			);
-			inputPaths = (
-				"$(SRCROOT)/FeatureFlags/WebKit-appletvos.plist",
-				"$(SRCROOT)/FeatureFlags/WebKit-ios.plist",
-				"$(SRCROOT)/FeatureFlags/WebKit-macos.plist",
-				"$(SRCROOT)/FeatureFlags/WebKit-watchos.plist",
-			);
-			name = "Copy Feature Flags Plist";
-			outputFileListPaths = (
-			);
-			outputPaths = (
-				"$(INSTALL_ROOT)/$(WK_INSTALL_PATH_PREFIX)/$(SYSTEM_LIBRARY_DIR)/FeatureFlags/Domain/WebKit.plist",
-			);
-			runOnlyForDeploymentPostprocessing = 1;
-			shellPath = /bin/sh;
-			shellScript = "${SRCROOT}/Scripts/generate-feature-flags-plist.sh\n";
-		};
 		2D7DEBDF21269C9F00B9F73C /* Generate Unified Sources */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to