aboutsummaryrefslogtreecommitdiff
path: root/.vscode/tasks.json
blob: 53a235eae4a062b36ad5759d82372290c9d9ac87 (plain)
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
{
	"version": "2.0.0",
	"windows": {
		"options": {
			"cwd": "${workspaceFolder}",
			"shell": {
				"executable": "C:/msys64/msys2_shell.cmd",
				"args": [ "-defterm", "-no-start", "-mingw64", "-shell", "sh", "-here", "-c" ]
			},
		},
	},
	"tasks": [
		{
			"label": "build",
			"group": {
				"isDefault": false,
				"kind": "build"
			},
			"options": { "cwd": "${workspaceFolder}/src" },
			"windows": {
				"command": "make -j",
				"args": [ "" ],
			},
			"command": "make",
			"args": [ "-j" ],
			"type": "shell"
		},
		{
			"label": "flash",
			"detail": "build and upload to stm32",
			"group": {
				"isDefault": false,
				"kind": "test"
			},
			"options": { "cwd": "${workspaceFolder}/src" },
			"windows": {
				"command": "make -j flash",
				"args": [ "" ],
			},
			"command": "make",
			"args": [ "-j", "flash" ],
			"type": "shell"
		},
		{
			"label": "compiledb",
			"detail": "generate editor autocomplete files",
			"group": {
				"isDefault": false,
				"kind": "test"
			},
			"options": { "cwd": "${workspaceFolder}/src" },
			"windows": {
				"command": "make compile_commands.json",
				"args": [ "" ],
			},
			"command": "make",
			"args": [ "compile_commands" ],
			"type": "shell"
		},
		{
			"label": "clean",
			"detail": "remove binary files from working directory",
			"group": {
				"isDefault": false,
				"kind": "test"
			},
			"options": { "cwd": "${workspaceFolder}" },
			"windows": {
				"command": "make clean",
				"args": [ "" ],
			},
			"command": "make",
			"args": [ "clean" ],
			"type": "shell"
		}
	]
}