forked from czyzlukasz/svd2cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
executable file
·86 lines (73 loc) · 1.83 KB
/
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
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
# https://taskfile.dev
version: "3"
tasks:
default:
silent: true
cmds:
- cmd: task --list-all
clean:
cmds:
- cmd: rm -rf build
platforms: [linux]
config_linux:
internal: true
platforms: [linux]
cmds:
- conan install . --build=missing -s build_type=Release --profile:build=profiles/gcc12_x64 --profile:host=profiles/gcc12_x64
- cmake --preset conan-release
sources:
- conanfile.*
- CMakeLists.txt
- src/**/CMakeLists.txt
- include/**/CMakeLists.txt
- tests/**/CMakeLists.txt
- external/**/CMakeLists.txt
- cmake/**/CMakeLists.txt
generates:
- build/Release/compile_commands.json
config_linux_debug:
internal: true
platforms: [linux]
cmds:
- conan install . --build=missing -s build_type=Debug --profile:build=profiles/gcc12_x64 --profile:host=profiles/gcc12_x64
- cmake --preset conan-debug
sources:
- conanfile.*
- CMakeLists.txt
- src/**/CMakeLists.txt
- include/**/CMakeLists.txt
- tests/**/CMakeLists.txt
- external/**/CMakeLists.txt
- cmake/**/CMakeLists.txt
generates:
- build/Debug/compile_commands.json
config_debug:
cmds:
- task: config_linux_debug
config:
cmds:
- task: config_linux
build_debug:
cmds:
- task: config_debug
- cmd: cmake --build build/Debug
build:
cmds:
- task: config
- cmd: cmake --build build/Release
pack:
cmds:
- task: build
- cmd: cd build/Release && cpack -B install -C Release
test:
cmds:
- task: build
- cmd: ctest --test-dir build/Release/tests --output-on-failure
run_debug:
cmds:
- task: build_debug
- cmd: build/Debug/src/svd2cpp
run:
cmds:
- task: build
- cmd: build/Release/src/svd2cpp