validate: use extract_objects to avoid rebuilding all files for the tracer

And add the tracer to the plugins list so it can be used in our
uninstalled environment.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/250>
This commit is contained in:
Thibault Saunier 2021-06-08 12:28:49 -04:00
parent f34f4b6c00
commit ea3bd58289
2 changed files with 5 additions and 3 deletions

View file

@ -148,6 +148,7 @@ if get_option('default_library') == 'shared'
endif
pkgconfig_subdirs = ['gstreamer-1.0']
plugins_doc_dep = []
plugins = []
i18n = import('i18n')

View file

@ -1,5 +1,4 @@
gstvalidate_sources = [
'gst-validate-runner.c',
'gst-validate-reporter.c',
'gst-validate-mockdecryptor.c',
'gst-validate-monitor.c',
@ -58,7 +57,7 @@ gst_validate_enums = gnome.mkenums('gstvalidateenumtypes',
validate_deps = [gst_check_dep, gst_dep, gst_controller_dep, gstbase_dep, glib_dep, gio_dep, gmodule_dep, gst_pbutils_dep, mathlib, json_dep]
gstvalidate = library('gstvalidate-1.0',
sources: gstvalidate_sources + gst_validate_enums,
sources: files('gst-validate-runner.c') + gstvalidate_sources + gst_validate_enums,
version : libversion,
soversion : soversion,
darwin_versions : osxversion,
@ -68,13 +67,15 @@ gstvalidate = library('gstvalidate-1.0',
dependencies : validate_deps)
gstvalidatetracer = library('gstvalidatetracer',
sources: gstvalidate_sources + gst_validate_enums,
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(gstvalidate,
libraries : [gst_dep],
subdirs : pkgconfig_subdirs,