-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.maple
62 lines (51 loc) · 1.58 KB
/
build.maple
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
display = {
default_task_list_mode = "slim"
default_task_category = "build"
}
task:build = {
category = "build"
help = 'Compile prod binary of lilly'
depends = [ 'generate-git-hash' ]
run = 'v ./src -o lilly -prod'
}
task:run = {
category = "build"
help = 'Runs lilly without building full binary'
depends = [ 'generate-git-hash' ]
run = 'v -g run ./src .'
}
task:run-debug-log = {
category = "build"
help = 'Run lilly with log level set to debug'
depends = [ 'generate-git-hash' ]
run = 'v -g run ./src --log-level debug .'
}
task:run-gui = {
category = "build"
help = 'Run lilly with experimental GUI as the render target'
depends = [ 'generate-git-hash' ]
run = 'v -g -d gui run ./src .'
}
task:test = {
category = "build"
help = 'Execute all lilly tests'
depends = [ 'generate-git-hash' ]
run = 'v -g test ./src'
}
task:git-prune = {
category = "util"
help = "Runs git prune to delete local copies of missing remote branches"
run = "git remote prune origin"
}
task:generate-git-hash = {
help = 'Generates .githash which just contains the hash of the current branches last commit hash'
run = 'git log -n 1 --pretty=format:"%h" | tee ./src/.githash'
}
task:apply-license-header = {
help = 'Appends the license header to each source code file'
run = 'addlicense -c "The Lilly Editor contributors" -y "2023" ./src/*.v'
}
task:install-license-tool = {
help = 'REQUIRES GO: installs the program used to insert the license header into each source file'
run = 'go install github.com/google/addlicense@latest'
}