mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
67efe1af89
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.
33 lines
495 B
Meson
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(),
|
|
)
|