summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-03-11 13:49:11 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2020-03-11 13:49:11 -0400
commit7ef372db76cf40b1ea3459c4c8ebd6d757b8cd96 (patch)
treec79f52e5c8c1d7c651ad12f6f3fe03dfdb4d3f39 /scripts
parent7fa292406e7d15c7716ef4883b02873d922d96f4 (diff)
downloadgstreamer-7ef372db76cf40b1ea3459c4c8ebd6d757b8cd96.tar.gz
Meson: Fix useless reconfigure when plugins libs change
This is a workaround for a Meson bug that incorrectly trigger reconfigure when files change in build directory. This commit can be reverted once GStreamer depends on Meson >=0.54.0. See https://github.com/mesonbuild/meson/pull/6770 Fixes: #85
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generate_init_static_plugins.py4
-rw-r--r--scripts/generate_plugins_path.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/generate_init_static_plugins.py b/scripts/generate_init_static_plugins.py
index d7a13e28ee..c2ed122512 100644
--- a/scripts/generate_init_static_plugins.py
+++ b/scripts/generate_init_static_plugins.py
@@ -19,12 +19,12 @@ gst_init_static_plugins (void)
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(dest="output", help="Output file")
- parser.add_argument(dest="plugins", nargs=argparse.REMAINDER, help="The list of plugins")
+ parser.add_argument(dest="plugins", help="The list of plugins")
options = parser.parse_args()
names = set()
- for plugin in options.plugins:
+ for plugin in options.plugins.split(os.pathsep):
filename = os.path.basename(plugin)
if filename.startswith('libgst') and filename.endswith('.a'):
names.add(filename[len('libgst'):-len('.a')])
diff --git a/scripts/generate_plugins_path.py b/scripts/generate_plugins_path.py
index 17a38f123b..d609639f94 100644
--- a/scripts/generate_plugins_path.py
+++ b/scripts/generate_plugins_path.py
@@ -7,12 +7,12 @@ import json
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(dest="output", help="Output file")
- parser.add_argument(dest="plugins", nargs=argparse.REMAINDER, help="The list of plugins")
+ parser.add_argument(dest="plugins", help="The list of plugins")
options = parser.parse_args()
all_paths = set()
- for plugin in options.plugins:
+ for plugin in options.plugins.split(os.pathsep):
all_paths.add(os.path.dirname(plugin))
with open(options.output, "w") as f: