meson: add pkg-config file for the webrtc plugin
authorMatthew Waters <matthew@centricular.com>
Fri, 31 Aug 2018 07:19:02 +0000 (17:19 +1000)
committerMatthew Waters <matthew@centricular.com>
Fri, 31 Aug 2018 08:08:55 +0000 (18:08 +1000)
ext/webrtc/meson.build

index 1d64aa9..04145eb 100644 (file)
@@ -18,7 +18,7 @@ libnice_dep = dependency('nice', version : '>=0.1.14', required : get_option('we
                          default_options: ['tests=false'])
 
 if libnice_dep.found()
-  library('gstwebrtc',
+  gstwebrtc_plugin = library('gstwebrtc',
     webrtc_sources,
     c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
     include_directories : [configinc],
@@ -26,4 +26,5 @@ if libnice_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstwebrtc_plugin, install_dir : plugins_pkgconfig_install_dir)
 endif