Skip to content

Commit

Permalink
Merge pull request #54 from cwruRobotics/easy-build
Browse files Browse the repository at this point in the history
Easy build
  • Loading branch information
InvincibleRMC authored Feb 18, 2023
2 parents 240cc23 + 1f4a1de commit b3b13ad
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,8 @@ dmypy.json
# Pyre type checker
.pyre/

.vscode/
.vscode/*
# Allows custom tasks
!.vscode/tasks.json
!.vscode/easy_build.sh
!.vscode/easy_all.sh
8 changes: 8 additions & 0 deletions .vscode/easy_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Next year could move root of clone
# Or Make custom vscode extension

rosdep update --rosdistro=$ROS_DISTRO
rosdep install --from-paths src --ignore-src -r -y
# Stolen from colcon build command in VsCode
colcon build --symlink-install
source install/setup.bash
6 changes: 6 additions & 0 deletions .vscode/easy_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Next year could move root of clone
# Or Make custom vscode extension

# Stolen from colcon build command in VsCode
colcon build --symlink-install
source install/setup.bash
31 changes: 31 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "🏃‍♂️ ROS All",
"type": "shell",
"command": "bash",
"args": [
"${workspaceFolder}/src/.vscode/easy_all.sh"
],
"presentation": {
"panel": "dedicated",
"revealProblems": "onProblem",
},
"problemMatcher": []
},
{
"label": "🏃‍♂️ ROS Quick Build",
"type": "shell",
"command": "bash",
"args": [
"${workspaceFolder}/src/.vscode/easy_build.sh"
],
"presentation": {
"panel": "dedicated",
"revealProblems": "onProblem",
},
"problemMatcher": []
}
]
}

0 comments on commit b3b13ad

Please sign in to comment.