2015-05-24 22:22:51 +02:00
|
|
|
Import('env')
|
|
|
|
|
|
|
|
common_haiku = [
|
2015-06-11 21:57:41 +02:00
|
|
|
'os_haiku.cpp',
|
|
|
|
'context_gl_haiku.cpp',
|
|
|
|
'haiku_application.cpp',
|
|
|
|
'haiku_direct_window.cpp',
|
2015-07-11 23:52:47 +02:00
|
|
|
'haiku_gl_view.cpp',
|
2015-08-14 21:52:28 +02:00
|
|
|
'key_mapping_haiku.cpp',
|
|
|
|
'audio_driver_media_kit.cpp'
|
2015-05-24 22:22:51 +02:00
|
|
|
]
|
|
|
|
|
2016-01-16 04:30:13 +01:00
|
|
|
target = env.Program(
|
2015-05-24 22:22:51 +02:00
|
|
|
'#bin/godot',
|
|
|
|
['godot_haiku.cpp'] + common_haiku
|
|
|
|
)
|
2016-01-16 04:30:13 +01:00
|
|
|
|
|
|
|
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)
|