Add Makefile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2021-02-07 19:59:05 +01:00
parent 645e93a03c
commit 4945bbd45c
Signed by: armin
GPG key ID: 48C726EEE7FBCBC8
2 changed files with 14 additions and 4 deletions

12
Makefile Normal file
View file

@ -0,0 +1,12 @@
all: compile_commands.json
cd build && ninja
compile_commands.json:
cd build && ninja -t compdb > compile_commands.json
clean:
cd build && ninja -t clean
.PHONY:
compile_commands.json
clean

View file

@ -10,8 +10,7 @@
#define XWIM_LOGLEVEL SPDLOG_LEVEL_DEBUG
#endif
namespace xwim {
namespace log {
namespace xwim::log {
/**
* Get log level from XWIM_LOGLEVEL environment variable.
@ -75,5 +74,4 @@ void init(spdlog::level::level_enum level = spdlog::level::level_enum::off) {
spdlog::set_level(_init_from_compile());
}
} // namespace log
} // namespace xwim
} // namespace xwim::log