blob: 582ea25b23d2b9bdeb75edb1a41e824833ef4c23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Configures the build to use XCode targeting iOS simulator
import subprocess
CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'watchsimulator', 'clang']).strip()
CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'watchsimulator', 'clang++']).strip()
sdk_path = subprocess.check_output(['xcrun', '--sdk', 'watchsimulator', '--show-sdk-path']).strip()
CCFLAGS = "-isysroot {} -mwatchos-version-min=4.2 -arch i386 -fembed-bitcode".format(sdk_path)
LINKFLAGS = "-Wl,-syslibroot,{} -mwatchos-version-min=4.2 -arch i386 -fembed-bitcode".format(sdk_path)
TARGET_OS = "watchOS-sim"
TARGET_ARCH = "i386"
|