mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
d8e8e92176
This brings us up-to-speed with the latest compatibility code from upstream check git. For completeness, we do all the checks that upstream check does, but we skip the snprintf/vsnprintf code because it's not straightforward (involves running code and that is bad for cross-compilation) and not necessary for the platforms we support anyway. If someone really wants this, they can uncomment this and copy the relevant checks from the check git repository. https://bugzilla.gnome.org/show_bug.cgi?id=775870
52 lines
1.3 KiB
Meson
52 lines
1.3 KiB
Meson
gst_check_sources = [
|
|
'gstbufferstraw.c',
|
|
'gstcheck.c',
|
|
'gstconsistencychecker.c',
|
|
'gstharness.c',
|
|
'gsttestclock.c',
|
|
]
|
|
gst_check_headers = [
|
|
'check.h',
|
|
'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)
|
|
else
|
|
check_cdata.set('HAVE_FORK', 0)
|
|
endif
|
|
|
|
subdir('libcheck')
|
|
|
|
configure_file(input : 'libcheck/check.h.in',
|
|
output : 'internal-check.h',
|
|
install : true,
|
|
install_dir : 'include/gstreamer-1.0/gst/check/',
|
|
configuration : check_cdata)
|
|
|
|
gst_check = shared_library('gstcheck-@0@'.format(apiversion),
|
|
gst_check_sources,
|
|
c_args : gst_c_args,
|
|
version : libversion,
|
|
soversion : soversion,
|
|
install : true,
|
|
include_directories : [configinc, libsinc],
|
|
link_with : [libcheck],
|
|
dependencies : [gobject_dep, glib_dep, gst_dep],
|
|
)
|
|
|
|
gst_check_dep = declare_dependency(link_with : gst_check,
|
|
include_directories : [libsinc],
|
|
dependencies : [gst_dep])
|