mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
meson: generate pkg-config files for our plugins
This commit is contained in:
parent
92d5d5bc57
commit
874ad5faca
3 changed files with 13 additions and 3 deletions
|
@ -503,6 +503,15 @@ if bashcomp_dep.found()
|
|||
endif
|
||||
endif
|
||||
|
||||
plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.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
|
||||
|
||||
subdir('gst')
|
||||
subdir('libs')
|
||||
subdir('plugins')
|
||||
|
|
|
@ -31,5 +31,6 @@ gst_elements = library('gstcoreelements',
|
|||
include_directories : [configinc],
|
||||
dependencies : [gobject_dep, glib_dep, gst_dep, gst_base_dep],
|
||||
install : true,
|
||||
install_dir : join_paths(get_option('libdir'), 'gstreamer-1.0'),
|
||||
install_dir : plugins_install_dir,
|
||||
)
|
||||
pkgconfig.generate(gst_elements, install_dir : plugins_pkgconfig_install_dir)
|
||||
|
|
|
@ -21,6 +21,6 @@ gst_tracers = library('gstcoretracers',
|
|||
include_directories : [configinc],
|
||||
dependencies : [gst_dep],
|
||||
install : true,
|
||||
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
|
||||
install_dir : plugins_install_dir,
|
||||
)
|
||||
|
||||
pkgconfig.generate(gst_tracers, install_dir : plugins_pkgconfig_install_dir)
|
||||
|
|
Loading…
Reference in a new issue