diff options
Diffstat (limited to 'platform/haiku/SCsub')
-rw-r--r-- | platform/haiku/SCsub | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/platform/haiku/SCsub b/platform/haiku/SCsub index 859095fa5a..1952e6b59b 100644 --- a/platform/haiku/SCsub +++ b/platform/haiku/SCsub @@ -10,7 +10,16 @@ common_haiku = [ 'audio_driver_media_kit.cpp' ] -env.Program( +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) |