Skip to content

Commit

Permalink
Add .vscode launch.json and tasks.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
anr committed Feb 8, 2024
1 parent 4f209f7 commit 06764f2
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
build/

# VS Code Files
.vscode/
#.vscode/
*.code-workspace

# Python
Expand Down
38 changes: 38 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "TorchDrum",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/TorchDrum_artefacts/Debug/Standalone/TorchDrum.app/Contents/MacOS/TorchDrum",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"osx": {
"MIMode": "lldb"
},
"preLaunchTask": "build-debug"
},
{
"name": "AbletonDebug",
"type": "cppdbg",
"request": "launch",
"program": "/Applications/Ableton Live 11 Suite.app/Contents/MacOS/Live",
"args": [],
"stopAtEntry": false,
"cwd": "/Users/jordanm/Library/Audio/Plug-Ins/VST3/TorchDrum.vst3",
"environment": [],
"externalConsole": false,
"osx": {
"MIMode": "lldb"
},
"preLaunchTask": "build-debug"
}
]
}
28 changes: 28 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_PREFIX_PATH=/Users/jordanm/anaconda3/envs/torchdrum/lib/python3.10/site-packages/torch/share/cmake -DBUILD_TORCHDRUM_LIB=ON && cmake --build build --config Debug",
"problemMatcher": []
},
{
"label": "build-debug",
"type": "shell",
"command": "cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_PREFIX_PATH=/Users/jordanm/anaconda3/envs/torchdrum/lib/python3.10/site-packages/torch/share/cmake && cmake --build build --config Debug",
"problemMatcher": []
},
{
"label": "build-release",
"type": "shell",
"command": "cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_PREFIX_PATH=/Users/jordanm/anaconda3/envs/torchdrum/lib/python3.10/site-packages/torch/share/cmake && cmake --build build --config Release"
},
{
"label": "build-release-for-signing",
"type": "shell",
"command": "cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_PREFIX_PATH=/Users/jordanm/anaconda3/envs/torchdrum/lib/python3.10/site-packages/torch/share/cmake -DCOPY_PLUGIN_AFTER_BUILD=0 && cmake --build build --config Release -j12"
}
]

}

0 comments on commit 06764f2

Please sign in to comment.