PLATFORM_STR = "unknown" PLATFORM_STR[sdk=macosx*] = "macOS" PLATFORM_STR[sdk=iphoneos*] = "iphone" PLATFORM_STR[sdk=iphonesimulator*] = "iphone(sim)" PLATFORM_STR[sdk=bridgeos*] = "bridge" PLATFORM_STR[sdk=watchos*] = "watch" PLATFORM_STR[sdk=watchsimulator*] = "watch(sim)" PLATFORM_STR[sdk=appletvos*] = "tv" PLATFORM_STR[sdk=appletvsimulator*] = "tv(sim)" // Octagon is on for all non-bridge platforms OCTAGON_ON=0 OCTAGON_ON[sdk=macosx*]=1 OCTAGON_ON[sdk=iphone*] = 1 OCTAGON_ON[sdk=bridgeos*] = 0 OCTAGON_ON[sdk=watch*] = 1 OCTAGON_ON[sdk=appletv*] = 1 // TrustedPeers is on for macOS, iOS, watchOS and tvOS TRUSTEDPEERS_ON = 0 TRUSTEDPEERS_ON[sdk=macosx*] = 1 TRUSTEDPEERS_ON[sdk=iphone*] = 1 TRUSTEDPEERS_ON[sdk=bridgeos*] = 1 TRUSTEDPEERS_ON[sdk=watch*] = 1 TRUSTEDPEERS_ON[sdk=appletv*] = 1 // SecureObject Sync should only be on on iOS and macOS, but until we have octagon, its on on watch and TV SECUREOBJECTSYNC_ON[sdk=iphone*] = 1 SECUREOBJECTSYNC_ON[sdk=bridgeos*] = 1 SECUREOBJECTSYNC_ON[sdk=watch*] = 1 SECUREOBJECTSYNC_ON[sdk=appletv*] = 1 SECUREOBJECTSYNC_ON[sdk=macos*] = 1 // Shared web credentials is only supported on iOS SHAREDWEBCREDENTIALS_ON[sdk=iphone*] = 1 SHAREDWEBCREDENTIALS_ON[sdk=bridgeos*] = 0 SHAREDWEBCREDENTIALS_ON[sdk=watch*] = 0 SHAREDWEBCREDENTIALS_ON[sdk=appletv*] = 0 SHAREDWEBCREDENTIALS_ON[sdk=macos*] = 0 ABC_BUGCAPTURE_ON[sdk=iphoneos*] = 1 ABC_BUGCAPTURE_ON[sdk=iphonesimulator*] = 0 ABC_BUGCAPTURE_ON[sdk=watchos*] = 1 ABC_BUGCAPTURE_ON[sdk=watchsimulator*] = 0 ABC_BUGCAPTURE_ON[sdk=appletvos*] = 1 ABC_BUGCAPTURE_ON[sdk=appletvsimulator*] = 0 ABC_BUGCAPTURE_ON[sdk=macos*] = 1 ABC_BUGCAPTURE_ON[sdk=bridgeos*] = 0 #include "xcconfig/PlatformLibraries.xcconfig"