2016-10-17 14:50:25 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2015-05-25 04:22:51 +08:00
|
|
|
Import('env')
|
|
|
|
|
|
|
|
common_haiku = [
|
2016-10-31 01:44:57 +08:00
|
|
|
'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'
|
2015-05-25 04:22:51 +08:00
|
|
|
]
|
|
|
|
|
2017-11-29 04:27:57 +08:00
|
|
|
target = env.add_program(
|
2016-10-31 01:44:57 +08:00
|
|
|
'#bin/godot',
|
|
|
|
['godot_haiku.cpp'] + common_haiku
|
2015-05-25 04:22:51 +08:00
|
|
|
)
|
2016-01-16 11:30:13 +08:00
|
|
|
|
|
|
|
command = env.Command('#bin/godot.rsrc', '#platform/haiku/godot.rdef',
|
2016-10-31 01:44:57 +08:00
|
|
|
['rc -o $TARGET $SOURCE'])
|
2016-01-16 11:30:13 +08:00
|
|
|
|
2016-10-31 02:05:14 +08:00
|
|
|
|
2016-10-31 01:57:40 +08:00
|
|
|
def addResourcesAction(target=None, source=None, env=None):
|
2016-10-31 01:44:57 +08:00
|
|
|
return env.Execute('xres -o ' + File(target)[0].path + ' bin/godot.rsrc')
|
2016-01-16 11:30:13 +08:00
|
|
|
|
|
|
|
env.AddPostAction(target, addResourcesAction)
|
|
|
|
env.Depends(target, command)
|