gstreamer/validate/gst/validate/meson.build
Thibault Saunier 0a7b23f566 doc: Port to hotdoc
Ideally we want a GstValidate hotdoc plugin... not for now.
2019-05-13 11:37:38 -04:00

107 lines
3.8 KiB
Meson

gstvalidate_sources = [
'gst-validate-runner.c',
'gst-validate-reporter.c',
'gst-validate-mockdecryptor.c',
'gst-validate-monitor.c',
'gst-validate-element-monitor.c',
'gst-validate-bin-monitor.c',
'gst-validate-pipeline-monitor.c',
'gst-validate-pad-monitor.c',
'gst-validate-monitor-factory.c',
'gst-validate-report.c',
'gst-validate-scenario.c',
'gst-validate-override.c',
'gst-validate-utils.c',
'gst-validate-override-registry.c',
'media-descriptor.c',
'media-descriptor-writer.c',
'media-descriptor-parser.c',
'gst-validate-media-info.c',
'validate.c',
]
gstvalidate_headers = [
'validate.h',
'validate-prelude.h',
'gst-validate-types.h',
'gst-validate-bin-monitor.h',
'gst-validate-pipeline-monitor.h',
'gst-validate-element-monitor.h',
'gst-validate-enums.h',
'media-descriptor.h',
'media-descriptor-writer.h',
'media-descriptor-parser.h',
'gst-validate-monitor-factory.h',
'gst-validate-monitor.h',
'gst-validate-override.h',
'gst-validate-override-registry.h',
'gst-validate-pad-monitor.h',
'gst-validate-reporter.h',
'gst-validate-report.h',
'gst-validate-runner.h',
'gst-validate-scenario.h',
'gst-validate-utils.h',
'gst-validate-media-info.h'
]
install_headers(gstvalidate_headers, subdir : 'gstreamer-1.0/gst/validate')
gst_validate_enums = gnome.mkenums('gstvalidateenumtypes',
sources : gstvalidate_headers,
h_template : 'gst-validate-enum-types.h.template',
c_template : 'gst-validate-enum-types.c.template',
install_header : true,
install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/validate'))
gstvalidate = library('gstvalidate-1.0',
sources: gstvalidate_sources + gst_validate_enums,
version : libversion,
soversion : soversion,
darwin_versions : osxversion,
include_directories : [inc_dirs],
install: true,
c_args : [gst_c_args] + ['-D_GNU_SOURCE'],
vs_module_defs: vs_module_defs_dir + 'libgstvalidate.def',
dependencies : [gst_dep, gstbase_dep, glib_dep, gio_dep,
gmodule_dep, gst_pbutils_dep, mathlib, json_dep])
gstvalidatetracer = library('gstvalidatetracer',
sources: gstvalidate_sources + 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,
dependencies : [gst_dep, gstbase_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' ]
validate_gir = gnome.generate_gir(gstvalidate,
sources : gstvalidate_sources + gstvalidate_headers + gst_validate_enums,
nsversion : '1.0',
namespace : 'GstValidate',
symbol_prefix : 'gst_validate',
identifier_prefix : 'GstValidate',
export_packages : 'gst-validate-' + apiversion,
includes : ['GObject-2.0',
'GLib-2.0',
'Gio-2.0',
'GModule-2.0',
'Gst-' + apiversion,
'GstPbutils-' + apiversion],
install : true,
dependencies : [gst_dep, gstbase_dep, glib_dep, gio_dep, gst_pbutils_dep],
extra_args : gst_validate_gir_extra_args,
)
validate_gen_sources += [validate_gir]
endif
validate_dep = declare_dependency(link_with : gstvalidate,
include_directories : [inc_dirs],
dependencies : [gst_dep, glib_dep, gio_dep, gmodule_dep,
gst_pbutils_dep, mathlib],
sources : validate_gen_sources
)
pkgconfig.generate(gstvalidatetracer, install_dir : plugins_pkgconfig_install_dir)