mirror of
https://github.com/labwc/labwc.git
synced 2026-04-14 08:21:58 -04:00
config: support rc.yaml
Based on @johanmalm's work. This adds libyaml as an optional dependency.
This commit is contained in:
parent
a0a9f977b4
commit
85b6e25484
13 changed files with 588 additions and 31 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue