From 883963b09f07c703e9a8c8d5c7995f1e6ea0bc52 Mon Sep 17 00:00:00 2001 From: Anton Zhilin Date: Mon, 25 Dec 2023 16:37:22 +0300 Subject: [PATCH] feat build: add VSCode config files (#62) Closes: #47 Co-authored-by: Anatoly Shirokov --- .gitignore | 5 ++++- .vscode/README.md | 2 ++ .vscode/c_cpp_properties.json | 10 ++++++++++ .vscode/cmake-variants.yaml | 17 +++++++++++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .vscode/README.md create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/cmake-variants.yaml diff --git a/.gitignore b/.gitignore index ede5619..95c04c5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,13 @@ __pycache__ build* compile_commands.json .cache/ +.ccache/ .idea/ .vscode/ +!.vscode/c_cpp_properties.json +!.vscode/cmake-variants.yaml +!.vscode/README.md .cores/ -.ccache/ cmake-build-* Testing/ .DS_Store diff --git a/.vscode/README.md b/.vscode/README.md new file mode 100644 index 0000000..8044ccc --- /dev/null +++ b/.vscode/README.md @@ -0,0 +1,2 @@ +This is the minimal configuration for VSCode IDE. +If you don't use VSCode, feel free to delete this directory. diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..fe6bd42 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,10 @@ +{ + "configurations": [ + { + "name": "CMake", + "compileCommands": "${config:cmake.buildDirectory}/compile_commands.json", + "configurationProvider": "ms-vscode.cmake-tools" + } + ], + "version": 4 +} diff --git a/.vscode/cmake-variants.yaml b/.vscode/cmake-variants.yaml new file mode 100644 index 0000000..955a8f2 --- /dev/null +++ b/.vscode/cmake-variants.yaml @@ -0,0 +1,17 @@ +buildType: + default: debug + choices: + debug: + short: Debug + long: Unoptimized debug build with sanitizers + buildType: Debug + settings: + CMAKE_EXPORT_COMPILE_COMMANDS: ON + USERVER_SANITIZE: addr ub + + release: + short: Release + long: Optimized build + buildType: Release + settings: + CMAKE_EXPORT_COMPILE_COMMANDS: ON