godot/platform/haiku/SCsub

26 lines
603 B
Plaintext
Raw Normal View History

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