817dd7ccbb
Done with `autopep8 --select=E3,W3`, fixes: - E301 - Add missing blank line. - E302 - Add missing 2 blank lines. - E303 - Remove extra blank lines. - E304 - Remove blank line following function decorator. - E309 - Add missing blank line. - W391 - Remove trailing blank lines.
28 lines
671 B
Python
28 lines
671 B
Python
#!/usr/bin/env python
|
|
|
|
Import('env')
|
|
|
|
common_haiku = [
|
|
'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'
|
|
]
|
|
|
|
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)
|