vaapi: Skip plugin pc file for shared plugins
authorJan Alexander Steffens (heftig) <heftig@archlinux.org>
Tue, 24 Jan 2023 02:52:49 +0000 (02:52 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 26 Jan 2023 11:16:31 +0000 (11:16 +0000)
Following similar logic in the other subprojects.

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

subprojects/gstreamer-vaapi/meson.build

index 5cd0532..c4aec6d 100644 (file)
@@ -241,6 +241,10 @@ meson.add_dist_script('scripts/gen-changelog.py', meson.project_name(), '1.20.0'
 
 pkgconfig = import('pkgconfig')
 plugins_pkgconfig_install_dir = join_paths(plugins_install_dir, 'pkgconfig')
+if get_option('default_library') == 'shared'
+  # If we don't build static plugins there is no need to generate pc files
+  plugins_pkgconfig_install_dir = disabler()
+endif
 
 plugin_names = []
 gst_plugins = []