mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
Meson: Use pkg-config generator
This commit is contained in:
parent
c310130086
commit
31efd7a11c
6 changed files with 10 additions and 48 deletions
|
@ -139,6 +139,7 @@ if get_option('default_library') == 'shared'
|
||||||
# If we don't build static plugins there is no need to generate pc files
|
# If we don't build static plugins there is no need to generate pc files
|
||||||
plugins_pkgconfig_install_dir = disabler()
|
plugins_pkgconfig_install_dir = disabler()
|
||||||
endif
|
endif
|
||||||
|
pkgconfig_subdirs = ['gstreamer-1.0']
|
||||||
|
|
||||||
plugins = []
|
plugins = []
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
|
|
|
@ -75,6 +75,13 @@ gstvalidatetracer = library('gstvalidatetracer',
|
||||||
install_dir : plugins_install_dir,
|
install_dir : plugins_install_dir,
|
||||||
dependencies : validate_deps)
|
dependencies : validate_deps)
|
||||||
|
|
||||||
|
pkgconfig.generate(gstvalidate,
|
||||||
|
libraries : [gst_dep],
|
||||||
|
subdirs : pkgconfig_subdirs,
|
||||||
|
name : 'gst-validate-1.0',
|
||||||
|
description : 'Gstreamer Validate',
|
||||||
|
)
|
||||||
|
|
||||||
validate_gen_sources = []
|
validate_gen_sources = []
|
||||||
if build_gir
|
if build_gir
|
||||||
gst_validate_gir_extra_args = gir_init_section + [ '--c-include=gst/validate/validate.h' ]
|
gst_validate_gir_extra_args = gir_init_section + [ '--c-include=gst/validate/validate.h' ]
|
||||||
|
@ -104,4 +111,6 @@ validate_dep = declare_dependency(link_with : gstvalidate,
|
||||||
sources : validate_gen_sources
|
sources : validate_gen_sources
|
||||||
)
|
)
|
||||||
|
|
||||||
|
meson.override_dependency('gst-validate-1.0', validate_dep)
|
||||||
|
|
||||||
pkgconfig.generate(gstvalidatetracer, install_dir : plugins_pkgconfig_install_dir)
|
pkgconfig.generate(gstvalidatetracer, install_dir : plugins_pkgconfig_install_dir)
|
||||||
|
|
|
@ -24,7 +24,6 @@ subdir('gst')
|
||||||
subdir('gst-libs')
|
subdir('gst-libs')
|
||||||
subdir('launcher')
|
subdir('launcher')
|
||||||
subdir('tools')
|
subdir('tools')
|
||||||
subdir('pkgconfig')
|
|
||||||
if not get_option('tests').disabled()
|
if not get_option('tests').disabled()
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
# the standard variables don't make sense for an uninstalled copy
|
|
||||||
prefix=
|
|
||||||
exec_prefix=
|
|
||||||
libdir=@validatelibdir@
|
|
||||||
includedir=@abs_top_builddir@
|
|
||||||
|
|
||||||
Name: gst-validate
|
|
||||||
Description: GStreamer Validate
|
|
||||||
Version: @VERSION@
|
|
||||||
Requires: gstreamer-@GST_API_VERSION@
|
|
||||||
Libs: -L${libdir} -lgstvalidate-@GST_API_VERSION@
|
|
||||||
Cflags: -I@abs_top_srcdir@ -I@abs_top_builddir@
|
|
|
@ -1,11 +0,0 @@
|
||||||
prefix=@prefix@
|
|
||||||
exec_prefix=@exec_prefix@
|
|
||||||
libdir=@libdir@
|
|
||||||
includedir=@includedir@/gstreamer-@GST_API_VERSION@
|
|
||||||
|
|
||||||
Name: gst-validate
|
|
||||||
Description: Gstreamer Validate
|
|
||||||
Version: @VERSION@
|
|
||||||
Requires: gstreamer-@GST_API_VERSION@
|
|
||||||
Libs: -L${libdir} -lgstvalidate-@GST_API_VERSION@
|
|
||||||
Cflags: -I${includedir}
|
|
|
@ -1,24 +0,0 @@
|
||||||
pkgconf = configuration_data()
|
|
||||||
|
|
||||||
pkgconf.set('prefix', get_option('prefix'))
|
|
||||||
pkgconf.set('exec_prefix', '${prefix}')
|
|
||||||
pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
|
|
||||||
pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
|
|
||||||
pkgconf.set('GST_API_VERSION', apiversion)
|
|
||||||
pkgconf.set('VERSION', gst_version)
|
|
||||||
|
|
||||||
# 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('validatelibdir', join_paths(meson.build_root(), gstvalidate.outdir()))
|
|
||||||
|
|
||||||
pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
|
|
||||||
|
|
||||||
configure_file(input : 'gst-validate.pc.in',
|
|
||||||
output : 'gst-validate-1.0.pc',
|
|
||||||
configuration : pkgconf,
|
|
||||||
install_dir : pkg_install_dir)
|
|
||||||
|
|
||||||
configure_file(input : 'gst-validate-uninstalled.pc.in',
|
|
||||||
output : 'gst-validate-1.0-uninstalled.pc',
|
|
||||||
configuration : pkgconf)
|
|
Loading…
Reference in a new issue