gstreamer/libs/gst/check/meson.build
Nirbheek Chauhan b2f9808722 Add support for Meson as alternative/parallel build system
https://github.com/mesonbuild/meson

With contributions from:

Tim-Philipp Müller <tim@centricular.com>
Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Jussi Pakkanen <jpakkane@gmail.com> (original port)

Highlights of the features provided are:
* Faster builds on Linux (~40-50% faster)
* The ability to build with MSVC on Windows
* Generate Visual Studio project files
* Generate XCode project files
* Much faster builds on Windows (on-par with Linux)
* Seriously fast configure and building on embedded

... and many more. For more details see:

http://blog.nirbheek.in/2016/05/gstreamer-and-meson-new-hope.html
http://blog.nirbheek.in/2016/07/building-and-developing-gstreamer-using.html

Building with Meson should work on both Linux and Windows, but may
need a few more tweaks on other operating systems.
2016-08-19 21:26:14 +01:00

47 lines
1.1 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)
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',
gst_check_sources,
c_args : gst_c_args,
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])