-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
54 lines (54 loc) · 1.13 KB
/
Copy pathTaskfile.yml
File metadata and controls
54 lines (54 loc) · 1.13 KB
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'
vars:
BIN_DIR: "{{.ROOT_DIR}}/bin"
BUILD_DIR: "{{.ROOT_DIR}}/build"
tasks:
build-target:
dir: "{{.BUILD_DIR}}/"
cmds:
- cmake --build . --target {{.TARGET}}
cmake:configure:
cmds:
- cmake --preset={{.CMAKE_PRESET}} {{.ROOT_DIR}}
configure:
cmds:
- task: cmake:configure
vars:
CMAKE_PRESET: "{{.CLI_ARGS}}"
configure:debug:
cmds:
- task: cmake:configure
vars:
CMAKE_PRESET: "debug"
build:
cmds:
- task: build-target
vars:
TARGET: all
run:
dir: "{{.BUILD_DIR}}/"
env:
MBAR_EXEC: "{{.BUILD_DIR}}/moonbar"
MBAR_LIB_HOME: "{{.ROOT_DIR}}"
MBAR_CLIB_HOME: "{{.BUILD_DIR}}/lib"
cmds:
- "{{.BIN_DIR}}/run-bar {{.CLI_ARGS}}"
run:debug:
dir: "{{.BUILD_DIR}}/"
env:
MBAR_EXEC: "{{.BUILD_DIR}}/moonbar"
MBAR_DEBUG: "lldb"
MBAR_LIB_HOME: "{{.ROOT_DIR}}"
MBAR_CLIB_HOME: "{{.BUILD_DIR}}/lib"
cmds:
- "{{.BIN_DIR}}/run-bar {{.CLI_ARGS}}"
clean:
dir: "{{.BUILD_DIR}}/"
cmds:
- task: build-target
vars:
TARGET: clean
default:
cmds:
- task: build