summaryrefslogtreecommitdiff
path: root/etc/scons/xcode_watchos_sim.vars
blob: a9f5dea78567d622860789ce5453596676dc52c9 (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.3 -arch i386".format(sdk_path)
LINKFLAGS = "-Wl,-syslibroot,{} -mwatchos-version-min=4.3 -arch i386".format(sdk_path)

TARGET_OS = "watchOS-sim"
TARGET_ARCH = "i386"