2016-08-12 14:55:17 +00:00
|
|
|
pkgconf = configuration_data()
|
|
|
|
|
2017-10-10 13:44:51 +00:00
|
|
|
pkgconf.set('prefix', join_paths(get_option('prefix')))
|
2016-08-12 14:55:17 +00:00
|
|
|
pkgconf.set('exec_prefix', '${prefix}')
|
|
|
|
pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
|
2018-10-28 12:05:41 +00:00
|
|
|
pkgconf.set('libexecdir', '${prefix}/@0@'.format(get_option('libexecdir')))
|
2016-08-12 14:55:17 +00:00
|
|
|
pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
|
|
|
|
pkgconf.set('GST_API_VERSION', apiversion)
|
|
|
|
pkgconf.set('VERSION', gst_version)
|
2017-08-07 09:33:32 +00:00
|
|
|
pkgconf.set('LIBM', mathlib.found() ? '-lm' : '')
|
2016-08-12 14:55:17 +00:00
|
|
|
|
2017-07-11 15:15:16 +00:00
|
|
|
# Requires.private
|
|
|
|
pkgconf.set('UNWIND_REQUIRE', cdata.has('HAVE_UNWIND') ? 'libunwind' : '')
|
|
|
|
pkgconf.set('DW_REQUIRE', cdata.has('HAVE_DW') ? 'libdw' : '')
|
|
|
|
|
2017-01-04 11:10:45 +00:00
|
|
|
# needed for generating -uninstalled.pc files
|
|
|
|
pkgconf.set('abs_top_builddir', join_paths(meson.current_build_dir(), '..'))
|
|
|
|
pkgconf.set('abs_top_srcdir', join_paths(meson.current_source_dir(), '..'))
|
|
|
|
pkgconf.set('gstlibdir', join_paths(meson.build_root(), libgst.outdir()))
|
|
|
|
pkgconf.set('baselibdir', join_paths(meson.build_root(), gst_base.outdir()))
|
|
|
|
pkgconf.set('controllerlibdir', join_paths(meson.build_root(), gst_controller.outdir()))
|
|
|
|
pkgconf.set('netlibdir', join_paths(meson.build_root(), gst_net.outdir()))
|
|
|
|
|
2016-08-12 14:55:17 +00:00
|
|
|
pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
|
|
|
|
|
2018-08-10 00:23:35 +00:00
|
|
|
pkg_files = [
|
|
|
|
'gstreamer-base',
|
2016-08-12 14:55:17 +00:00
|
|
|
'gstreamer-controller',
|
|
|
|
'gstreamer-net',
|
|
|
|
'gstreamer'
|
|
|
|
]
|
|
|
|
|
2018-08-10 00:23:35 +00:00
|
|
|
if not get_option('check').disabled()
|
|
|
|
pkg_files += ['gstreamer-check']
|
|
|
|
pkgconf.set('checklibdir', join_paths(meson.build_root(), gst_check.outdir()))
|
|
|
|
endif
|
2017-01-05 13:32:03 +00:00
|
|
|
|
2016-08-12 14:55:17 +00:00
|
|
|
foreach p : pkg_files
|
|
|
|
infile = p + '.pc.in'
|
|
|
|
outfile = p + '-1.0.pc'
|
|
|
|
configure_file(input : infile,
|
|
|
|
output : outfile,
|
|
|
|
configuration : pkgconf,
|
|
|
|
install_dir : pkg_install_dir)
|
2017-01-04 11:10:45 +00:00
|
|
|
|
|
|
|
infile = p + '-uninstalled.pc.in'
|
|
|
|
outfile = p + '-1.0-uninstalled.pc'
|
|
|
|
configure_file(input : infile,
|
|
|
|
output : outfile,
|
|
|
|
configuration : pkgconf)
|
2016-08-12 14:55:17 +00:00
|
|
|
endforeach
|