-
Notifications
You must be signed in to change notification settings - Fork 2
/
taskfile.yaml
37 lines (32 loc) · 935 Bytes
/
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
version: "3"
includes:
deps: "dep-tasks.yaml"
build: "build-tasks.yaml"
lint: "lint-tasks.yaml"
test: "test-tasks.yaml"
utils: "tools/yscope-dev-utils/taskfiles/utils.yml"
vars:
G_BUILD_DIR: "{{.ROOT_DIR}}/build"
G_BUILD_SPIDER_DIR: "{{.G_BUILD_DIR}}/spider"
G_SPIDER_CMAKE_CACHE: "{{.G_BUILD_SPIDER_DIR}}/CMakeCache.txt"
G_SPIDER_COMPILE_COMMANDS_DB: "{{.G_BUILD_SPIDER_DIR}}/compile_commands.json"
G_SRC_SPIDER_DIR: "{{.ROOT_DIR}}/src/spider"
G_TEST_DIR: "{{.ROOT_DIR}}/tests"
tasks:
clean:
cmds:
- "rm -rf '{{.G_BUILD_DIR}}'"
config-cmake-project:
internal: true
sources:
- "{{.TASKFILE}}"
- "CMakeLists.txt"
generates:
- "{{.G_SPIDER_CMAKE_CACHE}}"
- "{{.G_SPIDER_COMPILE_COMMANDS_DB}}"
cmd: "cmake -S '{{.ROOT_DIR}}' -B '{{.G_BUILD_SPIDER_DIR}}'"
init:
internal: true
silent: true
run: "once"
cmds: ["mkdir -p '{{.G_BUILD_DIR}}'"]