From 98eac1086e845ecda4c8dfa68df76923bc5b7dae Mon Sep 17 00:00:00 2001 From: addshore Date: Sun, 12 Sep 2021 20:30:31 +0100 Subject: [PATCH] Add VSCode project files It doesn't look like there are any other IDE specific files in this repo right now, but it might be nice to include these. --- .vscode/launch.json | 26 ++++++++++++++++++++++++++ .vscode/settings.json | 5 +++++ .vscode/tasks.json | 26 ++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..6ff7c3912 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + // 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", + "program": "${workspaceFolder}/release/huggle/huggle", + "args": [], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..be4583861 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "search.exclude": { + "huggle/": true + } +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..aa1ce9aa4 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,26 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Configure", + "type": "shell", + "command": "./configure --extension --web-engine" + }, + { + "label": "Build release", + "type": "shell", + "command": "make", + "options": { + "cwd": "${workspaceFolder}/release" + } + }, + { + "label": "Install", + "type": "shell", + "command": "sudo make install && sudo ldconfig", + "options": { + "cwd": "${workspaceFolder}/release" + } + } + ] + } \ No newline at end of file