|
| 1 | +{ |
| 2 | + "tasks": [ |
| 3 | + { |
| 4 | + "command": [ |
| 5 | + "(if exist \"${workspaceFolder}\\libs\\obj\" rmdir /s /q \"${workspaceFolder}\\libs\\obj\")", |
| 6 | + "& (mkdir \"${workspaceFolder}\\libs\\obj\\Release\")", |
| 7 | + "& (if exist \"${workspaceFolder}\\libs\\bin\" rmdir /s /q \"${workspaceFolder}\\libs\\bin\")", |
| 8 | + "& (mkdir \"${workspaceFolder}\\libs\\bin\\Release\")" |
| 9 | + ], |
| 10 | + "group": {"kind": "build", "isDefault": false}, |
| 11 | + "label": "Create `\\libs\\obj\\Release` and `\\libs\\bin\\Release` folders", |
| 12 | + "type": "shell" |
| 13 | + }, |
| 14 | + { |
| 15 | + "command": [ |
| 16 | + "(gcc -Wall -O2 -pedantic-errors -c \"${workspaceFolder}\\libs\\utilities.c\" -o \"${workspaceFolder}\\libs\\obj\\Release\\utilities.o\")", |
| 17 | + "& (ar -r -s \"${workspaceFolder}\\libs\\bin\\Release\\libs.a\" \"${workspaceFolder}\\libs\\obj\\Release\\utilities.o\")" |
| 18 | + ], |
| 19 | + "group": {"kind": "build", "isDefault": false}, |
| 20 | + "label": "Compile libs project", |
| 21 | + "type": "shell", |
| 22 | + "dependsOn": "Create `\\libs\\obj\\Release` and `\\libs\\bin\\Release` folders" |
| 23 | + }, |
| 24 | + { |
| 25 | + "command": [ |
| 26 | + "(if exist \"${workspaceFolder}\\src\\obj\" rmdir /s /q \"${workspaceFolder}\\src\\obj\")", |
| 27 | + "& (mkdir \"${workspaceFolder}\\src\\obj\\Release\")", |
| 28 | + "& (if exist \"${workspaceFolder}\\src\\bin\" rmdir /s /q \"${workspaceFolder}\\src\\bin\")", |
| 29 | + "& (mkdir \"${workspaceFolder}\\src\\bin\\Release\")" |
| 30 | + ], |
| 31 | + "group": {"kind": "build", "isDefault": false}, |
| 32 | + "label": "Create `\\src\\obj\\Release` and `\\src\\bin\\Release` folders", |
| 33 | + "type": "shell" |
| 34 | + }, |
| 35 | + { |
| 36 | + "args": [ |
| 37 | + "-fdiagnostics-color=always", |
| 38 | + "-g", |
| 39 | + "${workspaceFolder}\\src\\*.c", |
| 40 | + "-o", |
| 41 | + "${workspaceFolder}\\src\\bin\\Release\\src.exe", |
| 42 | + "-s", |
| 43 | + "${workspaceFolder}\\libs\\bin\\Release\\libs.a" |
| 44 | + ], |
| 45 | + "command": "gcc", |
| 46 | + "dependsOn": ["Compile libs project", "Create `\\src\\obj\\Release` and `\\src\\bin\\Release` folders"], |
| 47 | + "group": {"kind": "build", "isDefault": true}, |
| 48 | + "label": "C/C++: gcc.exe build active file", |
| 49 | + "problemMatcher": ["$gcc"], |
| 50 | + "type": "cppbuild" |
| 51 | + } |
| 52 | + ], |
| 53 | + "version": "2.0.0" |
| 54 | +} |
0 commit comments