diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-30 15:07:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 15:07:00 +0200 |
commit | b383484e445b1554c811556181a7815e0308fd62 (patch) | |
tree | dc038e9d922bc93b2673c52f59fc1eaf862075e1 /platform/haiku/SCsub | |
parent | 0168709978154a89f137b44f33647e5d28a46250 (diff) | |
parent | 3644036fd3d8678ac44695cc49ae63c4aaeb1b97 (diff) |
Merge pull request #37421 from akien-mga/python-format-black
SCons: Format buildsystem files with psf/black
Diffstat (limited to 'platform/haiku/SCsub')
-rw-r--r-- | platform/haiku/SCsub | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/platform/haiku/SCsub b/platform/haiku/SCsub index 592f56bbbf..dbff6c5ae9 100644 --- a/platform/haiku/SCsub +++ b/platform/haiku/SCsub @@ -1,28 +1,25 @@ #!/usr/bin/env python -Import('env') +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' + "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.add_program( - '#bin/godot', - ['godot_haiku.cpp'] + common_haiku -) +target = env.add_program("#bin/godot", ["godot_haiku.cpp"] + common_haiku) -command = env.Command('#bin/godot.rsrc', '#platform/haiku/godot.rdef', - ['rc -o $TARGET $SOURCE']) +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') + return env.Execute("xres -o " + File(target)[0].path + " bin/godot.rsrc") + env.AddPostAction(target, addResourcesAction) env.Depends(target, command) |