summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorAndrew Udvare <audvare@gmail.com>2020-10-08 23:14:37 -0400
committerAndrew Udvare <audvare@gmail.com>2020-10-08 23:14:37 -0400
commit324f84750bbe58fb0d8b05da07bce78a7d88b08d (patch)
tree234c23056fa1b749a913d7242a9810190cf20d7a /.vscode
parent5454456cb3ee5d89740810a0af1b9402e3c1e5cb (diff)
vscode: Linux: add release configurations
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json25
-rw-r--r--.vscode/tasks.json31
2 files changed, 44 insertions, 12 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 92b8df0d..a98dfa3f 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -6,8 +6,8 @@
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
- "name": "(gdb) Launch",
- "preLaunchTask": "Compile (Linux x64)",
+ "name": "(gdb) Launch (Debug)",
+ "preLaunchTask": "Compile (Debug Linux x64)",
"program": "${workspaceFolder}/bin/linux-amd64-librw_gl3_glfw-oal/Debug/re3",
"request": "launch",
"setupCommands": [
@@ -20,6 +20,27 @@
"stopAtEntry": false,
"targetArchitecture": "x64",
"type": "cppdbg"
+ },
+ {
+ "MIMode": "gdb",
+ "args": [],
+ "cwd": "${workspaceFolder}",
+ "environment": [],
+ "externalConsole": false,
+ "name": "(gdb) Launch (Release)",
+ "preLaunchTask": "Compile (Release Linux x64)",
+ "program": "${workspaceFolder}/bin/linux-amd64-librw_gl3_glfw-oal/Release/re3",
+ "request": "launch",
+ "setupCommands": [
+ {
+ "description": "Enable pretty-printing for gdb",
+ "ignoreFailures": true,
+ "text": "-enable-pretty-printing"
+ }
+ ],
+ "stopAtEntry": false,
+ "targetArchitecture": "x64",
+ "type": "cppdbg"
}
],
"version": "0.2.0"
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 475c805e..c4fdc285 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -1,12 +1,4 @@
{
- "inputs": [
- {
- "default": "5",
- "description": "Number of jobs to run simultaneously when compiling",
- "id": "numberOfJobs",
- "type": "promptString"
- }
- ],
"tasks": [
{
"args": ["--with-librw", "gmake2"],
@@ -17,7 +9,7 @@
},
{
"args": [
- "-j${input:numberOfJobs}",
+ "-j5",
"config=debug_linux-amd64-librw_gl3_glfw-oal",
"verbose=1"
],
@@ -27,7 +19,26 @@
"isDefault": true,
"kind": "build"
},
- "label": "Compile (Linux x64)",
+ "label": "Compile (Debug Linux x64)",
+ "options": {
+ "cwd": "${workspaceFolder}/build"
+ },
+ "problemMatcher": "$gcc",
+ "type": "shell"
+ },
+ {
+ "args": [
+ "-j5",
+ "config=release_linux-amd64-librw_gl3_glfw-oal",
+ "verbose=1"
+ ],
+ "command": "make",
+ "dependsOn": "Premake (Linux)",
+ "group": {
+ "isDefault": true,
+ "kind": "build"
+ },
+ "label": "Compile (Release Linux x64)",
"options": {
"cwd": "${workspaceFolder}/build"
},