diff --git a/vscode_example/launch.json b/vscode_example/launch.json new file mode 100644 index 0000000..97df54f --- /dev/null +++ b/vscode_example/launch.json @@ -0,0 +1,19 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug", + "type": "gdb", + "request": "launch", + "target": "${workspaceRoot}/build/clang_debug/bin/nui-template.exe", + "cwd": "${workspaceRoot}", + "gdbpath": "C:/msys64/clang64/bin/gdb.exe", + "internalConsoleOptions": "openOnSessionStart", + "stopAtEntry": true, + "preLaunchTask": "build_debug" + } + ] +} \ No newline at end of file diff --git a/vscode_example/tasks.json b/vscode_example/tasks.json new file mode 100644 index 0000000..271ca68 --- /dev/null +++ b/vscode_example/tasks.json @@ -0,0 +1,49 @@ +{ + "version": "2.0.0", + "options": { + "cwd": "${workspaceFolder}", + "env": { + "MSYSTEM": "CLANG64", + "CHERE_INVOKING": "1" + }, + "shell": { + "executable": "C:\\msys64\\usr\\bin\\bash.exe", + "args": [ + "--login", "-i", "-c" + ] + } + }, + "tasks": [ + { + "label": "configure_debug", + "command": "cmake", + "args": [ + "-D", + "CMAKE_BUILD_TYPE=Debug", + "-D", + "CMAKE_COLOR_DIAGNOSTICS=ON", + "-G", + "\"MSYS Makefiles\"", + "-B", + "build/clang_debug", + "-S", + "." + ], + "type": "shell", + }, + { + "label": "build_debug", + "command": "cmake", + "dependsOn": "configure_debug", + "type": "shell", + "args": [ + "--build", + "build/clang_debug" + ], + "presentation": { + "reveal": "always" + }, + "group": "build" + } + ] +} \ No newline at end of file