Meson: Generate pc file for all plugins in ugly

https://bugzilla.gnome.org/show_bug.cgi?id=794568
This commit is contained in:
Xavier Claessens 2018-04-24 14:06:20 -04:00 committed by Tim-Philipp Müller
parent a76c63ba38
commit 6b01999087
13 changed files with 20 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -17,3 +17,4 @@ gstasf = library('gstasf',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstasf, install_dir : plugins_pkgconfig_install_dir)

View file

@ -10,3 +10,4 @@ gstdvdlpcmdec = library('gstdvdlpcmdec',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstdvdlpcmdec, install_dir : plugins_pkgconfig_install_dir)

View file

@ -11,3 +11,4 @@ gstdvdsub = library('gstdvdsub',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstdvdsub, install_dir : plugins_pkgconfig_install_dir)

View file

@ -21,3 +21,4 @@ gstrmdemux = library('gstrealmedia',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstrmdemux, install_dir : plugins_pkgconfig_install_dir)

View file

@ -11,3 +11,4 @@ gstxingmux = library('gstxingmux',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstxingmux, install_dir : plugins_pkgconfig_install_dir)

View 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')