mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2026-04-18 16:34:07 +02:00
2
VS Code
Loren Burkholder edited this page 2022-12-21 09:16:49 -05:00
Table of Contents
Example files for getting debugging and cmake configuring / building working automatically in VS Code.
.vscode/launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
// For windows: ${workspaceFolder}/build/nheko.exe
// For BSD and Linux: ${workspaceFolder}/nheko
// For macOS: ${workspaceFolder}/nheko.app/Contents/MacOS/nheko
"program": "${workspaceFolder}/build/nheko.app/Contents/MacOS/nheko",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb"
}
]
}
.vscode/c_cpp_properties.json
macOS example
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64",
"configurationProvider": "vector-of-bool.cmake-tools"
}
],
"version": 4
}
.vscode/settings.json
{
"files.associations": {
"ios": "cpp"
},
// Modify these as needed! These are based on the arguments to cmake configuration
// listed in the build steps in the README
"cmake.configureArgs": [
"-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5",
"-DHUNTER_ENABLED=ON",
"-DBUILD_SHARED_LIBS=OFF",
"-DHUNTER_ROOT=.hunter",
"-DUSE_BUNDLED_BOOST=OFF"
],
"cmake.configureOnOpen": true,
"C_Cpp.default.cppStandard": "c++17"
}