|
1 | 1 | { |
2 | 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 |
3 | 3 | // for the documentation about the tasks.json format |
4 | | - "version": "2.0.0", |
5 | | - "tasks": [ |
6 | | - { |
7 | | - "label": "build (Unix)", |
8 | | - "type": "shell", |
9 | | - "command": "make", |
10 | | - "group": { |
11 | | - "kind": "build", |
12 | | - "isDefault": true |
13 | | - }, |
14 | | - "problemMatcher": ["$gcc"], |
15 | | - "options": { |
16 | | - "cwd": "${workspaceFolder}" |
17 | | - }, |
18 | | - "detail": "Build using Makefile (Linux/macOS)" |
19 | | - }, |
20 | | - { |
21 | | - "label": "build (Windows)", |
22 | | - "type": "shell", |
23 | | - "command": "build.cmd", |
24 | | - "group": "build", |
25 | | - "problemMatcher": ["$msCompile"], |
26 | | - "options": { |
27 | | - "cwd": "${workspaceFolder}", |
28 | | - "shell": { |
29 | | - "executable": "cmd.exe", |
30 | | - "args": ["/C"] |
31 | | - } |
32 | | - }, |
33 | | - "detail": "Build using build.cmd for Windows (ensures g++ environment is set up)" |
34 | | - }, |
35 | | - { |
36 | | - "label": "clean (Unix)", |
37 | | - "type": "shell", |
38 | | - "command": "make clean", |
39 | | - "options": { |
40 | | - "cwd": "${workspaceFolder}" |
41 | | - } |
42 | | - }, |
43 | | - { |
44 | | - "label": "clean (Windows)", |
45 | | - "type": "shell", |
46 | | - "command": "del /Q fib.exe", |
47 | | - "options": { |
48 | | - "cwd": "${workspaceFolder}", |
49 | | - "shell": { |
50 | | - "executable": "cmd.exe", |
51 | | - "args": ["/C"] |
52 | | - } |
53 | | - } |
| 4 | + |
| 5 | + "version": "2.0.0", |
| 6 | + "tasks": [ |
| 7 | + { |
| 8 | + "label": "build (Windows)", |
| 9 | + "type": "shell", |
| 10 | + "command": "build.cmd", |
| 11 | + "group": { |
| 12 | + "kind": "build", |
| 13 | + "isDefault": true |
| 14 | + }, |
| 15 | + "windows": { |
| 16 | + "command": "build.cmd" |
| 17 | + }, |
| 18 | + "problemMatcher": ["$msCompile"], |
| 19 | + "options": { |
| 20 | + "cwd": "${workspaceFolder}" |
| 21 | + } |
| 22 | + }, |
| 23 | + { |
| 24 | + "label": "build (Linux/macOS)", |
| 25 | + "type": "shell", |
| 26 | + "command": "make", |
| 27 | + "group": { |
| 28 | + "kind": "build", |
| 29 | + "isDefault": true |
| 30 | + }, |
| 31 | + "linux": { |
| 32 | + "command": "make" |
| 33 | + }, |
| 34 | + "osx": { |
| 35 | + "command": "make" |
| 36 | + }, |
| 37 | + "problemMatcher": ["$gcc"], |
| 38 | + "options": { |
| 39 | + "cwd": "${workspaceFolder}" |
| 40 | + } |
| 41 | + }, |
| 42 | + { |
| 43 | + "label": "clean (Windows)", |
| 44 | + "type": "shell", |
| 45 | + "command": "del /Q fib.exe", |
| 46 | + "options": { |
| 47 | + "cwd": "${workspaceFolder}", |
| 48 | + "shell": { |
| 49 | + "executable": "cmd.exe", |
| 50 | + "args": ["/C"] |
54 | 51 | } |
55 | | - ] |
| 52 | + } |
| 53 | + }, |
| 54 | + { |
| 55 | + "label": "clean (Linux/macOS)", |
| 56 | + "type": "shell", |
| 57 | + "command": "make clean", |
| 58 | + "options": { |
| 59 | + "cwd": "${workspaceFolder}" |
| 60 | + } |
| 61 | + } |
| 62 | + ] |
56 | 63 | } |
0 commit comments