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