labwc/t/meson.build
tokyo4j 1043a9becc test: fix build error in t/xml.c
38a1a9b broke `t/xml.c` due to `macros.h` requiring `wlr/version.h`.
This commit fixes it by adding `wlroots` as a direct dependency of the
test executables.
2025-09-29 19:41:32 +01:00

39 lines
664 B
Meson

test_deps = [
dep_cmocka,
glib,
xml2,
wlroots,
]
test_lib = static_library(
'test_lib',
sources: files(
'../src/common/buf.c',
'../src/common/mem.c',
'../src/common/string-helpers.c',
'../src/common/xml.c',
'../src/common/parse-bool.c',
),
include_directories: [labwc_inc],
dependencies: test_deps,
)
tests = [
'buf-simple',
'str',
'xml',
]
foreach t : tests
test(
'test_@0@'.format(t),
executable(
'test_@0@'.format(t),
sources: '@0@.c'.format(t),
include_directories: [labwc_inc],
link_with: [test_lib],
dependencies: test_deps,
),
is_parallel: false,
)
endforeach