summaryrefslogtreecommitdiff
path: root/platform/iphone/SCsub
blob: 61798c5f87ad3744f2143f82ee6e093a5a7ee2a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python

Import('env')

iphone_lib = [

    'os_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',
    'ios.mm',
]

env_ios = env.Clone()

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)