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)
|
2018-07-25 10:30:28 +00:00
|
|
|
if host_system != 'windows'
|
2016-08-12 14:55:17 +00:00
|
|
|
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',
|
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)
|
|
|
|
|
2018-09-19 18:37:38 +00:00
|
|
|
gst_check = library('gstcheck-@0@'.format(apiversion),
|
2016-08-12 14:55:17 +00:00
|
|
|
gst_check_sources,
|
2018-08-25 21:09:12 +00:00
|
|
|
c_args : gst_c_args + ['-UG_DISABLE_ASSERT', '-DBUILDING_GST_CHECK'],
|
2016-08-21 23:01:46 +00:00
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-28 20:33:28 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-21 23:01:46 +00:00
|
|
|
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' ]
|
2018-10-22 06:14:11 +00:00
|
|
|
gst_check_gir = gnome.generate_gir(gst_check,
|
2017-05-20 16:57:39 +00:00
|
|
|
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,
|
2018-10-22 06:14:11 +00:00
|
|
|
)
|
|
|
|
gst_check_gen_sources += gst_check_gir
|
2017-05-20 16:57:39 +00:00
|
|
|
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)
|