-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.ini
196 lines (165 loc) · 5.66 KB
/
tasks.ini
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[file-run]
command:c,cpp,asm="$(VIM_PATHNOEXT).out"
command:rust=cargo run
command:lua=lua "$(VIM_FILENAME)"
command:dot=eog $(VIM_PATHNOEXT).png
command:sh=bash "$(VIM_FILENAME)"
command:fish=fish "$(VIM_FILENAME)"
command:ruby=ruby "$(VIM_FILENAME)"
command:javascript=node "$(VIM_FILENAME)"
command:python=python3 "$(VIM_FILENAME)"
command:awk=awk -f "$(VIM_FILENAME)"
command:tmux=tmux source "$(VIM_FILENAME)"
output=terminal
cwd=$(VIM_FILEDIR)
save=2
;----------------------------------------
[file-build]
command:dockerfile=docker build -t $(-tag) .
command:c=gcc -fmax-errors=20 -std=gnu11 -Wall -Wstrict-aliasing=1 -gdwarf-4 -pthread -lm "$(VIM_FILEPATH)" -o "$(VIM_PATHNOEXT).out"
command:cpp=g++ -fmax-errors=20 -D_GLIBCXX_DEBUG -std=c++20 -Wall -gdwarf-4 -pthread "$(VIM_FILEPATH)" -o "$(VIM_PATHNOEXT).out"
command:rust=cargo build
command:dot=dot -Tpng -o $(VIM_PATHNOEXT).png $(VIM_FILENAME)
command:asm=as --64 -gdwarf-4 -o "$(VIM_PATHNOEXT).o" "$(VIM_FILEPATH)" && ld -m elf_i386 -dynamic-linker /lib/ld-linux.so -lc -o "$(VIM_PATHNOEXT).out" -o "$(VIM_PATHNOEXT).o"
; only parse lua source code
command:lua=luac -p "$(VIM_FILENAME)"
command:make=make -f "$(VIM_FILEPATH)"
command:html=xdg-open $(VIM_FILENAME)
output=quickfix
cwd=$(VIM_FILEDIR)
notify=echo
save=2
[file-build:gcc]
command:c=gcc -fmax-errors=20 -std=gnu11 -Wall -Wstrict-aliasing=1 -gdwarf-4 -pthread -lm "$(VIM_FILEPATH)" -o "$(VIM_PATHNOEXT).out"
command:cpp=g++ -fmax-errors=20 -D_GLIBCXX_DEBUG -std=c++20 -Wall -gdwarf-4 "$(VIM_FILEPATH)" -o "$(VIM_PATHNOEXT).out"
[file-build:clang]
command:c=clang -std=gnu11 -Wall -gdwarf-4 -pthread -lm "$(VIM_FILEPATH)" -o "$(VIM_PATHNOEXT).out"
command:cpp=clang++ -D_GLIBCXX_DEBUG -std=c++20 -Wall -gdwarf-4 "$(VIM_FILEPATH)" -o "$(VIM_PATHNOEXT).out"
;----------------------------------------
[file-test:gcc]
command:cpp=g++ -fmax-errors=20 -std=c++20 -Wall -gdwarf-4 "$(VIM_FILEPATH)" -o "$(VIM_PATHNOEXT).out" -lgtest -lgmock -lpthread
[file-test:clang]
command:cpp=clang++ -fmax-errors=20 -std=c++20 -Wall -Wstrict-aliasing=1 -gdwarf-4 "$(VIM_FILEPATH).out" -o "$(VIM_PATHNOEXT)" -lgtest -lgmock -lpthread
;----------------------------------------
[asm-build:x32]
output=quickfix
cwd=$(VIM_FILEDIR)
notify=echo
save=2
[asm-build]
command:asm=as --64 -gdwarf-4 -o "$(VIM_PATHNOEXT).o" "$(VIM_FILEPATH)" && ld -dynamic-linker /lib64/ld-linux-86-64.so.2 -lc -o "$(VIM_PATHNOEXT)" -o "$(VIM_PATHNOEXT).o"
output=quickfix
cwd=$(VIM_FILEDIR)
notify=echo
save=2
;----------------------------------------
[project-build]
command = cmake --build Build -- VERBOSE=1
cwd=$(VIM_ROOT)
notify=echo
save=2
[project-build:cmake]
command = cmake --build Build/
cwd=$(VIM_ROOT)
notify=echo
save=2
[project-build:cargo]
command=cargo build
output=quickfix
cwd=$(VIM_FILEDIR)
notify=echo
save=2
[project-build:make]
command/linux=make
command/win32=mingw32-make
cwd=$(VIM_ROOT)
notify=echo
save=2
; ---------------------------------------
[project-run]
command/linux=Build/$(VIM_PRONAME)
command/win32=Build\$(VIM_PRONAME).exe
cwd=$(VIM_ROOT)
output=terminal
[project-run:cmake]
command/linux=Build/$(VIM_PRONAME)
command/win32=Build\$(VIM_PRONAME).exe
cwd=$(VIM_ROOT)
output=terminal
[project-run:make]
command/linux=make run
command/win32=mingw32-make run
cwd=$(VIM_ROOT)
output=terminal
[project-run:cargo]
command=cargo run
cwd=$(VIM_ROOT)
output=terminal
; --------------------------------------
[generate-compile-database-from-makefile]
; command=make --always-make --dry-run | grep -wE 'gcc |g++' | grep -w '\-c' | jq -nR '[inputs|{directory:".", command:., file: match(" [^ ]+$").string[1:]}]' > compile_commands.json
command/linux=bear make
command/win32=bear mingw32-make
notify=echo
cwd=$(VIM_ROOT)
; --------------------------------------
[project-clean]
command/linux=rm -rf Build
command/win32=rd/s/q Build
notify=echo
cwd=$(VIM_ROOT)
[project-clean:cmake]
command/linux=rm -rf Build
command/win32=rd/s/q Build
notify=echo
cwd=$(VIM_ROOT)
[project-clean:make]
command/linux=make clean distclean
command/win32=mingw32-make clean distclean
notify=echo
cwd=$(VIM_ROOT)
; -------------------------------------
[project-configure]
command/linux=cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug -S. -BBuild
command/win32=cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles" -S. -BBuild
cwd=$(VIM_ROOT)
notify=echo
save=2
[project-configure:debug]
command/linux=cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug -S. -BBuild
command/win32=cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles" -S. -BBuild
cwd=$(VIM_ROOT)
notify=echo
save=2
[project-configure:release]
command/linux=cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Release -S. -BBuild
command/win32=cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles" -S. -BBuild
cwd=$(VIM_ROOT)
notify=echo
save=2
; ------------------------------------
[open-doc]
command=cmake --build Build --target open-doc
cwd=$(VIM_ROOT)
[open-doc:cmake]
command=cmake --build Build --target open-doc
cwd=$(VIM_ROOT)
[project-test:cargo]
command=cargo test
cwd=(VIM_ROOT)
notify=echo
save=2
; -----------------------------------
[cloc]
command=cloc --exclude-dir=Build,.cache .
cwd=(VIM_ROOT)
notify=echo
; ----------------------------------
[clazy]
command=find . -type d -name '.cache' -prune -o -type d -name 'Build' -prune -o -name '*.cpp' -print | xargs clazy-standalone -checks=level2 -p default/compile_commands.json
cwd=(VIM_ROOT)
notify=echo
[clang-tidy]
command=find . -type d -name '.cache' -prune -o -type d -name 'Build' -prune -o -name '*.cpp' -print | xargs clang-tidy -checks=level2 -p default/compile_commands.json
cwd=(VIM_ROOT)
notify=echo