From d5daa46ab8f3a49db12f3093c6b5da5f6cc0b479 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 19 Jun 2024 10:10:54 +0300 Subject: [PATCH] General: Add default .vscode directory The .vscode contains 2 C++ profiles that use my custom toolchain and correct library include paths. One configuration is for kernel and other for userspace --- .vscode/c_cpp_properties.json | 36 +++++++++++++++++++++++++++++++++++ .vscode/settings.json | 6 ++++++ 2 files changed, 42 insertions(+) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/settings.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 00000000..fd7a9518 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,36 @@ +{ + "configurations": [ + { + "name": "banan-os", + "includePath": [ + "${workspaceFolder}/BAN/include", + "${workspaceFolder}/kernel/include", + "${workspaceFolder}/userspace/libraries/*/include" + ], + "defines": [ + "__arch=x86_64" + ], + "compilerPath": "${workspaceFolder}/toolchain/local/bin/x86_64-banan_os-gcc", + "cStandard": "c17", + "cppStandard": "gnu++20", + "intelliSenseMode": "linux-gcc-x64" + }, + { + "name": "banan-os-kernel", + "includePath": [ + "${workspaceFolder}/BAN/include", + "${workspaceFolder}/kernel/include", + "${workspaceFolder}/userspace/libraries/*/include" + ], + "defines": [ + "__arch=x86_64", + "__is_kernel" + ], + "compilerPath": "${workspaceFolder}/toolchain/local/bin/x86_64-banan_os-gcc", + "cStandard": "c17", + "cppStandard": "gnu++20", + "intelliSenseMode": "linux-gcc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..1b010970 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "cmake.configureOnOpen": false, + "editor.tabSize": 4, + "editor.insertSpaces": false, + "editor.detectIndentation": false +} \ No newline at end of file