2 PLATFORM_STR = "unknown"
3 PLATFORM_STR[sdk=macosx*] = "macOS"
4 PLATFORM_STR[sdk=iphoneos*] = "iphone"
5 PLATFORM_STR[sdk=iphonesimulator*] = "iphone(sim)"
6 PLATFORM_STR[sdk=bridgeos*] = "bridge"
7 PLATFORM_STR[sdk=watchos*] = "watch"
8 PLATFORM_STR[sdk=watchsimulator*] = "watch(sim)"
9 PLATFORM_STR[sdk=appletvos*] = "tv"
10 PLATFORM_STR[sdk=appletvsimulator*] = "tv(sim)"
12 // Octagon is on for all non-bridge platforms
14 OCTAGON_ON[sdk=macosx*]=1
15 OCTAGON_ON[sdk=iphone*] = 1
16 OCTAGON_ON[sdk=bridgeos*] = 0
17 OCTAGON_ON[sdk=watch*] = 1
18 OCTAGON_ON[sdk=appletv*] = 1
20 // TrustedPeers is on for macOS, iOS, watchOS and tvOS
22 TRUSTEDPEERS_ON[sdk=macosx*] = 1
23 TRUSTEDPEERS_ON[sdk=iphone*] = 1
24 TRUSTEDPEERS_ON[sdk=bridgeos*] = 0
25 TRUSTEDPEERS_ON[sdk=watch*] = 1
26 TRUSTEDPEERS_ON[sdk=appletv*] = 1
28 // SecureObject Sync should only be on on iOS and macOS, but until we have octagon, its on on watch and TV
29 SECUREOBJECTSYNC_ON[sdk=iphone*] = 1
30 SECUREOBJECTSYNC_ON[sdk=bridgeos*] = 0
31 SECUREOBJECTSYNC_ON[sdk=watch*] = 1
32 SECUREOBJECTSYNC_ON[sdk=appletv*] = 1
33 SECUREOBJECTSYNC_ON[sdk=macos*] = 1
35 // Shared web credentials is supported on iOS and macOS and Catalyst
36 SHAREDWEBCREDENTIALS_ON[sdk=iphone*] = 1
37 SHAREDWEBCREDENTIALS_ON[sdk=bridgeos*] = 0
38 SHAREDWEBCREDENTIALS_ON[sdk=watch*] = 0
39 SHAREDWEBCREDENTIALS_ON[sdk=appletv*] = 0
40 SHAREDWEBCREDENTIALS_ON[sdk=macos*] = 1
42 ABC_BUGCAPTURE_ON[sdk=iphoneos*] = 1
43 ABC_BUGCAPTURE_ON[sdk=iphonesimulator*] = 0
44 ABC_BUGCAPTURE_ON[sdk=watchos*] = 1
45 ABC_BUGCAPTURE_ON[sdk=watchsimulator*] = 0
46 ABC_BUGCAPTURE_ON[sdk=appletvos*] = 1
47 ABC_BUGCAPTURE_ON[sdk=appletvsimulator*] = 0
48 ABC_BUGCAPTURE_ON[sdk=macos*] = 1
49 ABC_BUGCAPTURE_ON[sdk=bridgeos*] = 0
51 #include "xcconfig/PlatformLibraries.xcconfig"