tasks.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "build recharge",
  6. "type": "shell",
  7. "command": "bash",
  8. "args": [
  9. "-c",
  10. "source /opt/ros/${ROS_DISTRO:-foxy}/setup.bash && colcon build --packages-select recharge --cmake-args '-DCMAKE_BUILD_TYPE=Debug' '-DCMAKE_EXPORT_COMPILE_COMMANDS=1' --event-handlers console_direct+"
  11. ],
  12. "group": {
  13. "kind": "build",
  14. "isDefault": true
  15. },
  16. "problemMatcher": [
  17. {
  18. "base": "$gcc",
  19. "fileLocation": ["relative", "${workspaceFolder}/src/recharge"]
  20. }
  21. ],
  22. "presentation": {
  23. "reveal": "always",
  24. "panel": "dedicated",
  25. "showReuseMessage": false,
  26. "clear": true
  27. },
  28. "options": {
  29. "cwd": "${workspaceFolder}"
  30. }
  31. },
  32. {
  33. "label": "clean build recharge",
  34. "type": "shell",
  35. "command": "bash",
  36. "args": [
  37. "-c",
  38. "source /opt/ros/${ROS_DISTRO:-foxy}/setup.bash && rm -rf build/recharge install/recharge && colcon build --packages-select recharge --cmake-args '-DCMAKE_BUILD_TYPE=Debug' '-DCMAKE_EXPORT_COMPILE_COMMANDS=1'"
  39. ],
  40. "group": "build",
  41. "problemMatcher": ["$gcc"],
  42. "options": {
  43. "cwd": "${workspaceFolder}"
  44. }
  45. },
  46. {
  47. "label": "check dependencies",
  48. "type": "shell",
  49. "command": "bash",
  50. "args": [
  51. "-c",
  52. "echo 'Checking dependencies...' && source /opt/ros/${ROS_DISTRO:-foxy}/setup.bash && rosdep install --from-paths src --ignore-src -r -y"
  53. ],
  54. "group": "build",
  55. "options": {
  56. "cwd": "${workspaceFolder}"
  57. }
  58. }
  59. ]
  60. }