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

import subprocess

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

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

CCFLAGS = "-isysroot {} -mtvos-version-min=10.2 -arch x86_64 -fembed-bitcode".format(sdk_path)
LINKFLAGS = "-Wl,-syslibroot,{} -mtvos-version-min=10.2 -arch x86_64 -fembed-bitcode".format(sdk_path)

TARGET_OS = "tvOS-sim"
TARGET_ARCH = "x86_64"