build: add vscode build configuration

This commit is contained in:
Cat Flynn 2023-08-02 00:29:52 +02:00
parent 61e0a3e7e7
commit 9445794914
4 changed files with 80 additions and 1 deletions

23
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,23 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/libs/glew-2.2.0/include",
"C:/libs/glfw-3.3.8.bin.WIN64/include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.19041.0",
"compilerPath": "C:/MinGW/bin/g++.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
}

31
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,31 @@
{
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/Debug/HelloAstro.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "cmake build"
}
],
"version": "2.0.0"
}

22
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,22 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cmake build",
"type": "shell",
"command": "cmake",
"args": [
"--build",
"${workspaceFolder}/build"
],
"group":
{
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}

View File

@ -22,7 +22,10 @@
// To run in VS
// Set startup project in Solution Explorer
// Press F5 to run
//
// To run in VSCode
// https://code.visualstudio.com/docs/cpp/config-mingw
// To compile on Arch Linux
//
// Install dependencies