From ce20232dd0aef24bf21285d14dff0b1a6d1061cc Mon Sep 17 00:00:00 2001 From: Joshua Barnett Date: Fri, 6 Sep 2024 22:20:51 +0100 Subject: [PATCH] Update build tasks to run in wsl if project is open on windows host. --- .vscode/tasks.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1330f81..a2cbd8a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,6 +5,15 @@ "type": "shell", "label": "Build: Linux", "command": "make", + "windows": { + "command": "wsl.exe", + "args": [ + "--exec", + "make", + "build-linux", + "DEBUG=1" + ], + }, "args": [ "build-linux", "DEBUG=1" @@ -17,6 +26,15 @@ { "type": "shell", "label": "Clean: Linux", + "windows": { + "command": "wsl.exe", + "args": [ + "--exec", + "make", + "clean-linux", + "DEBUG=1" + ], + }, "command": "make", "args": [ "clean-linux", @@ -49,6 +67,15 @@ { "type": "shell", "label": "Clean: Windows", + "windows": { + "command": "wsl.exe", + "args": [ + "--exec", + "make", + "clean-windows", + "DEBUG=1" + ], + }, "command": "make", "args": [ "clean-windows", @@ -59,6 +86,15 @@ { "type": "shell", "label": "Build: Mac OS X", + "windows": { + "command": "wsl.exe", + "args": [ + "--exec", + "make", + "build-macosx", + "DEBUG=1" + ], + }, "command": "make", "args": [ "build-macosx", @@ -72,6 +108,15 @@ { "type": "shell", "label": "Clean: Mac OS X", + "windows": { + "command": "wsl.exe", + "args": [ + "--exec", + "make", + "clean-macosx", + "DEBUG=1" + ], + }, "command": "make", "args": [ "clean-macosx",