From ba002f63e8de89fe9fb92e2616cd743d0a42af02 Mon Sep 17 00:00:00 2001 From: James Moschou Date: Fri, 5 Jun 2026 11:37:25 +0200 Subject: [PATCH 1/4] Move Compute.xcodeproj to Xcode subdirectory --- .../Xcode/process_headers_inputs.xcfilelist | 25 ------- .../Compute.xcodeproj}/project.pbxproj | 69 +++++++++++-------- .../contents.xcworkspacedata | 0 Xcode/Configs/Compute.xcconfig | 0 Xcode/Configs/Shared.xcconfig | 0 .../Scripts}/process_headers.sh | 0 .../Scripts/process_headers_inputs.xcfilelist | 25 +++++++ .../process_headers_outputs.xcfilelist | 0 8 files changed, 67 insertions(+), 52 deletions(-) delete mode 100644 Scripts/Xcode/process_headers_inputs.xcfilelist rename {Compute.xcodeproj => Xcode/Compute.xcodeproj}/project.pbxproj (88%) rename {Compute.xcodeproj => Xcode/Compute.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (100%) create mode 100644 Xcode/Configs/Compute.xcconfig create mode 100644 Xcode/Configs/Shared.xcconfig rename {Scripts/Xcode => Xcode/Scripts}/process_headers.sh (100%) create mode 100644 Xcode/Scripts/process_headers_inputs.xcfilelist rename {Scripts/Xcode => Xcode/Scripts}/process_headers_outputs.xcfilelist (100%) diff --git a/Scripts/Xcode/process_headers_inputs.xcfilelist b/Scripts/Xcode/process_headers_inputs.xcfilelist deleted file mode 100644 index bde4e20..0000000 --- a/Scripts/Xcode/process_headers_inputs.xcfilelist +++ /dev/null @@ -1,25 +0,0 @@ -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGAttribute.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGAttributeInfo.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGAttributeType.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGBase.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGCachedValueOptions.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGChangedValue.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGClosure.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGComparison.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGDescription.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGGraph.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGGraphCounterQueryType.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGGraphTracing.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGInputOptions.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGSearchOptions.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGSubgraph.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGTargetConditionals.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGTraceType.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGTreeElement.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGTreeValue.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGTuple.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGType.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGUniqueID.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGValue.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/AGWeakAttribute.h -$(SRCROOT)/Sources/ComputeCxx/include/ComputeCxx/ComputeCxx.h diff --git a/Compute.xcodeproj/project.pbxproj b/Xcode/Compute.xcodeproj/project.pbxproj similarity index 88% rename from Compute.xcodeproj/project.pbxproj rename to Xcode/Compute.xcodeproj/project.pbxproj index bb0875a..b95fbd4 100644 --- a/Compute.xcodeproj/project.pbxproj +++ b/Xcode/Compute.xcodeproj/project.pbxproj @@ -18,34 +18,39 @@ /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedRootGroup section */ + 1AB344D32FD1EDDE009243EA /* Configs */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = Configs; + sourceTree = ""; + }; 1AEE2D3B2F16D0BF009CBD65 /* Platform */ = { isa = PBXFileSystemSynchronizedRootGroup; name = Platform; - path = Sources/Platform; + path = ../Sources/Platform; sourceTree = ""; }; 1AEE2DA62F16D158009CBD65 /* Utilities */ = { isa = PBXFileSystemSynchronizedRootGroup; name = Utilities; - path = Sources/Utilities; + path = ../Sources/Utilities; sourceTree = ""; }; 1AEE2E362F16D1DB009CBD65 /* ComputeCxx */ = { isa = PBXFileSystemSynchronizedRootGroup; name = ComputeCxx; - path = Sources/ComputeCxx; + path = ../Sources/ComputeCxx; sourceTree = ""; }; 1AEE2EA82F16D2CC009CBD65 /* ComputeCxxSwiftSupport */ = { isa = PBXFileSystemSynchronizedRootGroup; name = ComputeCxxSwiftSupport; - path = Sources/ComputeCxxSwiftSupport; + path = ../Sources/ComputeCxxSwiftSupport; sourceTree = ""; }; 1AEE2ED32F16D309009CBD65 /* Compute */ = { isa = PBXFileSystemSynchronizedRootGroup; name = Compute; - path = Sources/Compute; + path = ../Sources/Compute; sourceTree = ""; }; /* End PBXFileSystemSynchronizedRootGroup section */ @@ -66,6 +71,7 @@ 1AD6DB7D2F16A95B00D4C5D6 = { isa = PBXGroup; children = ( + 1AB344D32FD1EDDE009243EA /* Configs */, 1AEE2D3B2F16D0BF009CBD65 /* Platform */, 1AEE2DA62F16D158009CBD65 /* Utilities */, 1AEE2E362F16D1DB009CBD65 /* ComputeCxx */, @@ -121,6 +127,7 @@ dependencies = ( ); fileSystemSynchronizedGroups = ( + 1AB344D32FD1EDDE009243EA /* Configs */, 1AEE2D3B2F16D0BF009CBD65 /* Platform */, 1AEE2DA62F16D158009CBD65 /* Utilities */, 1AEE2E362F16D1DB009CBD65 /* ComputeCxx */, @@ -185,20 +192,20 @@ files = ( ); inputFileListPaths = ( - "$(SRCROOT)/Scripts/Xcode/process_headers_inputs.xcfilelist", + "$(SRCROOT)/Scripts/process_headers_inputs.xcfilelist", ); inputPaths = ( - "$(SRCROOT)/Scripts/Xcode/process_headers.sh", + "$(SRCROOT)/Scripts/process_headers.sh", ); name = "Process Headers"; outputFileListPaths = ( - "$(SRCROOT)/Scripts/Xcode/process_headers_outputs.xcfilelist", + "$(SRCROOT)/Scripts/process_headers_outputs.xcfilelist", ); outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nScripts/Xcode/process_headers.sh\n"; + shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nScripts/process_headers.sh\n"; }; /* End PBXShellScriptBuildPhase section */ @@ -215,18 +222,24 @@ /* Begin XCBuildConfiguration section */ 1AD6DB822F16A95B00D4C5D6 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReferenceAnchor = 1AB344D32FD1EDDE009243EA /* Configs */; + baseConfigurationReferenceRelativePath = Shared.xcconfig; buildSettings = { }; name = Debug; }; 1AD6DB832F16A95B00D4C5D6 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReferenceAnchor = 1AB344D32FD1EDDE009243EA /* Configs */; + baseConfigurationReferenceRelativePath = Shared.xcconfig; buildSettings = { }; name = Release; }; 1AD6DB8E2F16AA0D00D4C5D6 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReferenceAnchor = 1AB344D32FD1EDDE009243EA /* Configs */; + baseConfigurationReferenceRelativePath = Compute.xcconfig; buildSettings = { ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES; ALWAYS_SEARCH_USER_PATHS = NO; @@ -287,9 +300,9 @@ GCC_WARN_UNUSED_VARIABLE = YES; GENERATE_INFOPLIST_FILE = YES; HEADER_SEARCH_PATHS = ( - Sources/Platform/include, - Sources/Utilities/include, - Sources/ComputeCxx/include, + ../Sources/Platform/include, + ../Sources/Utilities/include, + ../Sources/ComputeCxx/include, ); INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -320,21 +333,21 @@ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_INCLUDE_PATHS = Sources/ComputeCxx/include; + SWIFT_INCLUDE_PATHS = ../Sources/ComputeCxx/include; SWIFT_INSTALL_MODULE = YES; SWIFT_INSTALL_OBJC_HEADER = NO; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; SWIFT_VERSION = 6.0; SYSTEM_HEADER_SEARCH_PATHS = ( - "Submodules/swift-runtime-headers/include", - "Submodules/swift-runtime-headers/stdlib/include", - "Submodules/swift-runtime-headers/stdlib/public/SwiftShims", + "../Submodules/swift-runtime-headers/include", + "../Submodules/swift-runtime-headers/stdlib/include", + "../Submodules/swift-runtime-headers/stdlib/public/SwiftShims", ); TARGETED_DEVICE_FAMILY = "1,2,7"; USER_HEADER_SEARCH_PATHS = ( - Sources/ComputeCxx, - Sources/ComputeCxx/internalInclude, + ../Sources/ComputeCxx, + ../Sources/ComputeCxx/internalInclude, ); USE_HEADERMAP = NO; VERSIONING_SYSTEM = "apple-generic"; @@ -345,6 +358,8 @@ }; 1AD6DB8F2F16AA0D00D4C5D6 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReferenceAnchor = 1AB344D32FD1EDDE009243EA /* Configs */; + baseConfigurationReferenceRelativePath = Compute.xcconfig; buildSettings = { ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES; ALWAYS_SEARCH_USER_PATHS = NO; @@ -399,9 +414,9 @@ GCC_WARN_UNUSED_VARIABLE = YES; GENERATE_INFOPLIST_FILE = YES; HEADER_SEARCH_PATHS = ( - Sources/Platform/include, - Sources/Utilities/include, - Sources/ComputeCxx/include, + ../Sources/Platform/include, + ../Sources/Utilities/include, + ../Sources/ComputeCxx/include, ); INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -431,20 +446,20 @@ SWIFT_APPROACHABLE_CONCURRENCY = YES; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_INCLUDE_PATHS = Sources/ComputeCxx/include; + SWIFT_INCLUDE_PATHS = ../Sources/ComputeCxx/include; SWIFT_INSTALL_MODULE = YES; SWIFT_INSTALL_OBJC_HEADER = NO; SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; SWIFT_VERSION = 6.0; SYSTEM_HEADER_SEARCH_PATHS = ( - "Submodules/swift-runtime-headers/include", - "Submodules/swift-runtime-headers/stdlib/include", - "Submodules/swift-runtime-headers/stdlib/public/SwiftShims", + "../Submodules/swift-runtime-headers/include", + "../Submodules/swift-runtime-headers/stdlib/include", + "../Submodules/swift-runtime-headers/stdlib/public/SwiftShims", ); TARGETED_DEVICE_FAMILY = "1,2,7"; USER_HEADER_SEARCH_PATHS = ( - Sources/ComputeCxx, - Sources/ComputeCxx/internalInclude, + ../Sources/ComputeCxx, + ../Sources/ComputeCxx/internalInclude, ); USE_HEADERMAP = NO; VERSIONING_SYSTEM = "apple-generic"; diff --git a/Compute.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Xcode/Compute.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Compute.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Xcode/Compute.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Xcode/Configs/Compute.xcconfig b/Xcode/Configs/Compute.xcconfig new file mode 100644 index 0000000..e69de29 diff --git a/Xcode/Configs/Shared.xcconfig b/Xcode/Configs/Shared.xcconfig new file mode 100644 index 0000000..e69de29 diff --git a/Scripts/Xcode/process_headers.sh b/Xcode/Scripts/process_headers.sh similarity index 100% rename from Scripts/Xcode/process_headers.sh rename to Xcode/Scripts/process_headers.sh diff --git a/Xcode/Scripts/process_headers_inputs.xcfilelist b/Xcode/Scripts/process_headers_inputs.xcfilelist new file mode 100644 index 0000000..a02f627 --- /dev/null +++ b/Xcode/Scripts/process_headers_inputs.xcfilelist @@ -0,0 +1,25 @@ +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGAttribute.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGAttributeInfo.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGAttributeType.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGBase.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGCachedValueOptions.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGChangedValue.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGClosure.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGComparison.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGDescription.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGGraph.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGGraphCounterQueryType.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGGraphTracing.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGInputOptions.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGSearchOptions.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGSubgraph.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGTargetConditionals.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGTraceType.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGTreeElement.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGTreeValue.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGTuple.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGType.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGUniqueID.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGValue.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/AGWeakAttribute.h +$(SRCROOT)/../Sources/ComputeCxx/include/ComputeCxx/ComputeCxx.h diff --git a/Scripts/Xcode/process_headers_outputs.xcfilelist b/Xcode/Scripts/process_headers_outputs.xcfilelist similarity index 100% rename from Scripts/Xcode/process_headers_outputs.xcfilelist rename to Xcode/Scripts/process_headers_outputs.xcfilelist From ec744da4a0d50412dc7f58e079be099a9ff63ee2 Mon Sep 17 00:00:00 2001 From: James Moschou Date: Mon, 8 Jun 2026 10:56:42 +0200 Subject: [PATCH 2/4] Update create-xcframework.sh script --- Scripts/create-xcframework.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/create-xcframework.sh b/Scripts/create-xcframework.sh index 95e1d71..5d72cc4 100755 --- a/Scripts/create-xcframework.sh +++ b/Scripts/create-xcframework.sh @@ -5,21 +5,21 @@ set -e BUILD_DIR=".build/Xcode" xcodebuild archive \ - -project Compute.xcodeproj \ + -project Xcode/Compute.xcodeproj \ -scheme Compute \ -destination "generic/platform=macOS" \ -archivePath "$BUILD_DIR/Archives/Compute-macOS.xcarchive" \ ENABLE_USER_SCRIPT_SANDBOXING=NO xcodebuild archive \ - -project Compute.xcodeproj \ + -project Xcode/Compute.xcodeproj \ -scheme Compute \ -destination "generic/platform=iOS" \ -archivePath "$BUILD_DIR/Archives/Compute-iOS.xcarchive" \ ENABLE_USER_SCRIPT_SANDBOXING=NO xcodebuild archive \ - -project Compute.xcodeproj \ + -project Xcode/Compute.xcodeproj \ -scheme Compute \ -destination "generic/platform=iOS Simulator" \ -archivePath "$BUILD_DIR/Archives/Compute-iOS-Simulator.xcarchive" \ From 732b65a97911d16fb6e71dcaf76246872a9bfea4 Mon Sep 17 00:00:00 2001 From: James Moschou Date: Mon, 8 Jun 2026 11:28:38 +0200 Subject: [PATCH 3/4] Move Xcode configuration .xcconfig files --- Xcode/Compute.xcodeproj/project.pbxproj | 216 ------------------------ Xcode/Configs/Compute.xcconfig | 52 ++++++ Xcode/Configs/Shared.xcconfig | 78 +++++++++ 3 files changed, 130 insertions(+), 216 deletions(-) diff --git a/Xcode/Compute.xcodeproj/project.pbxproj b/Xcode/Compute.xcodeproj/project.pbxproj index b95fbd4..43063ed 100644 --- a/Xcode/Compute.xcodeproj/project.pbxproj +++ b/Xcode/Compute.xcodeproj/project.pbxproj @@ -241,118 +241,6 @@ baseConfigurationReferenceAnchor = 1AB344D32FD1EDDE009243EA /* Configs */; baseConfigurationReferenceRelativePath = Compute.xcconfig; buildSettings = { - ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES; - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_STYLE = Automatic; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = dwarf; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - GENERATE_INFOPLIST_FILE = YES; - HEADER_SEARCH_PATHS = ( - ../Sources/Platform/include, - ../Sources/Utilities/include, - ../Sources/ComputeCxx/include, - ); - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 15.6; - LD_RUNPATH_SEARCH_PATHS = ( - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = ( - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 15.6; - MARKETING_VERSION = 0.2.1; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - OTHER_SWIFT_FLAGS = "-enable-experimental-feature Extern"; - PRODUCT_BUNDLE_IDENTIFIER = dev.incrematic.Compute; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = auto; - SKIP_INSTALL = NO; - STRING_CATALOG_GENERATE_SYMBOLS = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; - SWIFT_APPROACHABLE_CONCURRENCY = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_INCLUDE_PATHS = ../Sources/ComputeCxx/include; - SWIFT_INSTALL_MODULE = YES; - SWIFT_INSTALL_OBJC_HEADER = NO; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; - SWIFT_VERSION = 6.0; - SYSTEM_HEADER_SEARCH_PATHS = ( - "../Submodules/swift-runtime-headers/include", - "../Submodules/swift-runtime-headers/stdlib/include", - "../Submodules/swift-runtime-headers/stdlib/public/SwiftShims", - ); - TARGETED_DEVICE_FAMILY = "1,2,7"; - USER_HEADER_SEARCH_PATHS = ( - ../Sources/ComputeCxx, - ../Sources/ComputeCxx/internalInclude, - ); - USE_HEADERMAP = NO; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - XROS_DEPLOYMENT_TARGET = 1.3; }; name = Debug; }; @@ -361,110 +249,6 @@ baseConfigurationReferenceAnchor = 1AB344D32FD1EDDE009243EA /* Configs */; baseConfigurationReferenceRelativePath = Compute.xcconfig; buildSettings = { - ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES; - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_STYLE = Automatic; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - GENERATE_INFOPLIST_FILE = YES; - HEADER_SEARCH_PATHS = ( - ../Sources/Platform/include, - ../Sources/Utilities/include, - ../Sources/ComputeCxx/include, - ); - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 15.6; - LD_RUNPATH_SEARCH_PATHS = ( - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = ( - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 15.6; - MARKETING_VERSION = 0.2.1; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - OTHER_SWIFT_FLAGS = "-enable-experimental-feature Extern"; - PRODUCT_BUNDLE_IDENTIFIER = dev.incrematic.Compute; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SDKROOT = auto; - SKIP_INSTALL = NO; - STRING_CATALOG_GENERATE_SYMBOLS = YES; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; - SWIFT_APPROACHABLE_CONCURRENCY = YES; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_INCLUDE_PATHS = ../Sources/ComputeCxx/include; - SWIFT_INSTALL_MODULE = YES; - SWIFT_INSTALL_OBJC_HEADER = NO; - SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; - SWIFT_VERSION = 6.0; - SYSTEM_HEADER_SEARCH_PATHS = ( - "../Submodules/swift-runtime-headers/include", - "../Submodules/swift-runtime-headers/stdlib/include", - "../Submodules/swift-runtime-headers/stdlib/public/SwiftShims", - ); - TARGETED_DEVICE_FAMILY = "1,2,7"; - USER_HEADER_SEARCH_PATHS = ( - ../Sources/ComputeCxx, - ../Sources/ComputeCxx/internalInclude, - ); - USE_HEADERMAP = NO; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - XROS_DEPLOYMENT_TARGET = 1.3; }; name = Release; }; diff --git a/Xcode/Configs/Compute.xcconfig b/Xcode/Configs/Compute.xcconfig index e69de29..a26ba51 100644 --- a/Xcode/Configs/Compute.xcconfig +++ b/Xcode/Configs/Compute.xcconfig @@ -0,0 +1,52 @@ +SDKROOT = auto +SUPPORTED_PLATFORMS = iphoneos iphonesimulator macosx xros xrsimulator + +ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES +BUILD_LIBRARY_FOR_DISTRIBUTION = YES + +INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks +IPHONEOS_DEPLOYMENT_TARGET = 15.6 +MACOSX_DEPLOYMENT_TARGET = 15.6 +SKIP_INSTALL = YES +TARGETED_DEVICE_FAMILY = 1,2,7 +XROS_DEPLOYMENT_TARGET = 1.3 + +INFOPLIST_KEY_NSHumanReadableCopyright = "" + +DYLIB_COMPATIBILITY_VERSION = 1 +DYLIB_CURRENT_VERSION = 1 +DYLIB_INSTALL_NAME_BASE = @rpath +LD_RUNPATH_SEARCH_PATHS = @executable_path/Frameworks @loader_path/Frameworks +LD_RUNPATH_SEARCH_PATHS[sdk=macosx*] = @executable_path/../Frameworks @loader_path/Frameworks + +STRING_CATALOG_GENERATE_SYMBOLS = YES +SWIFT_EMIT_LOC_STRINGS = YES + +GENERATE_INFOPLIST_FILE = YES +PRODUCT_BUNDLE_IDENTIFIER = dev.incrematic.Compute +PRODUCT_NAME = $(TARGET_NAME:c99extidentifier) + +HEADER_SEARCH_PATHS = ../Sources/Platform/include ../Sources/Utilities/include ../Sources/ComputeCxx/include +SYSTEM_HEADER_SEARCH_PATHS = ../Submodules/swift-runtime-headers/include ../Submodules/swift-runtime-headers/stdlib/include ../Submodules/swift-runtime-headers/stdlib/public/SwiftShims +USER_HEADER_SEARCH_PATHS = ../Sources/ComputeCxx ../Sources/ComputeCxx/internalInclude +USE_HEADERMAP = NO + +CODE_SIGN_STYLE = Automatic + +CURRENT_PROJECT_VERSION = 1 +MARKETING_VERSION = 0.2.1 + +ENABLE_MODULE_VERIFIER = YES +MODULE_VERIFIER_SUPPORTED_LANGUAGES = objective-c objective-c++ +MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = gnu17 gnu++20 + +SWIFT_APPROACHABLE_CONCURRENCY = YES + +OTHER_SWIFT_FLAGS = -enable-experimental-feature Extern + +SWIFT_INSTALL_MODULE = YES +SWIFT_INSTALL_OBJC_HEADER = NO +SWIFT_VERSION = 6.0 +SWIFT_INCLUDE_PATHS = ../Sources/ComputeCxx/include + +SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES diff --git a/Xcode/Configs/Shared.xcconfig b/Xcode/Configs/Shared.xcconfig index e69de29..2f046dd 100644 --- a/Xcode/Configs/Shared.xcconfig +++ b/Xcode/Configs/Shared.xcconfig @@ -0,0 +1,78 @@ +ONLY_ACTIVE_ARCH[config=Debug] = YES + +DEBUG_INFORMATION_FORMAT[config=Debug] = dwarf +DEBUG_INFORMATION_FORMAT[config=Release] = dwarf-with-dsym +ENABLE_TESTABILITY[config=Debug] = YES +ENABLE_USER_SCRIPT_SANDBOXING = YES + +COPY_PHASE_STRIP = NO + +LOCALIZATION_PREFERS_STRING_CATALOGS = YES + +ALWAYS_SEARCH_USER_PATHS = NO + +CURRENT_PROJECT_VERSION = 1 +VERSIONING_SYSTEM = apple-generic +VERSION_INFO_PREFIX = "" + +GCC_DYNAMIC_NO_PIC[config=Debug] = NO +GCC_NO_COMMON_BLOCKS = YES +GCC_OPTIMIZATION_LEVEL[config=Debug] = 0 + +GCC_C_LANGUAGE_STANDARD = gnu17 + +CLANG_CXX_LANGUAGE_STANDARD = gnu++20 + +CLANG_ENABLE_MODULES = YES + +CLANG_ENABLE_OBJC_ARC = YES +CLANG_ENABLE_OBJC_WEAK = YES + +ENABLE_NS_ASSERTIONS[config=Release] = NO +ENABLE_STRICT_OBJC_MSGSEND = YES +GCC_PREPROCESSOR_DEFINITIONS[config=Debug] = DEBUG=1 $(inherited) + +CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES +CLANG_WARN_BOOL_CONVERSION = YES +CLANG_WARN_COMMA = YES +CLANG_WARN_CONSTANT_CONVERSION = YES +CLANG_WARN_DOCUMENTATION_COMMENTS = YES +CLANG_WARN_EMPTY_BODY = YES +CLANG_WARN_ENUM_CONVERSION = YES +CLANG_WARN_INFINITE_RECURSION = YES +CLANG_WARN_INT_CONVERSION = YES +CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN_UNREACHABLE_CODE = YES +GCC_WARN_64_TO_32_BIT_CONVERSION = YES +GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR +GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE +GCC_WARN_UNUSED_FUNCTION = YES +GCC_WARN_UNUSED_VARIABLE = YES + +CLANG_WARN_RANGE_LOOP_ANALYSIS = YES +CLANG_WARN_SUSPICIOUS_MOVE = YES + +CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES +CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR +CLANG_WARN_OBJC_LITERAL_CONVERSION = YES +CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +GCC_WARN_UNDECLARED_SELECTOR = YES + +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES + +CLANG_ANALYZER_NONNULL = YES +CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE + +SWIFT_COMPILATION_MODE[config=Release] = wholemodule +SWIFT_OPTIMIZATION_LEVEL[config=Debug] = -Onone + +SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Debug] = DEBUG $(inherited) + +ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES +MTL_ENABLE_DEBUG_INFO[config=Debug] = INCLUDE_SOURCE +MTL_ENABLE_DEBUG_INFO[config=Release] = NO +MTL_FAST_MATH = YES From e364e965ae9e87631cfa192af66cffbc9bd02b41 Mon Sep 17 00:00:00 2001 From: James Moschou Date: Mon, 8 Jun 2026 11:59:00 +0200 Subject: [PATCH 4/4] Remove empty string setting from .xcconfig file --- Xcode/Configs/Shared.xcconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/Xcode/Configs/Shared.xcconfig b/Xcode/Configs/Shared.xcconfig index 2f046dd..bcdd7f7 100644 --- a/Xcode/Configs/Shared.xcconfig +++ b/Xcode/Configs/Shared.xcconfig @@ -13,7 +13,6 @@ ALWAYS_SEARCH_USER_PATHS = NO CURRENT_PROJECT_VERSION = 1 VERSIONING_SYSTEM = apple-generic -VERSION_INFO_PREFIX = "" GCC_DYNAMIC_NO_PIC[config=Debug] = NO GCC_NO_COMMON_BLOCKS = YES