2016-10-17 08:50:25 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2014-02-10 02:10:30 +01:00
|
|
|
Import('env')
|
|
|
|
|
|
|
|
iphone_lib = [
|
|
|
|
|
2016-10-30 18:44:57 +01:00
|
|
|
'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 02:10:30 +01:00
|
|
|
]
|
|
|
|
|
2016-10-30 18:57:40 +01:00
|
|
|
# env.Depends('#core/math/vector3.h', 'vector3_psp.h')
|
2014-02-10 02:10:30 +01:00
|
|
|
|
|
|
|
#iphone_lib = env.Library('iphone', iphone_lib)
|
|
|
|
|
2016-11-01 00:24:30 +01:00
|
|
|
env_ios = env.Clone()
|
2014-02-10 02:10:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
if env['ios_gles22_override'] == "yes":
|
2016-10-30 18:44:57 +01:00
|
|
|
env_ios.Append(CPPFLAGS=['-DGLES2_OVERRIDE'])
|
2014-02-10 02:10:30 +01:00
|
|
|
|
|
|
|
|
2016-10-30 18:57:40 +01:00
|
|
|
# if env['ios_appirater'] == "yes":
|
2016-04-29 18:03:46 +02:00
|
|
|
# env_ios.Append(CPPFLAGS=['-DAPPIRATER_ENABLED'])
|
2014-02-10 02:10:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
obj = env_ios.Object('godot_iphone.cpp')
|
|
|
|
|
|
|
|
prog = None
|
2014-10-07 06:31:49 +02:00
|
|
|
prog = env_ios.Program('#bin/godot', [obj] + iphone_lib)
|
2016-10-30 18:57:40 +01:00
|
|
|
action = "$IPHONEPATH/usr/bin/dsymutil " + File(prog)[0].path + " -o " + File(prog)[0].path + ".dSYM"
|
2014-10-07 06:31:49 +02:00
|
|
|
env.AddPostAction(prog, action)
|