summaryrefslogtreecommitdiff
path: root/etc/scons/xcode_watchos.vars
blob: f6b4843cd7f1ed9f8933b3bca74aca2be3e30ff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Configures the build to use XCode targeting iOS

import subprocess

CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'watchos', 'clang']).strip()
CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'watchos', 'clang++']).strip()

sdk_path = subprocess.check_output(['xcrun', '--sdk', 'watchos', '--show-sdk-path']).strip()

CCFLAGS = "-isysroot {} -mwatchos-version-min=4.2 -arch armv7k -fembed-bitcode -fapplication-extension".format(sdk_path)
LINKFLAGS = "-Wl,-syslibroot,{} -mwatchos-version-min=4.2 -arch armv7k -fembed-bitcode -fapplication-extension".format(sdk_path)

TARGET_OS = "watchOS"
TARGET_ARCH = "arm"