1 pkgconf = configuration_data()
3 pkgconf.set('prefix', get_option('prefix'))
4 pkgconf.set('exec_prefix', '${prefix}')
5 pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
6 pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
7 pkgconf.set('GST_API_VERSION', api_version)
8 pkgconf.set('VERSION', gst_version)
10 # needed for generating -uninstalled.pc files
11 pkgconf.set('abs_top_builddir', join_paths(meson.current_build_dir(), '..'))
12 pkgconf.set('abs_top_srcdir', join_paths(meson.current_source_dir(), '..'))
13 pkgconf.set('rtspserverlibdir', join_paths(meson.build_root(), gst_rtsp_server.outdir()))
15 pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
17 configure_file(input : 'gstreamer-rtsp-server.pc.in',
18 output : 'gstreamer-rtsp-server-1.0.pc',
19 configuration : pkgconf,
20 install_dir : pkg_install_dir)
22 configure_file(input : 'gstreamer-rtsp-server-uninstalled.pc.in',
23 output : 'gstreamer-rtsp-server-1.0-uninstalled.pc',
24 configuration : pkgconf)