12345678910111213141516171819202122232425262728293031323334353637 |
- {
- // See https://go.microsoft.com/fwlink/?LinkId=733558
- // for the documentation about the tasks.json format
- "version": "2.0.0",
- "presentation": {
- "showReuseMessage": false,
- "reveal": "silent",
- "echo" : false
- },
- "tasks": [
- {
- "label": "control shift B",
- "type": "shell",
- "command": "echo ${fileBasenameNoExtension}",
- "dependsOn": ["default run executable"],
- "group": {"kind": "build","isDefault": true}
- },
- {
- "label": "default compile",
- "type": "shell",
- //"command": "g++ ${fileBasename} -L ${env:ow}/lib/ -I ${env:ow}/include/ -o ${fileBasenameNoExtension}/${fileBasenameNoExtension}.exe",
- "command": "$(make clean f=${fileBasenameNoExtension}.exe) -and $(make ${fileBasenameNoExtension}.exe)",
- "dependsOn": ["default directory"]
- },
- {
- "label": "default run executable",
- "type": "shell",
- "command": "${fileBasenameNoExtension}/./${fileBasenameNoExtension}.exe",
- "dependsOn": ["default compile"]
- },
- {
- "label": "default directory",
- "command": "$(test-path ${fileBasenameNoExtension}) -or $(mkdir ${fileBasenameNoExtension})",
- "type": "shell"
- }
- ]
- }
|