blob: 10c4a57c3fb97e6bcaa24e8466e39253f0f39cfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Configures the build to use XCode targeting tvOS
import subprocess
CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'appletvos', 'clang']).strip()
CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'appletvos', 'clang++']).strip()
sdk_path = subprocess.check_output(['xcrun', '--sdk', 'appletvos', '--show-sdk-path']).strip()
CCFLAGS = "-isysroot {} -mtvos-version-min=10.2 -arch arm64 -fembed-bitcode".format(sdk_path)
LINKFLAGS = "-Wl,-syslibroot,{} -mtvos-version-min=10.2 -arch arm64 -fembed-bitcode".format(sdk_path)
TARGET_OS = "tvOS"
TARGET_ARCH = "aarch64"
|