mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
meson: Build GstValidate as a tracer
And add version to the GStValidate shared library
This commit is contained in:
parent
5dee7c8f47
commit
3cbaae3090
3 changed files with 20 additions and 1 deletions
|
@ -9,3 +9,8 @@
|
|||
|
||||
/* directory where plugins are located */
|
||||
#mesondefine VALIDATEPLUGINDIR
|
||||
#mesondefine GST_LICENSE
|
||||
#mesondefine VERSION
|
||||
#mesondefine PACKAGE
|
||||
#mesondefine GST_PACKAGE_NAME
|
||||
#mesondefine GST_PACKAGE_ORIGIN
|
||||
|
|
|
@ -38,7 +38,7 @@ gstvalidate_sources = [
|
|||
'gst-validate-utils.h',
|
||||
'gst-validate-media-info.h']
|
||||
|
||||
gstvalidate = shared_library('gstvalidate',
|
||||
gstvalidate = shared_library('gstvalidate-1.0',
|
||||
sources: gstvalidate_sources,
|
||||
version : libversion,
|
||||
soversion : soversion,
|
||||
|
@ -48,6 +48,15 @@ gstvalidate = shared_library('gstvalidate',
|
|||
dependencies : [gst_dep, glib_dep, gio_dep, gmodule_dep,
|
||||
gst_pbutils_dep, mathlib, json_dep])
|
||||
|
||||
gstvalidate = shared_library('gstvalidateplugin',
|
||||
sources: gstvalidate_sources,
|
||||
include_directories : [inc_dirs],
|
||||
install: true,
|
||||
c_args : [gst_c_args] + ['-D__GST_VALIDATE_PLUGIN'],
|
||||
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
|
||||
dependencies : [gst_dep, glib_dep, gio_dep, gmodule_dep,
|
||||
gst_pbutils_dep, mathlib, json_dep])
|
||||
|
||||
validate_gen_sources = []
|
||||
if build_gir
|
||||
gst_validate_gir_extra_args = gir_init_section + [ '--c-include=gst/validate/validate.h' ]
|
||||
|
|
|
@ -2,6 +2,11 @@ inc_dirs = include_directories('.')
|
|||
|
||||
json_dep = dependency('json-glib-1.0')
|
||||
cdata = configuration_data()
|
||||
cdata.set('GST_LICENSE', '"LGPL"')
|
||||
cdata.set('VERSION', '"@0@"'.format(gst_version))
|
||||
cdata.set('PACKAGE', '"gst-validate"')
|
||||
cdata.set('GST_PACKAGE_NAME', '"GStreamer Validate"')
|
||||
cdata.set('GST_PACKAGE_ORIGIN', '"Unknown package origin"')
|
||||
cdata.set('GST_API_VERSION', '"@0@"'.format(apiversion))
|
||||
cdata.set('VALIDATEPLUGINDIR', '"@0@/@1@/gstreamer-1.0/validate"'.format(get_option('prefix'),get_option('libdir')))
|
||||
cdata.set('GST_DATADIR', '"@0@/@1@"'.format(prefix, get_option('datadir')))
|
||||
|
|
Loading…
Reference in a new issue