nle: install pkg-config file for plugin
authorMatthew Waters <matthew@centricular.com>
Sun, 4 Nov 2018 09:47:01 +0000 (20:47 +1100)
committerThibault Saunier <tsaunier@gnome.org>
Mon, 5 Nov 2018 12:18:23 +0000 (12:18 +0000)
meson.build
plugins/nle/meson.build

index 68fe85a..4e03930 100644 (file)
@@ -120,6 +120,13 @@ gir_init_section = [ '--add-init-section=' + \
 ges_c_args = ['-DHAVE_CONFIG_H', '-DG_LOG_DOMAIN="GES"']
 plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))
 
+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
+
 if gst_dep.type_name() == 'internal'
   gst_debug_disabled = not subproject('gstreamer').get_variable('gst_debug')
 else
index 4531c57..29b41a5 100644 (file)
@@ -14,4 +14,4 @@ nle = library('gstnle', nle_sources,
   install : true,
   install_dir : plugins_install_dir,
 )
-
+pkgconfig.generate(nle, install_dir : plugins_pkgconfig_install_dir)