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.
+test_deps = [
+ dep_cmocka,
+ glib,
+ xml2,
+ wlroots,
+]
+
test_lib = static_library(
'test_lib',
sources: files(
'../src/common/parse-bool.c',
),
include_directories: [labwc_inc],
- dependencies: [
- dep_cmocka,
- glib,
- xml2,
- wlroots,
- ],
+ dependencies: test_deps,
)
tests = [
sources: '@0@.c'.format(t),
include_directories: [labwc_inc],
link_with: [test_lib],
- dependencies: [xml2],
+ dependencies: test_deps,
),
is_parallel: false,
)