Meson: Set install_tag on some files
authorXavier Claessens <xavier.claessens@collabora.com>
Fri, 11 Mar 2022 23:08:14 +0000 (18:08 -0500)
committerXavier Claessens <xavier.claessens@collabora.com>
Mon, 14 Mar 2022 12:56:54 +0000 (08:56 -0400)
Meson tries to guess the tag (runtime, devel, etc) for every installed
file, but it cannot guess them all. There is a list at the end of
meson-log.txt of files we need to tag manually.

See https://mesonbuild.com/Installing.html#installation-tags.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1934>

subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build
subprojects/gst-python/gi/overrides/meson.build
subprojects/gstreamer/data/bash-completion/helpers/meson.build
subprojects/gstreamer/data/meson.build
subprojects/gstreamer/libs/gst/helpers/meson.build

index b88e18c..190de71 100644 (file)
@@ -1012,6 +1012,7 @@ if build_gstgl
   configure_file(input : 'gstglconfig.h.meson',
     output : 'gstglconfig.h',
     install_dir : get_option('libdir') + '/gstreamer-1.0/include/gst/gl',
+    install_tag : 'devel',
     configuration : glconf)
 
   glib_mkenums = find_program('glib-mkenums')
index 7c41c0e..cac9a48 100644 (file)
@@ -1,6 +1,7 @@
 pysources = ['Gst.py', 'GstPbutils.py', 'GstVideo.py', 'GstAudio.py']
 install_data(pysources,
-    install_dir: pygi_override_dir)
+    install_dir: pygi_override_dir,
+    install_tag: 'python-runtime')
 
 gstpython = python.extension_module('_gi_gst',
     sources: ['gstmodule.c'],
index c5399bf..c633a4b 100644 (file)
@@ -6,4 +6,5 @@ bash_helper_conf.set('GST_API_VERSION', apiversion)
 configure_file(input : 'gst.in',
     output : 'gst',
     install_dir : bash_helpers_dir,
-    configuration : bash_helper_conf)
+    configuration : bash_helper_conf,
+    install_tag : 'runtime')
index c9130e0..25f2643 100644 (file)
@@ -1,5 +1,9 @@
 if (bashcomp_found)
   subdir('bash-completion/helpers')
-  install_data('bash-completion/completions/gst-launch-1.0', install_dir : bash_completions_dir)
-  install_data('bash-completion/completions/gst-inspect-1.0', install_dir : bash_completions_dir)
+  install_data('bash-completion/completions/gst-launch-1.0',
+    install_dir : bash_completions_dir,
+    install_tag : 'runtime')
+  install_data('bash-completion/completions/gst-inspect-1.0',
+    install_dir : bash_completions_dir,
+    install_tag : 'runtime')
 endif
index 6f7d7da..a6ca092 100644 (file)
@@ -125,7 +125,8 @@ if have_ptp
 endif
 
 install_data(['gst_gdb.py', 'glib_gobject_helper.py'],
-  install_dir : join_paths(get_option('datadir'), 'gstreamer-@0@'.format(apiversion), 'gdb'))
+  install_dir : join_paths(get_option('datadir'), 'gstreamer-@0@'.format(apiversion), 'gdb'),
+  install_tag : 'devel')
 
 gdbconf = configuration_data()
 gdbconf.set('GST_API_VERSION', apiversion)
@@ -143,4 +144,5 @@ endif
 configure_file(input : 'libgstreamer-gdb.py.in',
   output : 'libgstreamer-@0@.so.@1@-gdb.py'.format(apiversion, libversion),
   install_dir : gdb_install_dir,
+  install_tag : 'devel',
   configuration : gdbconf)