From 8d9f3a25016b1ff1c32fb76335b9cba7be013f71 Mon Sep 17 00:00:00 2001 From: O1L Date: Tue, 14 Oct 2025 15:25:19 +0300 Subject: [PATCH] Added launch scripts --- .gitignore | 2 ++ .vscode/launch.json | 30 ++++++++++++++++++++++++++++++ .vscode/tasks.json | 20 ++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 419794997..ebac4ce4c 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,8 @@ .vs/* .vscode/* !.vscode/extensions.json +!.vscode/launch.json +!.vscode/tasks.json *.ipch *.vspx *.psess diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..816fc9a33 --- /dev/null +++ b/.vscode/launch.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..e33b987cb --- /dev/null +++ b/.vscode/tasks.json @@ -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)" + } + ] +} \ No newline at end of file