Commit 874ad5fa authored by Matthew Waters's avatar Matthew Waters 🐨

meson: generate pkg-config files for our plugins

parent 92d5d5bc
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment