aboutsummaryrefslogtreecommitdiff
path: root/.vscode/tasks.json
diff options
context:
space:
mode:
Diffstat (limited to '.vscode/tasks.json')
-rw-r--r--.vscode/tasks.json33
1 files changed, 21 insertions, 12 deletions
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 51f98dd..4a14488 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -7,14 +7,10 @@
"command": "conan",
"args": [
"install",
- "-if",
- "build",
- "-pr:b=default",
- "-pr:h=default",
- "-b",
- "missing",
- "."
- ],
+ "--build=missing",
+ "--settings:host=build_type=${input:buildType}",
+ "${workspaceFolder}/conanfile.py"
+ ]
},
{
"label": "conan: build",
@@ -22,16 +18,29 @@
"command": "conan",
"args": [
"build",
- "-if",
- "build",
- "."
+ "--build=missing",
+ "--settings:host=build_type=${input:buildType}",
+ "${workspaceFolder}/conanfile.py"
],
"group": {
"kind": "build",
"isDefault": true
},
- "problemMatcher": "$gcc",
"dependsOn": "conan: install"
}
+ ],
+ "inputs": [
+ {
+ "id": "buildType",
+ "type": "pickString",
+ "options": [
+ "Debug",
+ "Release",
+ "RelWithDebInfo",
+ "MinSizeRel"
+ ],
+ "description": "The desired build type.",
+ "default": "Debug"
+ }
]
}