From b1f0289d9e4f406b99b0f234e9ea2a1ab62038a8 Mon Sep 17 00:00:00 2001 From: Quentin Bazin Date: Sat, 1 Aug 2020 18:12:00 +0200 Subject: [PATCH] [.vscode] Added. --- .gitignore | 1 - .vscode/launch.json | 20 ++++++++++++++++++++ .vscode/settings.json | 3 +++ .vscode/tasks.json | 23 +++++++++++++++++++++++ 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 29759bee..20366758 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ texturepacks/* .#* *~ .ycm_extra_conf.py -.vscode # Compiled files *.o diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..1aed895d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // 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": "(Windows) Run openminer", + "type": "cppvsdbg", + "request": "launch", + "program": "${workspaceFolder}/build_mingw/openminer.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "preLaunchTask": "${defaultBuildTask}" + }, + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..b4d8c358 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools" +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..61393aeb --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,23 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "(Windows) Configure OpenMiner using MinGW", + "type": "shell", + "command": "cmake", + "args": ["-B", "build_mingw", "-G", "MinGW Makefiles", "."] + }, + { + "label": "Compile OpenMiner using MinGW", + "type": "shell", + "command": "cmake --build build_mingw -j8", + "group": { + "kind": "build", + "isDefault": true + }, + "dependsOn": "(Windows) Configure OpenMiner using MinGW" + } + ] +} \ No newline at end of file