1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

change matrix and enable caching for Android, iOS and macOS (cross-compile)

This commit is contained in:
Rhody Lugo
2017-11-12 19:02:47 -04:00
parent 49a12ddbc5
commit f09bbfa372
8 changed files with 355 additions and 43 deletions

View File

@@ -48,10 +48,19 @@ def configure(env):
env['ENV']['PATH'] = env['IPHONEPATH'] + "/Developer/usr/bin/:" + env['ENV']['PATH']
env['CC'] = '$IPHONEPATH/usr/bin/${ios_triple}clang'
env['CXX'] = '$IPHONEPATH/usr/bin/${ios_triple}clang++'
env['AR'] = '$IPHONEPATH/usr/bin/${ios_triple}ar'
env['RANLIB'] = '$IPHONEPATH/usr/bin/${ios_triple}ranlib'
compiler_path = '$IPHONEPATH/usr/bin/${ios_triple}'
ccache_path = os.environ.get("CCACHE")
if ccache_path == None:
env['CC'] = compiler_path + 'clang'
env['CXX'] = compiler_path + 'clang++'
else:
# there aren't any ccache wrappers available for iOS,
# to enable caching we need to prepend the path to the ccache binary
env['CC'] = ccache_path + ' ' + compiler_path + 'clang'
env['CXX'] = ccache_path + ' ' + compiler_path + 'clang++'
env['AR'] = compiler_path + 'ar'
env['RANLIB'] = compiler_path + 'ranlib'
import string
if (env["ios_sim"] == "yes" or env["arch"] == "x86"): # i386, simulator