mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
7ef372db76
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
19 lines
520 B
Python
19 lines
520 B
Python
#!/usr/bin/env python3
|
|
|
|
import argparse
|
|
import os
|
|
import json
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument(dest="output", help="Output file")
|
|
parser.add_argument(dest="plugins", help="The list of plugins")
|
|
|
|
options = parser.parse_args()
|
|
|
|
all_paths = set()
|
|
for plugin in options.plugins.split(os.pathsep):
|
|
all_paths.add(os.path.dirname(plugin))
|
|
|
|
with open(options.output, "w") as f:
|
|
json.dump(list(all_paths), f, indent=4, sort_keys=True)
|