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.
This commit is contained in:
tokyo4j 2025-09-29 16:03:36 +09:00 committed by Johan Malm
parent 94c980c6be
commit 1043a9becc

View file

@ -1,3 +1,10 @@
test_deps = [
dep_cmocka,
glib,
xml2,
wlroots,
]
test_lib = static_library(
'test_lib',
sources: files(
@ -8,12 +15,7 @@ test_lib = static_library(
'../src/common/parse-bool.c',
),
include_directories: [labwc_inc],
dependencies: [
dep_cmocka,
glib,
xml2,
wlroots,
],
dependencies: test_deps,
)
tests = [
@ -30,7 +32,7 @@ foreach t : tests
sources: '@0@.c'.format(t),
include_directories: [labwc_inc],
link_with: [test_lib],
dependencies: [xml2],
dependencies: test_deps,
),
is_parallel: false,
)