From edfa25fcd8edad43998f50a2144d30a6f966c1c8 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 26 May 2022 21:52:30 +0200 Subject: fix configuration on windows --- .vscode/c_cpp_properties.json | 21 +++++++++++++++++++++ .vscode/tasks.json | 43 ++++++++++++++++++++++++++++++------------- 2 files changed, 51 insertions(+), 13 deletions(-) create mode 100644 .vscode/c_cpp_properties.json (limited to '.vscode') diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..0415e98 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,21 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "${workspaceFolder}/**", + "C:/msys64/mingw64/avr/include" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "_UNICODE" + ], + "compilerPath": "C:\\msys64\\mingw64\\bin\\gcc.exe", + "cStandard": "gnu17", + "cppStandard": "gnu++17", + "intelliSenseMode": "windows-gcc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 251c67d..52ccd17 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,8 +1,12 @@ { "version": "2.0.0", - "command": "C:/msys64/usr/bin/sh.exe", - "options": { "cwd": "${workspaceFolder}" }, - "args": [ "-c" ], + "options": { + "cwd": "${workspaceFolder}", + "shell": { + "executable": "C:/msys64/msys2_shell.cmd", + "args": [ "-defterm", "-no-start", "-mingw64", "-shell", "sh", "-here", "-c" ], + } + }, "tasks": [ { "label": "build client", @@ -10,8 +14,9 @@ "isDefault": false, "kind": "build" }, - "args": [ "make", "-C", "client" ], - "command": "", + "command": "make", + "args": [ "" ], + "options": { "cwd": "${workspaceFolder}/client" }, "type": "shell" }, { @@ -20,8 +25,9 @@ "isDefault": false, "kind": "build" }, - "args": [ "make", "-C", "robot" ], - "command": "", + "options": { "cwd": "${workspaceFolder}/robot" }, + "command": "make", + "args": [ "" ], "type": "shell" }, { @@ -30,8 +36,9 @@ "isDefault": false, "kind": "test" }, - "args": [ "make", "flash", "-C", "robot" ], - "command": "", + "options": { "cwd": "${workspaceFolder}/robot" }, + "command": "make flash", + "args": [ "" ], "type": "shell" }, { @@ -40,8 +47,8 @@ "isDefault": false, "kind": "none" }, - "args": [ "make", "clean" ], - "command": "", + "command": "make clean", + "args": [ "" ], "type": "shell" }, { @@ -50,8 +57,18 @@ "isDefault": false, "kind": "none" }, - "args": [ "make", "format" ], - "command": "", + "command": "make format", + "args": [ "" ], + "type": "shell" + }, + { + "label": "generate compilation db (needed for autocomplete)", + "group": { + "isDefault": false, + "kind": "build" + }, + "command": "make compile_commands", + "args": [ "" ], "type": "shell" }, ] -- cgit v1.2.3