tasks.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. // See https://go.microsoft.com/fwlink/?LinkId=733558
  3. // for the documentation about the tasks.json format
  4. "version": "2.0.0",
  5. "presentation": {
  6. "showReuseMessage": false,
  7. "reveal": "silent",
  8. "echo" : false
  9. },
  10. "tasks": [
  11. {
  12. "label": "control shift B",
  13. "type": "shell",
  14. "command": "echo ${fileBasenameNoExtension}",
  15. "dependsOn": ["default run executable"],
  16. "group": {"kind": "build","isDefault": true}
  17. },
  18. {
  19. "label": "default compile",
  20. "type": "shell",
  21. //"command": "g++ ${fileBasename} -L ${env:ow}/lib/ -I ${env:ow}/include/ -o ${fileBasenameNoExtension}/${fileBasenameNoExtension}.exe",
  22. "command": "$(make clean f=${fileBasenameNoExtension}.exe) -and $(make ${fileBasenameNoExtension}.exe)",
  23. "dependsOn": ["default directory"]
  24. },
  25. {
  26. "label": "default run executable",
  27. "type": "shell",
  28. "command": "${fileBasenameNoExtension}/./${fileBasenameNoExtension}.exe",
  29. "dependsOn": ["default compile"]
  30. },
  31. {
  32. "label": "default directory",
  33. "command": "$(test-path ${fileBasenameNoExtension}) -or $(mkdir ${fileBasenameNoExtension})",
  34. "type": "shell"
  35. }
  36. ]
  37. }