diff --git a/ext/a52dec/meson.build b/ext/a52dec/meson.build index 35d9d7a44c..5ce9d7b285 100644 --- a/ext/a52dec/meson.build +++ b/ext/a52dec/meson.build @@ -9,4 +9,5 @@ if a52_dep.found() and cc.has_header_symbol('a52dec/a52.h', 'a52_init', prefix : install : true, install_dir : plugins_install_dir, ) + pkgconfig.generate(a52dec, install_dir : plugins_pkgconfig_install_dir) endif diff --git a/ext/amrnb/meson.build b/ext/amrnb/meson.build index e9aa4af51c..4d3a9ebb2c 100644 --- a/ext/amrnb/meson.build +++ b/ext/amrnb/meson.build @@ -9,5 +9,6 @@ if amrnb_dep.found() install : true, install_dir : plugins_install_dir, ) + pkgconfig.generate(amrnb, install_dir : plugins_pkgconfig_install_dir) install_data(sources: 'GstAmrnbEnc.prs', install_dir: presetdir) endif diff --git a/ext/amrwbdec/meson.build b/ext/amrwbdec/meson.build index 9bba8ae0eb..b3aaf17e12 100644 --- a/ext/amrwbdec/meson.build +++ b/ext/amrwbdec/meson.build @@ -9,4 +9,5 @@ if amrwb_dep.found() install : true, install_dir : plugins_install_dir, ) + pkgconfig.generate(amrwbdec, install_dir : plugins_pkgconfig_install_dir) endif diff --git a/ext/cdio/meson.build b/ext/cdio/meson.build index 954b6b1cf1..d2fff2411c 100644 --- a/ext/cdio/meson.build +++ b/ext/cdio/meson.build @@ -9,4 +9,5 @@ if cdio_dep.found() install : true, install_dir : plugins_install_dir, ) + pkgconfig.generate(cdio, install_dir : plugins_pkgconfig_install_dir) endif diff --git a/ext/dvdread/meson.build b/ext/dvdread/meson.build index 203f89e335..b744c39151 100644 --- a/ext/dvdread/meson.build +++ b/ext/dvdread/meson.build @@ -10,4 +10,5 @@ if gmodule_dep.found() and dvdread_dep.found() install : true, install_dir : plugins_install_dir, ) + pkgconfig.generate(dvdread, install_dir : plugins_pkgconfig_install_dir) endif diff --git a/ext/mpeg2dec/meson.build b/ext/mpeg2dec/meson.build index d0d7d5c079..02d2a87968 100644 --- a/ext/mpeg2dec/meson.build +++ b/ext/mpeg2dec/meson.build @@ -9,4 +9,5 @@ if mpeg2_dep.found() install : true, install_dir : plugins_install_dir, ) + pkgconfig.generate(mpeg2dec, install_dir : plugins_pkgconfig_install_dir) endif diff --git a/ext/x264/meson.build b/ext/x264/meson.build index 544721a3cf..78f9cc969b 100644 --- a/ext/x264/meson.build +++ b/ext/x264/meson.build @@ -19,6 +19,7 @@ if x264_dep.found() install : true, install_dir : plugins_install_dir, ) + pkgconfig.generate(gstx264, install_dir : plugins_pkgconfig_install_dir) install_data(sources: 'GstX264Enc.prs', install_dir: presetdir) endif diff --git a/gst/asfdemux/meson.build b/gst/asfdemux/meson.build index bf27037bc1..ef51a13d7d 100644 --- a/gst/asfdemux/meson.build +++ b/gst/asfdemux/meson.build @@ -17,3 +17,4 @@ gstasf = library('gstasf', install : true, install_dir : plugins_install_dir, ) +pkgconfig.generate(gstasf, install_dir : plugins_pkgconfig_install_dir) diff --git a/gst/dvdlpcmdec/meson.build b/gst/dvdlpcmdec/meson.build index 4aef59e504..2d232bcee8 100644 --- a/gst/dvdlpcmdec/meson.build +++ b/gst/dvdlpcmdec/meson.build @@ -10,3 +10,4 @@ gstdvdlpcmdec = library('gstdvdlpcmdec', install : true, install_dir : plugins_install_dir, ) +pkgconfig.generate(gstdvdlpcmdec, install_dir : plugins_pkgconfig_install_dir) diff --git a/gst/dvdsub/meson.build b/gst/dvdsub/meson.build index c13969b89a..da9f023253 100644 --- a/gst/dvdsub/meson.build +++ b/gst/dvdsub/meson.build @@ -11,3 +11,4 @@ gstdvdsub = library('gstdvdsub', install : true, install_dir : plugins_install_dir, ) +pkgconfig.generate(gstdvdsub, install_dir : plugins_pkgconfig_install_dir) diff --git a/gst/realmedia/meson.build b/gst/realmedia/meson.build index 2a00ddd458..d42b30a15c 100644 --- a/gst/realmedia/meson.build +++ b/gst/realmedia/meson.build @@ -21,3 +21,4 @@ gstrmdemux = library('gstrealmedia', install : true, install_dir : plugins_install_dir, ) +pkgconfig.generate(gstrmdemux, install_dir : plugins_pkgconfig_install_dir) diff --git a/gst/xingmux/meson.build b/gst/xingmux/meson.build index c17da1cb46..b4f8524337 100644 --- a/gst/xingmux/meson.build +++ b/gst/xingmux/meson.build @@ -11,3 +11,4 @@ gstxingmux = library('gstxingmux', install : true, install_dir : plugins_install_dir, ) +pkgconfig.generate(gstxingmux, install_dir : plugins_pkgconfig_install_dir) diff --git a/meson.build b/meson.build index 8c55605e8b..cc6632f9be 100644 --- a/meson.build +++ b/meson.build @@ -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')