diff options
author | marynate <mary.w.nate@gmail.com> | 2014-02-15 19:54:21 +0800 |
---|---|---|
committer | marynate <mary.w.nate@gmail.com> | 2014-02-15 23:17:23 +0800 |
commit | d38cf2e396d1950aea1cc2e4cc1f3dbe50d43ef2 (patch) | |
tree | 73e5cf66c37d450ad9dffd24057aea7c25d50526 /platform/isim/SCsub | |
parent | 9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852 (diff) |
Update SConstruct build scripts for iOS Simulator build
Diffstat (limited to 'platform/isim/SCsub')
-rw-r--r-- | platform/isim/SCsub | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/platform/isim/SCsub b/platform/isim/SCsub index 6fb568465e..e7de935b2e 100644 --- a/platform/isim/SCsub +++ b/platform/isim/SCsub @@ -5,11 +5,14 @@ iphone_lib = [ '#platform/iphone/os_iphone.cpp', #'#platform/iphone/rasterizer_iphone.cpp', '#platform/iphone/audio_driver_iphone.cpp', + '#platform/iphone/sem_iphone.cpp', '#platform/iphone/gl_view.mm', '#platform/iphone/main.m', '#platform/iphone/app_delegate.mm', '#platform/iphone/view_controller.mm', - '#platform/iphone/scoreloop_ios.mm', + '#platform/iphone/game_center.mm', + '#platform/iphone/in_app_store.mm', + '#platform/iphone/Appirater.m', ] @@ -17,14 +20,25 @@ iphone_lib = [ #iphone_lib = env.Library('iphone', iphone_lib) -obj = env.Object('#platform/iphone/godot_iphone.cpp') +env_ios = env.Clone(); + +if env['ios_gles22_override'] == "yes": + env_ios.Append(CPPFLAGS=['-DGLES2_OVERRIDE']) + +if env['ios_GLES1_override'] == "yes": + env_ios.Append(CPPFLAGS=['-DGLES1_OVERRIDE']) + +if env['ios_appirater'] == "yes": + env_ios.Append(CPPFLAGS=['-DAPPIRATER_ENABLED']) + +obj = env_ios.Object('#platform/iphone/godot_iphone.cpp') prog = None if env["target"]=="release": - prog = env.Program('#bin/godot_iphone_opt', [obj] + iphone_lib) + prog = env_ios.Program('#bin/godot_opt', [obj] + iphone_lib) #action = "dsymutil "+File(prog)[0].path+" -o ../build/script_exec/build/Debug-iphoneos/script_exec.app.dSYM" #env.AddPostAction(prog, action) else: - prog = env.Program('#bin/godot', [obj] + iphone_lib) + prog = env_ios.Program('#bin/godot', [obj] + iphone_lib) #action = "dsymutil "+File(prog)[0].path+" -o ../build/script_exec/build/Debug-iphoneos/script_exec.app.dSYM" #env.AddPostAction(prog, action) |