# make it happen. For properties, the best way is to use th
# GST_PARAM_DOC_SHOW_DEFAULT flag.
UNSTABLE_VALUE = "unstable-values"
-BUILD_ROOT = "@BUILD_ROOT@"
def dict_recursive_update(d, u):
if __name__ == "__main__":
cache_filename = sys.argv[1]
output_filename = sys.argv[2]
+ build_root = os.environ.get('MESON_BUILD_ROOT', '')
subenv = os.environ.copy()
cache = {}
gst_plugins_paths.append(os.path.dirname(plugin_path))
try:
- with open(os.path.join(BUILD_ROOT, 'GstPluginsPath.json'), newline='\n') as f:
+ with open(os.path.join(build_root, 'GstPluginsPath.json'), newline='\n') as f:
plugin_paths = os.pathsep.join(json.load(f))
except FileNotFoundError:
plugin_paths = ""
install: true,
)
-conf = configuration_data()
-# We pass the build root so the doc cache generator can try
-# to find GstPluginsPath.json to set GST_PLUGIN_PATH and
-# thus handle plugins dependencies.
-conf.set('BUILD_ROOT', meson.build_root())
configure_file(
input: 'gst-plugins-doc-cache-generator.py',
output: 'gst-plugins-doc-cache-generator',
install_dir: helpers_install_dir,
- configuration: conf
+ copy: true
)
plugins_cache_generator = find_program(join_paths(meson.current_build_dir(), 'gst-plugins-doc-cache-generator'))