summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorAriel Manzur <punto@godotengine.org>2016-06-22 16:15:05 -0300
committerRémi Verschelde <rverschelde@gmail.com>2016-06-23 07:41:54 +0200
commit10c512e46d57034b2fd6f408e0fec37f17e972e5 (patch)
tree422a91bcbf064f0f6c840786898e2ef14e891ece /SConstruct
parentdc8c14548833d6d1ffe209ecc37e442bc5259b3f (diff)
downloadredot-engine-10c512e46d57034b2fd6f408e0fec37f17e972e5.tar.gz
added "arch" parameter, made iphone use it to build isim
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 038d42f946..80d39403ba 100644
--- a/SConstruct
+++ b/SConstruct
@@ -112,6 +112,7 @@ if profile:
opts=Variables(customs, ARGUMENTS)
opts.Add('target', 'Compile Target (debug/release_debug/release).', "debug")
+opts.Add('arch', 'Platform dependent architecture (arm/arm64/x86/x64/mips/etc)', "")
opts.Add('bits', 'Compile Target Bits (default/32/64/fat).', "default")
opts.Add('platform','Platform: '+str(platform_list)+'.',"")
opts.Add('p','Platform (same as platform=).',"")
@@ -276,7 +277,9 @@ if selected_platform in platform_list:
else:
suffix+=".debug"
- if (env["bits"]=="32"):
+ if env["arch"] != "":
+ suffix += "."+env["arch"]
+ elif (env["bits"]=="32"):
suffix+=".32"
elif (env["bits"]=="64"):
suffix+=".64"