mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
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:
parent
94c980c6be
commit
1043a9becc
1 changed files with 9 additions and 7 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
test_deps = [
|
||||||
|
dep_cmocka,
|
||||||
|
glib,
|
||||||
|
xml2,
|
||||||
|
wlroots,
|
||||||
|
]
|
||||||
|
|
||||||
test_lib = static_library(
|
test_lib = static_library(
|
||||||
'test_lib',
|
'test_lib',
|
||||||
sources: files(
|
sources: files(
|
||||||
|
|
@ -8,12 +15,7 @@ test_lib = static_library(
|
||||||
'../src/common/parse-bool.c',
|
'../src/common/parse-bool.c',
|
||||||
),
|
),
|
||||||
include_directories: [labwc_inc],
|
include_directories: [labwc_inc],
|
||||||
dependencies: [
|
dependencies: test_deps,
|
||||||
dep_cmocka,
|
|
||||||
glib,
|
|
||||||
xml2,
|
|
||||||
wlroots,
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
tests = [
|
tests = [
|
||||||
|
|
@ -30,7 +32,7 @@ foreach t : tests
|
||||||
sources: '@0@.c'.format(t),
|
sources: '@0@.c'.format(t),
|
||||||
include_directories: [labwc_inc],
|
include_directories: [labwc_inc],
|
||||||
link_with: [test_lib],
|
link_with: [test_lib],
|
||||||
dependencies: [xml2],
|
dependencies: test_deps,
|
||||||
),
|
),
|
||||||
is_parallel: false,
|
is_parallel: false,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue