summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2018-06-14 13:06:32 -0400
committerAndrew Morrow <acm@mongodb.com>2018-06-14 17:54:18 -0400
commit9e1dd9db4bf614c785f51b23f73facc45fd75302 (patch)
treef41c9f727f82d6d2cfaec06ab643883292bf2eb8 /SConstruct
parentd54be2fa9beef38399f4771a50e0bd8d3bf70d08 (diff)
downloadmongo-9e1dd9db4bf614c785f51b23f73facc45fd75302.tar.gz
SERVER-35600 Add support for targeting watchos
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index c26cdfd1429..9bbe81aca80 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1100,6 +1100,9 @@ os_macros = {
"iOS-sim": "defined(__APPLE__) && TARGET_OS_IOS && TARGET_OS_SIMULATOR",
"tvOS": "defined(__APPLE__) && TARGET_OS_TV && !TARGET_OS_SIMULATOR",
"tvOS-sim": "defined(__APPLE__) && TARGET_OS_TV && TARGET_OS_SIMULATOR",
+ "watchOS": "defined(__APPLE__) && TARGET_OS_WATCH && !TARGET_OS_SIMULATOR",
+ "watchOS-sim": "defined(__APPLE__) && TARGET_OS_WATCH && TARGET_OS_SIMULATOR",
+
# NOTE: Once we have XCode 8 required, we can rely on the value of TARGET_OS_OSX. In case
# we are on an older XCode, use TARGET_OS_MAC and TARGET_OS_IPHONE. We don't need to correct
# the above declarations since we will never target them with anything other than XCode 8.