diff --git a/.gitignore b/.gitignore index 61bea93420..18036d63ba 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,3 @@ Session.vim tags # Persistent undo [._]*.un~ -.vscode/ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..25830c5be1 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,38 @@ +{ + // 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": "(gdb) Launch", + "type": "cppdbg", + "request": "launch", + "stopAtEntry": false, + "launchCompleteCommand": "exec-run", + "preLaunchTask": "${defaultBuildTask}", + "MIMode": "gdb", + "program": "${workspaceFolder}/build/debug/monero-wallet-gui", + "linux": { + "miDebuggerPath": "/usr/bin/gdb" + }, + "osx": { + "MIMode": "lldb" + }, + "windows": { + "miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe", + "program": "${workspaceFolder}/build/release/bin/monero-wallet-gui.exe", + "cwd": "${fileDirname}", + "args": [], + "environment": [], + "targetArchitecture": "x64", + "externalConsole": true, + }, + "setupCommands": [{ + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": false + }], + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..7787c294dc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "terminal.integrated.defaultProfile.windows": "MSYS2" +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000000..ff9524ee72 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,85 @@ +{ + "tasks": [ + { + "type": "shell", + "label": "Monero GUI Debug", + "detail": "Build monero-wallet-gui for development purposes", + "command": "make", + "args": [ + "debug", + "-j", + { + "value": "$((`nproc` > 1 ? $((`nproc` - 1)) : 1 ))", + "quoting": "weak" + } + ], + "osx": { + "args": [ + "debug-static-mac64", + "-j", + { + "value": "$((`nproc` > 1 ? $((`nproc` - 1)) : 1 ))", + "quoting": "weak" + } + ] + }, + "windows": { + "args": [ + "release-win64", + "-j", + { + "value": "$((`nproc` > 1 ? $((`nproc` - 1)) : 1 ))", + "quoting": "weak" + } + ], + "options": { + "env": { + "MSYSTEM": "MINGW64", + "CHERE_INVOKING": "1" + }, + "shell": { + "executable": "C:\\msys64\\usr\\bin\\bash.exe", + "args": [ + "--login", + "-i", + "-x", + "-c" + ] + } + } + }, + "runOptions": { + "instanceLimit": 1 + }, + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": true + }, + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "type": "shell", + "command": "make", + "args": [ + "clean" + ], + "label": "Monero GUI Clean", + "detail": "Cleanup builds", + "problemMatcher": [], + } + ], + "version": "2.0.0", +}