godot/platform/iphone/SCsub

43 lines
893 B
Plaintext
Raw Normal View History

#!/usr/bin/env python
2014-02-10 01:10:30 +00: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',
'icloud.mm',
#'Appirater.m',
'ios.mm',
2014-02-10 01:10:30 +00:00
]
# env.Depends('#core/math/vector3.h', 'vector3_psp.h')
2014-02-10 01:10:30 +00:00
#iphone_lib = env.Library('iphone', iphone_lib)
env_ios = env.Clone()
2014-02-10 01:10:30 +00:00
if env['ios_gles22_override'] == "yes":
env_ios.Append(CPPFLAGS=['-DGLES2_OVERRIDE'])
2014-02-10 01:10:30 +00:00
# if env['ios_appirater'] == "yes":
2016-04-29 16:03:46 +00:00
# env_ios.Append(CPPFLAGS=['-DAPPIRATER_ENABLED'])
2014-02-10 01:10:30 +00:00
obj = env_ios.Object('godot_iphone.cpp')
prog = None
prog = env_ios.Program('#bin/godot', [obj] + iphone_lib)
action = "$IPHONEPATH/usr/bin/dsymutil " + File(prog)[0].path + " -o " + File(prog)[0].path + ".dSYM"
env.AddPostAction(prog, action)