diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2019-02-26 11:18:24 -0300 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2019-02-26 11:18:24 -0300 |
commit | 805be3c2076a943c954be07e678bfc4c5cceacb3 (patch) | |
tree | a2e72a3a0ba6e514fe852cef4f753bd98201c18f | |
parent | 4aa0f6f145dcc22ea88b52b1bf381880d9427e21 (diff) |
update-all: Handle using the update-all target from gst-build
-rw-r--r-- | update_sources.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/update_sources.py b/update_sources.py index 12c9617..f9fc6f2 100644 --- a/update_sources.py +++ b/update_sources.py @@ -25,18 +25,23 @@ if __name__ == "__main__": print("Building all code") subprocess.check_call([ninja, "-C", buildroot]) + if 'gstreamer-sharp' in os.environ['MESON_SUBDIR']: + subproject_prefix = 'gstreamer-sharp@@' + else: + subproject_prefix = '' + if bindinate: print("Bindinate GStreamer") - subprocess.check_call([ninja, "-C", buildroot, "bindinate_gstreamer"]) + subprocess.check_call([ninja, "-C", buildroot, subproject_prefix + "bindinate_gstreamer"]) print("Update GStreamer bindings") - subprocess.check_call([ninja, "-C", buildroot, "update_gstreamer_code"]) + subprocess.check_call([ninja, "-C", buildroot, subproject_prefix + "update_gstreamer_code"]) if bindinate: print("Bindinate GES") - subprocess.check_call([ninja, "-C", buildroot, "bindinate_ges"]) + subprocess.check_call([ninja, "-C", buildroot, subproject_prefix + "bindinate_ges"]) print("Update GES bindings") - subprocess.check_call([ninja, "-C", buildroot, "update_ges_code"]) + subprocess.check_call([ninja, "-C", buildroot, subproject_prefix + "update_ges_code"]) print("Building all code") subprocess.check_call([ninja, "-C", buildroot])
\ No newline at end of file |