]> git.mdlowis.com Git - proto/labwc.git/commitdiff
test: fix build error in t/xml.c
authortokyo4j <hrak1529@gmail.com>
Mon, 29 Sep 2025 07:03:36 +0000 (16:03 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 29 Sep 2025 18:41:32 +0000 (19:41 +0100)
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

index 6aafc1e976026be2d59cab58f868537feac1fff1..07d55a1fcf4f7f679dc4e5e19dce86e9a93a6838 100644 (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,
   )