-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
106 lines (79 loc) · 1.84 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/env just --justfile
[private]
default:
@echo ''
@echo 'Flatt'
@echo ''
@just --list
@echo ''
[private]
initialize: builders
[private]
builders:
docker build -t wolfulus/xc:linux-x64 -f ./cmake/builders/Dockerfile.linux ./cmake/builders/
docker build -t wolfulus/xc:windows-x64 -f ./cmake/builders/Dockerfile.windows ./cmake/builders/
[private]
configure-cross platform:
[private]
build-cross platform:
[private]
configure-local platform:
mkdir -p build/{{ platform }}/CMakeFiles
cmake --preset "{{ platform }}"
[private]
build-local platform:
mkdir -p build/{{ platform }}/CMakeFiles
cmake --build --preset "{{ platform }}"
# Common
# Configuration
configure config="choose":
@just configure-{{config}}
[private]
@configure-choose:
target=`gum choose all debug release` && just "configure-$target"
[private]
@configure-all:
just configure-debug
just configure-release
# Build
build config="choose":
@just build-{{config}}
[private]
@build-choose:
target=`gum choose all debug release` && just "build-$target"
[private]
@build-all:
just build-debug
just build-release
# Linux
[linux, private]
@configure-debug:
just configure-local linux-x64-debug
[linux, private]
@configure-release:
just configure-local linux-x64-release
[linux, private]
@build-debug:
just build-local linux-x64-debug
[linux, private]
@build-release:
just build-local linux-x64-release
# Windows
[windows, private]
@configure-debug:
just configure-local win-x64-debug
[windows, private]
@configure-release:
just configure-local win-x64-release
[windows, private]
@build-debug:
just build-local win-x64-debug
[windows, private]
@build-release:
just build-local win-x64-release
[windows]
@pack-it-up:
just configure all
just build all
wsl --exec bash -i -c "just configure all"
wsl --exec bash -i -c "just build all"