chore: vscode settings should now be dynamically created and used in gitpod

This commit is contained in:
Mateusz Pusz
2021-10-01 12:41:53 +02:00
parent 76f500d6c4
commit 901f53cf16
2 changed files with 14 additions and 7 deletions

View File

@@ -2,6 +2,20 @@ image: trainiteu/gitpod-cpp
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ # List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks: tasks:
- name: vscode settings
init: |
mkdir -p "$PWD/.vscode";
cat << 'EOF' > "$PWD/.vscode/settings.json"
{
"cmake.buildDirectory": "${workspaceFolder}/build/${buildKitVendor}-${buildKitVersionMajor}",
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake"
],
"cmake.generator": "Ninja Multi-Config"
}
EOF
exit
- name: conan - name: conan
before: | before: |
sudo pip3 install -U conan sudo pip3 install -U conan

View File

@@ -1,7 +0,0 @@
{
"cmake.buildDirectory": "${workspaceFolder}/build/${buildKitVendor}-${buildKitVersionMajor}",
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake"
],
"cmake.generator": "Ninja Multi-Config"
}