config: support rc.yaml

Based on @johanmalm's work.

This adds libyaml as an optional dependency.
This commit is contained in:
tokyo4j 2024-08-18 12:22:07 +09:00
parent a0a9f977b4
commit 85b6e25484
13 changed files with 588 additions and 31 deletions

View file

@ -1,18 +1,37 @@
test_lib = static_library(
'test_lib',
sources: files(
test_lib_sources = files(
'../src/common/buf.c',
'../src/common/mem.c',
'../src/common/string-helpers.c'
),
include_directories: [labwc_inc],
dependencies: [dep_cmocka],
'../src/common/string-helpers.c',
)
test_deps = [
dep_cmocka,
]
tests = [
'buf-simple',
]
if have_libyaml
test_lib_sources += [
'../src/common/yaml2xml.c',
]
test_deps += [
wlroots,
yaml,
]
tests += [
'yaml2xml',
]
endif
test_lib = static_library(
'test_lib',
sources: test_lib_sources,
include_directories: [labwc_inc],
dependencies: test_deps
)
foreach t : tests
test(
'test_@0@'.format(t),