2016-10-17 06:50:25 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 06:28:32 +00:00
|
|
|
Import("env")
|
2015-05-24 20:22:51 +00:00
|
|
|
|
|
|
|
common_haiku = [
|
2020-03-30 06:28:32 +00: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-24 20:22:51 +00:00
|
|
|
]
|
|
|
|
|
2020-03-30 06:28:32 +00:00
|
|
|
target = env.add_program("#bin/godot", ["godot_haiku.cpp"] + common_haiku)
|
2016-01-16 03:30:13 +00:00
|
|
|
|
2020-03-30 06:28:32 +00:00
|
|
|
command = env.Command("#bin/godot.rsrc", "#platform/haiku/godot.rdef", ["rc -o $TARGET $SOURCE"])
|
2016-01-16 03:30:13 +00:00
|
|
|
|
2016-10-30 18:05:14 +00:00
|
|
|
|
2016-10-30 17:57:40 +00:00
|
|
|
def addResourcesAction(target=None, source=None, env=None):
|
2020-03-30 06:28:32 +00:00
|
|
|
return env.Execute("xres -o " + File(target)[0].path + " bin/godot.rsrc")
|
|
|
|
|
2016-01-16 03:30:13 +00:00
|
|
|
|
|
|
|
env.AddPostAction(target, addResourcesAction)
|
|
|
|
env.Depends(target, command)
|