-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
39 lines (30 loc) · 888 Bytes
/
Taskfile.yml
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
version: "3"
tasks:
init:
cmds:
- git submodule init
- git submodule update --init --recursive
configure_debug:
cmds:
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B ./build -G {{.CLI_ARGS}} -DCMAKE_BUILD_TYPE=Debug
configure_release:
cmds:
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B ./build -G {{.CLI_ARGS}} -DCMAKE_BUILD_TYPE=Release
build_debug:
cmds:
- cmake --build ./build --config Debug --target {{.CLI_ARGS}}
build_release:
cmds:
- cmake --build ./build --config Release --target {{.CLI_ARGS}}
clean:
cmds:
- cmake --build ./build --target clean
update:
cmds:
- git submodule foreach git pull origin master
run:
cmds:
- '{{if eq OS "windows"}}./build/ia256-screenshot.exe{{else}}./build/ia256-screenshot{{end}}'
install:
cmds:
- sudo cmake --install ./build