mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
b2f9808722
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.
41 lines
946 B
Meson
41 lines
946 B
Meson
libcheck_files = [
|
|
'check.c',
|
|
'check_error.c',
|
|
'check_list.c',
|
|
'check_log.c',
|
|
'check_msg.c',
|
|
'check_pack.c',
|
|
'check_print.c',
|
|
'check_run.c',
|
|
'check_str.c',
|
|
'libcompat.c'
|
|
]
|
|
|
|
if not cdata.has('HAVE_ALARM')
|
|
libcheck_files += [ 'alarm.c' ]
|
|
endif
|
|
|
|
if not cdata.has('HAVE_CLOCK_GETTIME')
|
|
libcheck_files += [ 'clock_gettime.c' ]
|
|
endif
|
|
|
|
if not cdata.has('HAVE_DECL_STRSIGNAL')
|
|
libcheck_files += [ 'strsignal.c' ]
|
|
endif
|
|
|
|
# FIXME: check for symbols timer_create, timer_settime, timer_delete as well
|
|
if not rt_lib.found()
|
|
libcheck_files += [ 'timer_create.c', 'timer_settime.c', 'timer_delete.c' ]
|
|
endif
|
|
|
|
configure_file(input : 'check.h.in',
|
|
output : 'check.h',
|
|
configuration : check_cdata)
|
|
|
|
internal_check_h_inc = include_directories('..')
|
|
|
|
libcheck = static_library('check',
|
|
libcheck_files,
|
|
include_directories : [ configinc, internal_check_h_inc ],
|
|
dependencies : [rt_lib, mathlib],
|
|
c_args: gst_c_args + pic_args)
|