From: tokyo4j Date: Mon, 29 Sep 2025 07:03:36 +0000 (+0900) Subject: test: fix build error in t/xml.c X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=1043a9becc9858c229cce6130bee29942d8202ac;p=proto%2Flabwc.git 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. --- 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, )