Added launch scripts

This commit is contained in:
O1L 2025-10-14 15:25:19 +03:00 committed by DHrpcs3
parent d957683d34
commit 8d9f3a2501
3 changed files with 52 additions and 0 deletions

2
.gitignore vendored
View file

@ -35,6 +35,8 @@
.vs/*
.vscode/*
!.vscode/extensions.json
!.vscode/launch.json
!.vscode/tasks.json
*.ipch
*.vspx
*.psess

30
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,30 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug tests",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/test/gcn_shader_tests",
"args": [
"--gtest_filter=*",
"--gtest_print_time=0",
"--gtest_output=xml:results.xml"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Build"
}
]
}

20
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,20 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Prepare debug",
"command": "cmake -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS_INIT=\"-march=native\" -DCMAKE_CXX_COMPILER=g++-14"
},
{
"type": "shell",
"label": "Prepare release",
"command": "cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_INIT=\"-march=native\" -DCMAKE_CXX_COMPILER=g++-14"
},
{
"type": "shell",
"label": "Build",
"command": "cmake --build build -j$(nproc)"
}
]
}