mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
42 lines
946 B
Meson
42 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)
|