Makes it clearer which files are actually used in libcheck and which are used
for cross-platform compatibility. This is going to be especially useful when we
add all the libcompat fallback code that upstream libcheck has which will add
about 6 new files.
https://bugzilla.gnome.org/show_bug.cgi?id=775870
check_print.c \
check_run.c \
check_str.c \
check_print.c \
check_run.c \
check_str.c \
+CFILES += libcompat/alarm.c
endif
if !HAVE_CLOCK_GETTIME
endif
if !HAVE_CLOCK_GETTIME
-CFILES += clock_gettime.c
+CFILES += libcompat/clock_gettime.c
+CFILES += libcompat/strsignal.c
endif
if !HAVE_TIMER_CREATE_SETTIME_DELETE
CFILES +=\
endif
if !HAVE_TIMER_CREATE_SETTIME_DELETE
CFILES +=\
- timer_create.c \
- timer_settime.c \
- timer_delete.c
+ libcompat/timer_create.c \
+ libcompat/timer_settime.c \
+ libcompat/timer_delete.c
check_pack.h \
check_print.h \
check_str.h \
check_pack.h \
check_print.h \
check_str.h \
noinst_HEADERS = $(HFILES)
noinst_HEADERS = $(HFILES)
'check_print.c',
'check_run.c',
'check_str.c',
'check_print.c',
'check_run.c',
'check_str.c',
+ 'libcompat/libcompat.c'
]
if not cdata.has('HAVE_ALARM')
]
if not cdata.has('HAVE_ALARM')
- libcheck_files += [ 'alarm.c' ]
+ libcheck_files += ['libcompat/alarm.c']
endif
if not cdata.has('HAVE_CLOCK_GETTIME')
endif
if not cdata.has('HAVE_CLOCK_GETTIME')
- libcheck_files += [ 'clock_gettime.c' ]
+ libcheck_files += ['libcompat/clock_gettime.c']
endif
if not cdata.has('HAVE_DECL_STRSIGNAL')
endif
if not cdata.has('HAVE_DECL_STRSIGNAL')
- libcheck_files += [ 'strsignal.c' ]
+ libcheck_files += ['libcompat/strsignal.c']
endif
# FIXME: check for symbols timer_create, timer_settime, timer_delete as well
if not rt_lib.found()
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' ]
+ libcheck_files += [
+ 'libcompat/timer_create.c',
+ 'libcompat/timer_settime.c',
+ 'libcompat/timer_delete.c'
+ ]
endif
configure_file(input : 'check.h.in',
endif
configure_file(input : 'check.h.in',
libcheck = static_library('check',
libcheck_files,
libcheck = static_library('check',
libcheck_files,
- include_directories : [ configinc, internal_check_h_inc ],
+ include_directories : [configinc, internal_check_h_inc],
dependencies : [rt_lib, mathlib],
c_args: gst_c_args,
pic: true)
dependencies : [rt_lib, mathlib],
c_args: gst_c_args,
pic: true)