-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlitr.toml
57 lines (46 loc) · 1.51 KB
/
litr.toml
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
[commands]
[commands.update]
script = "git pull"
description = "Update repository code."
[commands.build]
script = [
"""cmake -GNinja %{trace '-DDISASSEMBLE=ON -DTRACE=ON'} \
%{nolog '-DDEACTIVATE_LOGGING=ON'} \
%{debug '-DDEBUG=ON'} \
%{profile '-DPROFILE=ON'} \
-DCMAKE_BUILD_TYPE=%{target} \
-B build/%{target}""",
"cmake --build build/%{target}"
]
description = "Build the application for a given traget."
[commands.test]
script = "cd build/%{target}/src/tests && CTEST_OUTPUT_ON_FAILURE=TRUE ctest && cd ../../../.."
description = "Run all unit tests defined under src/tests"
[commands.release.brew]
script = "./scripts/release.sh"
description = "Build a production release for Homebrew on macOS."
[commands.format]
script = "find src -iname *.hpp -o -iname *.cpp | xargs clang-format -i"
description = "Format project sources via clang-format."
[params.target]
shortcut = "t"
description = "Define the application build target."
type = ["debug", "release"]
default = "debug"
[params.trace]
shortcut = "r"
description = "Activate tracing support and parser disassemble output."
type = "boolean"
[params.nolog]
shortcut = "l"
description = "Deactivate all logging output."
type = "boolean"
# @todo: The following 3 params can be removed after https://github.com/krieselreihe/litr/issues/51
[params.debug]
shortcut = "d"
description = "Set debug mode, even if build type differs."
type = "boolean"
[params.profile]
shortcut = "p"
description = "Build the application with profiling tools enabled."
type = "boolean"