build: use ninja

This commit is contained in:
outfoxxed 2024-02-26 03:35:07 -08:00
parent e6d2426a5a
commit 70c5cf1e16
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 2 additions and 1 deletions

View file

@ -7,7 +7,7 @@ lint:
find src -type f -name "*.cpp" -print0 | parallel -q0 --eta clang-tidy --load={{ env_var("TIDYFOX") }} find src -type f -name "*.cpp" -print0 | parallel -q0 --eta clang-tidy --load={{ env_var("TIDYFOX") }}
configure target='debug' *FLAGS='': configure target='debug' *FLAGS='':
cmake -B {{builddir}} \ cmake -GNinja -B {{builddir}} \
-DCMAKE_BUILD_TYPE={{ if target == "debug" { "Debug" } else { "Release" } }} \ -DCMAKE_BUILD_TYPE={{ if target == "debug" { "Debug" } else { "Release" } }} \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON {{FLAGS}} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON {{FLAGS}}

View file

@ -12,6 +12,7 @@ in pkgs.mkShell {
clang-tools_17 clang-tools_17
parallel parallel
cmake cmake
ninja
pkg-config pkg-config
wayland-scanner wayland-scanner