2016-10-17 14:50:25 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2014-02-10 09:10:30 +08:00
|
|
|
Import('env')
|
|
|
|
|
|
|
|
iphone_lib = [
|
|
|
|
|
|
|
|
'os_iphone.cpp',
|
|
|
|
#'rasterizer_iphone.cpp',
|
|
|
|
'audio_driver_iphone.cpp',
|
|
|
|
'sem_iphone.cpp',
|
|
|
|
'gl_view.mm',
|
|
|
|
'main.m',
|
|
|
|
'app_delegate.mm',
|
|
|
|
'view_controller.mm',
|
|
|
|
'game_center.mm',
|
|
|
|
'in_app_store.mm',
|
2015-09-28 07:54:20 +08:00
|
|
|
'icloud.mm',
|
2016-04-30 00:03:46 +08:00
|
|
|
#'Appirater.m',
|
2016-04-29 21:50:56 +08:00
|
|
|
'ios.mm',
|
2014-02-10 09:10:30 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
#env.Depends('#core/math/vector3.h', 'vector3_psp.h')
|
|
|
|
|
|
|
|
#iphone_lib = env.Library('iphone', iphone_lib)
|
|
|
|
|
|
|
|
env_ios = env.Clone();
|
|
|
|
|
|
|
|
|
|
|
|
if env['ios_gles22_override'] == "yes":
|
|
|
|
env_ios.Append(CPPFLAGS=['-DGLES2_OVERRIDE'])
|
|
|
|
|
|
|
|
|
2016-04-30 00:03:46 +08:00
|
|
|
#if env['ios_appirater'] == "yes":
|
|
|
|
# env_ios.Append(CPPFLAGS=['-DAPPIRATER_ENABLED'])
|
2014-02-10 09:10:30 +08:00
|
|
|
|
|
|
|
|
|
|
|
obj = env_ios.Object('godot_iphone.cpp')
|
|
|
|
|
|
|
|
prog = None
|
2014-10-07 12:31:49 +08:00
|
|
|
prog = env_ios.Program('#bin/godot', [obj] + iphone_lib)
|
2015-09-10 03:57:49 +08:00
|
|
|
action = "$IPHONEPATH/usr/bin/dsymutil "+File(prog)[0].path+" -o " + File(prog)[0].path + ".dSYM"
|
2014-10-07 12:31:49 +08:00
|
|
|
env.AddPostAction(prog, action)
|