-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
54 lines (41 loc) · 1016 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# build (use clang) by default
default: build-all
# show this information
help:
@just --list
# build with clang
build-all:
meson compile -C build
# build a specific target
build TARGET:
meson compile -C build {{TARGET}}
# setup use clang
setup:
meson setup --reconfigure build --cross-file cross-clang.ini
# build with gcc
build-gcc:
meson compile -C build-gcc
# setup use gcc
setup-gcc:
meson setup --reconfigure build-gcc
# setup cmake build env
setup-cmake:
cmake -B build-cmake -G Ninja
# use cmake to build
build-cmake:
cmake --build build-cmake
# run a specific test
run TARGET:
meson test -C build {{TARGET}}
# test a specific test
test TEST:
meson test -C build {{TEST}} --verbose
# run pre-commit
pre-commit:
pre-commit run -a
# install(dry-run)
dry-run:
meson install -C build --no-rebuild --only-changed --dry-run --destdir `pwd`/install
# install library
install:
meson install -C build --no-rebuild --only-changed --destdir `pwd`/install