2020-06-08 21:10:45 +01:00
|
|
|
rcxml_lib = static_library(
|
|
|
|
|
'rcxml',
|
2020-06-09 21:40:46 +01:00
|
|
|
sources: files('../src/config/rcxml.c', '../src/common/buf.c'),
|
2020-06-08 21:10:45 +01:00
|
|
|
dependencies: xml2,
|
|
|
|
|
include_directories: [labwc_inc],
|
|
|
|
|
link_with: library('libxml-2.0'),
|
|
|
|
|
)
|
|
|
|
|
|
2020-06-10 16:46:36 +01:00
|
|
|
rcxml_tests = [
|
|
|
|
|
't1000-rcxml-simple-parse.c',
|
|
|
|
|
't1001-rcxml-nodenames-simple.c',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
foreach t : rcxml_tests
|
|
|
|
|
testname = t.split('.')[0].underscorify()
|
|
|
|
|
exe = executable(
|
|
|
|
|
testname,
|
|
|
|
|
sources: [t, 'tap.c'],
|
|
|
|
|
include_directories: [labwc_inc],
|
|
|
|
|
link_with: rcxml_lib,
|
|
|
|
|
)
|
|
|
|
|
test(testname, exe)
|
|
|
|
|
endforeach
|
2020-06-09 22:20:24 +01:00
|
|
|
|