PKGBUILDs/extra/gstreamer/0003-vaapi-Skip-plugin-pc-file-for-shared-plugins.patch
2023-01-28 17:27:45 +00:00

26 lines
1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Tue, 24 Jan 2023 02:52:49 +0000
Subject: [PATCH] vaapi: Skip plugin pc file for shared plugins
Following similar logic in the other subprojects.
---
subprojects/gstreamer-vaapi/meson.build | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/subprojects/gstreamer-vaapi/meson.build b/subprojects/gstreamer-vaapi/meson.build
index 4f8e6d27f9a3..5f8b5159dee2 100644
--- a/subprojects/gstreamer-vaapi/meson.build
+++ b/subprojects/gstreamer-vaapi/meson.build
@@ -240,6 +240,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 = []