This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
65 lines (50 loc) · 1.44 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
# q[uiet], m[inimal], n[ormal], d[etailed] or diag[nostic]
export verbose := "quiet"
# msbuild or mcs
export build_type := "msbuild"
export shaders_dirpath := "Raccoon/Graphics/Shaders/Stock/HLSL"
export shaders_target_dirpath := "Raccoon"
build:
#!/bin/zsh
set -euo pipefail
case "$build_type" in
msbuild)
just _build_msbuild
;;
mcs)
just _build_mcs
;;
*)
echo "Unsupported build type '$build_type'. Accepted values: msbuild or mcs"
;;
esac
print -P "%F{blue}->%f Done!"
_build_msbuild:
#!/bin/zsh
set -euo pipefail
print -P "%F{magenta}->%f %Bmsbuild%b"
msbuild /maxCpuCount /verbosity:{{verbose}} Raccoon.sln
_build_mcs:
#!/bin/zsh
set -euo pipefail
print -P "%F{magenta}->%f %Bmcs%b"
make -C Raccoon/
shaders:
#!/bin/zsh
set -euo pipefail
print -P "%F{magenta}->%f %BShaders%b"
make -C $shaders_dirpath TARGET_PATH="$(pwd)/$shaders_target_dirpath"
#just $shaders_dirpath target_dirpath="$(pwd)/$shaders_target_dirpath"
print -P "%F{blue}->%f Done!"
restore:
#!/bin/zsh
set -euo pipefail
print -P "%F{magenta}->%f %BRestore%b"
msbuild /restore /maxCpuCount /verbosity:{{verbose}} Raccoon.sln
print -P "%F{blue}->%f Done!"
clean:
#!/bin/zsh
set -euo pipefail
print -P "%F{magenta}->%f %BClean%b"
rm -rdf Raccoon/obj/
print -P "%F{blue}->%f Done!"