2016-08-12 14:55:17 +00:00
|
|
|
gst_check_sources = [
|
|
|
|
'gstbufferstraw.c',
|
|
|
|
'gstcheck.c',
|
|
|
|
'gstconsistencychecker.c',
|
|
|
|
'gstharness.c',
|
|
|
|
'gsttestclock.c',
|
|
|
|
]
|
|
|
|
gst_check_headers = [
|
|
|
|
'check.h',
|
2018-03-12 23:03:26 +00:00
|
|
|
'check-prelude.h',
|
2016-08-12 14:55:17 +00:00
|
|
|
'gstbufferstraw.h',
|
|
|
|
'gstcheck.h',
|
|
|
|
'gstconsistencychecker.h',
|
|
|
|
'gstharness.h',
|
|
|
|
'gsttestclock.h',
|
|
|
|
]
|
|
|
|
install_headers(gst_check_headers, subdir : 'gstreamer-1.0/gst/check/')
|
|
|
|
|
|
|
|
|
|
|
|
check_cdata = configuration_data()
|
|
|
|
|
|
|
|
check_cdata.set('ENABLE_SUBUNIT', 0)
|
|
|
|
check_cdata.set('CHECK_MAJOR_VERSION', 0)
|
|
|
|
check_cdata.set('CHECK_MINOR_VERSION', 9)
|
|
|
|
check_cdata.set('CHECK_MICRO_VERSION', 14)
|
|
|
|
if host_machine.system() != 'windows'
|
|
|
|
check_cdata.set('HAVE_FORK', 1)
|
2016-12-09 09:48:11 +00:00
|
|
|
else
|
|
|
|
check_cdata.set('HAVE_FORK', 0)
|
2016-08-12 14:55:17 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
subdir('libcheck')
|
|
|
|
|
|
|
|
configure_file(input : 'libcheck/check.h.in',
|
|
|
|
output : 'internal-check.h',
|
|
|
|
install : true,
|
2018-04-01 14:06:26 +00:00
|
|
|
install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/check'),
|
2016-08-12 14:55:17 +00:00
|
|
|
configuration : check_cdata)
|
|
|
|
|
2016-08-21 23:01:46 +00:00
|
|
|
gst_check = shared_library('gstcheck-@0@'.format(apiversion),
|
2016-08-12 14:55:17 +00:00
|
|
|
gst_check_sources,
|
2017-11-08 19:05:03 +00:00
|
|
|
c_args : gst_c_args + ['-DGST_EXPORTS'],
|
2016-08-21 23:01:46 +00:00
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
|
|
|
install : true,
|
2016-08-12 14:55:17 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
link_with : [libcheck],
|
|
|
|
dependencies : [gobject_dep, glib_dep, gst_dep],
|
|
|
|
)
|
|
|
|
|
2017-05-20 16:57:39 +00:00
|
|
|
gst_check_gen_sources = []
|
|
|
|
|
|
|
|
if build_gir
|
|
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/check/check.h' ]
|
|
|
|
gst_check_gen_sources += [gnome.generate_gir(gst_check,
|
|
|
|
sources : gst_check_sources + gst_check_headers,
|
|
|
|
namespace : 'GstCheck',
|
|
|
|
nsversion : apiversion,
|
|
|
|
identifier_prefix : 'Gst',
|
|
|
|
symbol_prefix : 'gst',
|
|
|
|
export_packages : 'gstreamer-check-1.0',
|
|
|
|
dependencies : [gst_dep],
|
|
|
|
include_directories : [configinc, libsinc, privinc],
|
|
|
|
includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gst-1.0'],
|
|
|
|
install : true,
|
|
|
|
extra_args : gst_gir_extra_args,
|
|
|
|
)]
|
|
|
|
endif
|
|
|
|
|
2016-08-12 14:55:17 +00:00
|
|
|
gst_check_dep = declare_dependency(link_with : gst_check,
|
|
|
|
include_directories : [libsinc],
|
2017-05-20 16:57:39 +00:00
|
|
|
dependencies : [gst_dep],
|
|
|
|
sources : gst_check_gen_sources)
|