From 1043a9becc9858c229cce6130bee29942d8202ac Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Mon, 29 Sep 2025 16:03:36 +0900 Subject: [PATCH] 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. --- t/meson.build | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/t/meson.build b/t/meson.build index 6aafc1e9..07d55a1f 100644 --- a/t/meson.build +++ b/t/meson.build @@ -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, ) -- 2.52.0