diff options
author | Matthew Waters <matthew@centricular.com> | 2018-08-31 17:20:47 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2018-08-31 18:11:04 +1000 |
commit | 5bd835a196288b7c405466498a1b502414a1174e (patch) | |
tree | 66ebc79408ac8267978feb9e2ab035dac010623b | |
parent | a2e182c3b41cf7a149d099d65e32ac512dd60dc3 (diff) |
meson: add pkg-config file for the rtspclientsink plugin
-rw-r--r-- | gst/rtsp-sink/meson.build | 1 | ||||
-rw-r--r-- | meson.build | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gst/rtsp-sink/meson.build b/gst/rtsp-sink/meson.build index b8fe2f0..ad3f40e 100644 --- a/gst/rtsp-sink/meson.build +++ b/gst/rtsp-sink/meson.build @@ -10,3 +10,4 @@ rtspsink = library('gstrtspclientsink', dependencies : [gstrtsp_dep, gstsdp_dep, gst_rtsp_server_dep], install : true, install_dir : plugins_install_dir) +pkgconfig.generate(rtspsink, install_dir : plugins_pkgconfig_install_dir) diff --git a/meson.build b/meson.build index 91551c8..be0674c 100644 --- a/meson.build +++ b/meson.build @@ -124,6 +124,13 @@ gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' + 'g_setenv("GST_PLUGIN_SYSTEM_PATH_1_0", "", TRUE);' + \ 'gst_init(NULL,NULL);' ] +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') if get_option('tests') subdir('tests') |