Add VS Code build, launch, and IntelliSense configuration

This commit is contained in:
bart
2026-11-08 17:12:35 +01:00
parent abfac333eb
commit df6eac62ca
3 changed files with 132 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/include/x86_64-linux-gnu/qt5",
"/usr/include/x86_64-linux-gnu/qt5/QtCore",
"/usr/include/x86_64-linux-gnu/qt5/QtGui",
"/usr/include/x86_64-linux-gnu/qt5/QtWidgets",
"/usr/include/x86_64-linux-gnu/qt5/QtOpenGL"
],
"defines": [
"QT_CORE_LIB",
"QT_GUI_LIB",
"QT_WIDGETS_LIB",
"QT_OPENGL_LIB"
],
"compilerPath": "/usr/bin/g++",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
+40
View File
@@ -0,0 +1,40 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug tiletest",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tiletest",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Build"
},
{
"name": "Run tiletest (without debugging)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tiletest",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"preLaunchTask": "Build"
}
]
}
+66
View File
@@ -0,0 +1,66 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "qmake tiletest.pro && make -j$(nproc)",
"group": {
"kind": "build",
"isDefault": true
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"]
},
{
"label": "qmake",
"type": "shell",
"command": "qmake tiletest.pro",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"]
},
{
"label": "make",
"type": "shell",
"command": "make -j$(nproc)",
"group": "build",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"]
},
{
"label": "Clean",
"type": "shell",
"command": "make clean",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Rebuild",
"type": "shell",
"command": "make clean && qmake tiletest.pro && make -j$(nproc)",
"group": "build",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"]
},
{
"label": "Run",
"type": "shell",
"command": "./tiletest",
"dependsOn": "Build",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}