This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
135 lines (119 loc) · 3.04 KB
/
Taskfile.yaml
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: '3'
vars:
USE_DEBUG: '{{if eq .DEBUG "1"}}-debug{{else}}{{end}}'
USE_TRACY: true
DLL_EXT: '{{if eq OS "windows"}}dll{{else}}so{{end}}'
EXE_EXT: '{{exeExt | default ".out"}}'
tasks:
setup-windows:
platforms: [windows]
cmd: packages\\build.bat
setup-linux:
platforms: [linux]
cmd: ./packages/build.sh
# copy-dlls:
# platforms: [windows]
# cmd: cmd /c "copy packages\odin-lua\bin\windows\lua542.dll ."
# dir: ./
# sources:
# - packages/odin-lua/bin/windows/lua542.dll
# generates:
# - lua542.dll
build-meta:
cmds:
- |
odin build engine/meta \
-build-mode:exe \
-show-timings \
-out:out/debug/meta{{.EXE_EXT}} \
-o:none \
-use-separate-modules \
sources:
- engine/meta/**/*.odin
generates:
- out/debug/meta{{.EXE_EXT}}
run-meta:
deps: [build-meta]
cmds:
- ./out/debug/meta{{.EXE_EXT}} engine
build-mani:
cmds:
- |
odin build packages/mani/manigen \
-out:out/debug/mani{{.EXE_EXT}} \
-show-timings \
-o:none \
-collection:packages=packages \
-ignore-unknown-attributes
sources:
- packages/mani/**/*.odin
generates:
- out/debug/mani{{.EXE_EXT}}
run-mani:
deps: [build-mani]
cmds:
- ./out/debug/mani{{.EXE_EXT}} mani_config.json -show-timings
sources:
- engine/*.odin
generates:
- engine/*_generated.odin
test:
deps: [run-meta]
cmds:
- |
odin test engine \
-define:VALIDATION=true \
-show-timings \
-o:none \
-collection:packages=packages \
-define:TRACY_ENABLE={{.USE_TRACY}} {{.USE_DEBUG}} \
-ignore-unknown-attributes
build:
deps: [run-meta, run-mani]
cmds:
- |
odin build engine \
-build-mode:exe -define:VALIDATION=true \
-show-timings \
-out:out/debug/engin3{{.EXE_EXT}} \
-o:none \
-debug \
-use-separate-modules \
-collection:packages=packages \
-define:TRACY_ENABLE={{.USE_TRACY}} {{.USE_DEBUG}} \
-ignore-unknown-attributes \
-define:GL_DEBUG=false
sources:
- engine/**/*.odin
generates:
- out/debug/engin3{{.EXE_EXT}}
check:
deps: [run-meta, run-mani]
cmds:
- |
odin check engine \
-define:VALIDATION=true \
-collection:packages=packages \
-define:TRACY_ENABLE={{.USE_TRACY}} {{.USE_DEBUG}} \
-ignore-unknown-attributes \
-define:GL_DEBUG=false
run:
deps: [build]
cmds:
- ./out/debug/engin3{{.EXE_EXT}}
no-mani:
deps: [build-no-mani]
cmds:
- ./out/debug/engin3{{.EXE_EXT}}
debug:
platforms: [windows]
deps: [build]
cmds:
- raddbg.exe --user:"C:/Users/Jonathan/minebill.raddbg_profile" --profile:engin3.raddbg_profile --auto_run
run-debug:
deps: [build]
cmds:
- raddbg.exe --ipc run
editor_action:
deps: [check]