Meson: Generate pc file for all plugins in ugly
[platform/upstream/gstreamer.git] / meson.build
index 8c55605..cc6632f 100644 (file)
@@ -235,6 +235,14 @@ foreach extra_arg : warning_c_flags
 endforeach
 
 presetdir = join_paths(get_option('datadir'), 'gstreamer-' + api_version, 'presets')
+
+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
+
 subdir('gst')
 subdir('ext')
 subdir('tests')