-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
40 lines (39 loc) · 973 Bytes
/
Taskfile.yml
File metadata and controls
40 lines (39 loc) · 973 Bytes
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
version: "3"
tasks:
fmt:
desc: "Run clang-format"
cmds:
- clang-format -i src/**/*.cpp src/**/*.hpp
setup:
desc: "Run cmake configuration"
cmds:
- cmake -DCMAKE_INSTALL_PREFIX=/usr -S . -B build -G Ninja
build:
desc: "Run cmake build"
cmds:
- cmake --build build -v
build-watch:
desc: "Run cmake build on file change using watchman"
cmds:
- watchman-make -p '**/*.cpp' '**/*.h' --run "task cook"
cook:
desc: "Run cmake setup and build"
cmds:
- task: setup
- task: build
install:
desc: "Run ninja install"
cmds:
- sudo ninja install -C build
fmt:
aliases: [clang-format, format]
desc: "Run clang-format"
dir: src
cmds:
- clang-format -i main.cpp **/*.{cpp,hpp}
wldbg-build:
desc: "Run wldbg (wayland-debug) against build"
env:
QT_LOGGING_RULES: "*.debug=true"
cmds:
- wldbg -r ./build/bin/org.buddiesofbudgie.Services -g