Skip to content

Commit

Permalink
meson: add pkg-config file for the rtspclientsink plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ystreet committed Aug 31, 2018
1 parent a2e182c commit 5bd835a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions gst/rtsp-sink/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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)
7 changes: 7 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 5bd835a

Please sign in to comment.