meson: Generate a pkgconfig file for gstlibav

This matches all other plugins in the other gstreamer repos. This is
also necessary for generating the correct libtool archive (.la) files
in Cerbero which are needed for static linking on Android and iOS.
This commit is contained in:
Nirbheek Chauhan 2018-10-09 18:07:09 +05:30
parent f749504848
commit 26585686b0
2 changed files with 9 additions and 2 deletions

View file

@ -13,7 +13,7 @@ sources = [
'gstavdeinterlace.c',
]
gstlibav = library('gstlibav',
gstlibav_plugin = library('gstlibav',
sources,
c_args : gst_libav_args,
include_directories : [configinc],
@ -22,3 +22,4 @@ gstlibav = library('gstlibav',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstlibav_plugin, install_dir : plugins_pkgconfig_install_dir)

View file

@ -180,7 +180,13 @@ endforeach
configinc = include_directories('.')
plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))
subdir('ext/libav/')
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('ext/libav')
python3 = import('python').find_installation()
run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')