-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
54 lines (44 loc) · 1.16 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
version: "3"
tasks:
run:
desc: Build and run the application.
dir: application
cmd: zig build run
build:
desc: Build the application.
dir: application
cmd: zig build
check:
desc: Check syntax
dir: application
cmd: zig ast-check source/main.zig
test:
dir: application
cmd: zig build test
start:
desc: Start the application from an existing binary.
dir: application
cmd: ./zig-out/bin/Valdala
setup:
desc: Setup development environment.
cmds:
- task: init-submodules
- task: build-wgpu
# Only required if your current one is older than 3.4.
- task: build-glfw
init-submodules:
desc: Initialize all git submodules.
cmd: git submodule update --init --recursive
build-wgpu:
desc: Build the wgpu-native submodule into a static library.
dir: application/submodules/wgpu-native
cmds:
- make lib-native
- cp ./target/debug/libwgpu_native.a ../../libraries
build-glfw:
desc: Build GLFW.
dir: application/submodules/glfw
cmds:
- cmake -S . -B build
- make -C build
- cp build/src/libglfw3.a ../../libraries