validate:build: Disable static building validate tracer

It introduce duplication of symbols and we need to rework the way we implement it

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1093>
This commit is contained in:
Thibault Saunier 2021-10-02 11:54:00 -03:00
parent 6b2c333093
commit 2fd461a032

View file

@ -66,16 +66,22 @@ gstvalidate = library('gstvalidate-1.0',
c_args : [gst_c_args] + ['-D_GNU_SOURCE'],
dependencies : validate_deps)
gstvalidatetracer = library('gstvalidatetracer',
sources: files('gst-validate-runner.c') + gst_validate_enums,
include_directories : [inc_dirs],
install: true,
c_args : [gst_c_args] + ['-D__GST_VALIDATE_PLUGIN', '-D_GNU_SOURCE'],
install_dir : plugins_install_dir,
objects: gstvalidate.extract_objects(gstvalidate_sources),
dependencies : validate_deps)
if not static_build
gstvalidatetracer = library('gstvalidatetracer',
sources: files('gst-validate-runner.c') + gst_validate_enums,
include_directories : [inc_dirs],
install: true,
c_args : [gst_c_args] + ['-D__GST_VALIDATE_PLUGIN', '-D_GNU_SOURCE'],
install_dir : plugins_install_dir,
objects: gstvalidate.extract_objects(gstvalidate_sources),
dependencies : validate_deps)
plugins += gstvalidatetracer
pkgconfig.generate(gstvalidatetracer, install_dir : plugins_pkgconfig_install_dir)
else
warning('Statically building GstValidate as a tracer is not supported yet.')
endif
plugins += gstvalidatetracer
pkg_name = 'gst-validate-1.0'
library_def = {'lib': gstvalidate}
@ -123,4 +129,3 @@ validate_dep = declare_dependency(link_with : gstvalidate,
meson.override_dependency(pkg_name, validate_dep)
pkgconfig.generate(gstvalidatetracer, install_dir : plugins_pkgconfig_install_dir)