Setup VSCode build system
Works on both Linux and Windows
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,7 +5,6 @@ out/
|
|||||||
.vs/
|
.vs/
|
||||||
|
|
||||||
# VSC and manual build folders #
|
# VSC and manual build folders #
|
||||||
.vscode/
|
|
||||||
build/
|
build/
|
||||||
|
|
||||||
# Excludes binary outputs in root dir #
|
# Excludes binary outputs in root dir #
|
||||||
|
|||||||
26
.vscode/c_cpp_properties.json
vendored
Normal file
26
.vscode/c_cpp_properties.json
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"version": 4,
|
||||||
|
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Linux",
|
||||||
|
|
||||||
|
"includePath":
|
||||||
|
[
|
||||||
|
"${workspaceFolder}/**"
|
||||||
|
],
|
||||||
|
|
||||||
|
"cppStandard": "c++20"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Windows",
|
||||||
|
|
||||||
|
"includePath":
|
||||||
|
[
|
||||||
|
"${workspaceFolder}/**"
|
||||||
|
],
|
||||||
|
|
||||||
|
"cppStandard": "c++20"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
57
.vscode/launch.json
vendored
Normal file
57
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "Run lxc",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceRoot}/lxc",
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": true,
|
||||||
|
|
||||||
|
"preLaunchTask": "build",
|
||||||
|
|
||||||
|
"windows": { "MIMode": "cppvsdbg", },
|
||||||
|
"linux": { "MIMode": "gdb" },
|
||||||
|
|
||||||
|
"setupCommands":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Run LXC_Tests",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceRoot}/LXC_Tests",
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": true,
|
||||||
|
|
||||||
|
"preLaunchTask": "build",
|
||||||
|
|
||||||
|
"windows": { "MIMode": "cppvsdbg", },
|
||||||
|
"linux": { "MIMode": "gdb" },
|
||||||
|
|
||||||
|
"setupCommands":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
14
.vscode/tasks.json
vendored
Normal file
14
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
|
||||||
|
"tasks":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"label": "build",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "cmake --build build",
|
||||||
|
"group": "build",
|
||||||
|
"problemMatcher": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user