tasks.json 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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. "tasks": [
  6. {
  7. "label": "control shift B",
  8. "type": "shell",
  9. "command": "echo ${fileBasenameNoExtension}",
  10. "dependsOn": ["default run executable"],
  11. "group": {"kind": "build","isDefault": true}
  12. },
  13. {
  14. "label": "default compile",
  15. "type": "shell",
  16. //"command": "g++ ${fileBasename} -L ${env:ow}/lib/ -I ${env:ow}/include/ -o ${fileBasenameNoExtension}/${fileBasenameNoExtension}.exe",
  17. "command": "$(make clean f=${fileBasenameNoExtension}.exe) -and $(make ${fileBasenameNoExtension}.exe)",
  18. "dependsOn": ["default directory"]
  19. },
  20. {
  21. "label": "default run executable",
  22. "type": "shell",
  23. "command": "${fileBasenameNoExtension}/./${fileBasenameNoExtension}.exe",
  24. "dependsOn": ["default compile"]
  25. },
  26. {
  27. "label": "default directory",
  28. "command": "$(test-path ${fileBasenameNoExtension}) -or $(mkdir ${fileBasenameNoExtension})",
  29. "type": "shell"
  30. }
  31. ]
  32. }