aboutsummaryrefslogtreecommitdiffstats
path: root/.vscode/c_cpp_properties.json
diff options
context:
space:
mode:
authorBloodStainedCrow <tim.aschhoff@t-online.de>2024-03-23 10:45:45 +0100
committerGitHub <noreply@github.com>2024-03-23 10:45:45 +0100
commit57e625d4dcb94c4d26a3a65e6738322f172b705b (patch)
tree5a0f39f39fc8dc3f617fe8dec16b7e478de6e1ca /.vscode/c_cpp_properties.json
parent9a5f516c427f329bbc161f794bae18908fcd33c5 (diff)
Unify docker devcontainer with dockerfile used for CI (#1587)
* Only use one Dockerfile and build.sh script for both docker and devcontainer * Remove all now unneccessary tasks and scripts * Update to clang-format-14 * Move devcontainer.json into root folder * Fix conditional statements in Dockerfile * Move .devcontainer/README into doc/usingDevcontainers * Remove obsolete VSCode Task * Change standard compiler path to the correct compiler * Set GDB Path for debugging * Hide broken buttons from CMake Extension * Refactor .devcontainer * Remove unneccessary postBuildCommand * Add devcontainer dependencies to all docker images * Add Devcontainer Debug launch config * Add an additional c_cpp_properties config as a fallback for devcontainer * Remove obsolete Docker Argument * Fix wrong C/Cpp versions * Fix silent fail of gdb, add libncurses5
Diffstat (limited to '.vscode/c_cpp_properties.json')
-rw-r--r--.vscode/c_cpp_properties.json22
1 files changed, 21 insertions, 1 deletions
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
index 392f4151..c5f88a82 100644
--- a/.vscode/c_cpp_properties.json
+++ b/.vscode/c_cpp_properties.json
@@ -1,4 +1,9 @@
{
+ "env": {
+ // TODO: This is a duplication of the configuration set in /docker/build.sh!
+ "TOOLS_DIR": "/opt",
+ "GCC_ARM_PATH": "gcc-arm-none-eabi-10.3-2021.10"
+ },
"configurations": [
{
"name": "nrfCC",
@@ -14,7 +19,22 @@
"intelliSenseMode": "linux-gcc-arm",
"configurationProvider": "ms-vscode.cpp-tools",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
+ },
+ {
+ "name": "nrfCC Devcontainer",
+ "includePath": [
+ "${workspaceFolder}/**",
+ "${workspaceFolder}/src/**",
+ "${workspaceFolder}/src"
+ ],
+ "defines": [],
+ "compilerPath": "${TOOLS_DIR}/${GCC_ARM_PATH}/bin/arm-none-eabi-gcc",
+ "cStandard": "c99",
+ "cppStandard": "c++20",
+ "intelliSenseMode": "linux-gcc-arm",
+ "configurationProvider": "ms-vscode.cpp-tools",
+ "compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
-} \ No newline at end of file
+}