Add a justfile to make meson friendly :)

Change-Id: Id6e4528392266c6f2444e030b67293abe297ed17
This commit is contained in:
Rebecca Turner 2024-03-29 19:48:24 -07:00 committed by jade
parent 9f274c75db
commit 6c77b3c2ad
2 changed files with 22 additions and 1 deletions

View file

@ -346,7 +346,9 @@
officialRelease = false;
}).overrideAttrs (prev: {
# Required for clang-tidy checks
buildInputs = prev.buildInputs ++ lib.optionals (stdenv.cc.isClang) [ pkgs.llvmPackages.llvm pkgs.llvmPackages.clang-unwrapped.dev ];
buildInputs = prev.buildInputs
++ [ pkgs.just ]
++ lib.optionals (stdenv.cc.isClang) [ pkgs.llvmPackages.llvm pkgs.llvmPackages.clang-unwrapped.dev ];
nativeBuildInputs = prev.nativeBuildInputs
++ lib.optional (stdenv.cc.isClang && !stdenv.buildPlatform.isDarwin) pkgs.buildPackages.bear
# Required for clang-tidy checks

19
justfile Normal file
View file

@ -0,0 +1,19 @@
# https://just.systems/man/en/
clean:
rm -rf build
setup:
meson setup build --prefix="$PWD/outputs/out"
build:
meson compile -C build
compile:
just build
install:
meson install -C build
test *OPTIONS:
meson test -C build --print-errorlogs --quiet {{ OPTIONS }}