summaryrefslogtreecommitdiff
path: root/platform/haiku/SCsub
blob: 23e5e2e71190fd9d0c4fa88abc0aaad00b9404e0 (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
27
#!/usr/bin/env python

Import('env')

common_haiku = [
    'os_haiku.cpp',
    'context_gl_haiku.cpp',
    'haiku_application.cpp',
    'haiku_direct_window.cpp',
    'haiku_gl_view.cpp',
    'key_mapping_haiku.cpp',
    'audio_driver_media_kit.cpp'
]

target = env.Program(
    '#bin/godot',
    ['godot_haiku.cpp'] + common_haiku
)

command = env.Command('#bin/godot.rsrc', '#platform/haiku/godot.rdef',
                      ['rc -o $TARGET $SOURCE'])

def addResourcesAction(target=None, source=None, env=None):
    return env.Execute('xres -o ' + File(target)[0].path + ' bin/godot.rsrc')

env.AddPostAction(target, addResourcesAction)
env.Depends(target, command)