2022-06-08 12:31:09 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
def options(opts):
|
|
|
|
opts.Add("ios_triple", "Triple for ios toolchain", "")
|
|
|
|
|
|
|
|
|
|
|
|
def exists(env):
|
|
|
|
return "OSXCROSS_IOS" in os.environ
|
|
|
|
|
|
|
|
|
|
|
|
def generate(env):
|
2022-07-20 08:01:47 +00:00
|
|
|
compiler_path = "$IOS_TOOLCHAIN_PATH/usr/bin/${ios_triple}"
|
2022-06-08 12:31:09 +00:00
|
|
|
env["CC"] = compiler_path + "clang"
|
|
|
|
env["CXX"] = compiler_path + "clang++"
|
|
|
|
env["AR"] = compiler_path + "ar"
|
|
|
|
env["RANLIB"] = compiler_path + "ranlib"
|
|
|
|
env["SHLIBSUFFIX"] = ".dylib"
|
|
|
|
|
|
|
|
env.Prepend(
|
|
|
|
CPPPATH=[
|
2022-07-20 08:01:47 +00:00
|
|
|
"$IOS_SDK_PATH/usr/include",
|
|
|
|
"$IOS_SDK_PATH/System/Library/Frameworks/AudioUnit.framework/Headers",
|
2022-06-08 12:31:09 +00:00
|
|
|
]
|
|
|
|
)
|
|
|
|
env.Append(CCFLAGS=["-stdlib=libc++"])
|