waybar/test/meson.build
Aleksei Bavshin 67efe1af89
refactor(clock): remove struct waybar_time
The structure was used to pass the locale instance to the date
formatter. All the supported versions of `fmt` are passing the locale
parameter via `FormatContext.locale()` so we can remove the struct and
simplify the code.

While we at it, drop `date::make_zoned` in favor of CTAD on a
`date::zoned_time` constructor.
2023-01-20 22:50:01 -08:00

33 lines
495 B
Meson

test_inc = include_directories('../include')
test_dep = [
catch2,
fmt,
gtkmm,
jsoncpp,
spdlog,
]
test_src = files(
'main.cpp',
'SafeSignal.cpp',
'config.cpp',
'../src/config.cpp',
)
if tz_dep.found()
test_dep += tz_dep
test_src += files('date.cpp')
endif
waybar_test = executable(
'waybar_test',
test_src,
dependencies: test_dep,
include_directories: test_inc,
)
test(
'waybar',
waybar_test,
workdir: meson.source_root(),
)