From d8e0b2e27c021364efc87edd5ab29deb946f7062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Jaros?= <18265227+yareky@users.noreply.github.com> Date: Mon, 18 Oct 2021 22:00:54 +0200 Subject: [PATCH] Allow to run any file (#2069) --- projects/VSCode/.vscode/tasks.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/VSCode/.vscode/tasks.json b/projects/VSCode/.vscode/tasks.json index 989e13b0d..a610a248a 100644 --- a/projects/VSCode/.vscode/tasks.json +++ b/projects/VSCode/.vscode/tasks.json @@ -9,7 +9,9 @@ "command": "make", "args": [ "PLATFORM=PLATFORM_DESKTOP", - "BUILD_MODE=DEBUG" + "BUILD_MODE=DEBUG", + "PROJECT_NAME=${fileBasenameNoExtension}", + "OBJS=${fileBasenameNoExtension}.c" ], "windows": { "command": "C:/raylib/mingw/bin/mingw32-make.exe", @@ -42,6 +44,8 @@ "command": "make", "args": [ "PLATFORM=PLATFORM_DESKTOP", + "PROJECT_NAME=${fileBasenameNoExtension}", + "OBJS=${fileBasenameNoExtension}.c" ], "windows": { "command": "C:/raylib/mingw/bin/mingw32-make.exe", @@ -64,4 +68,4 @@ ] } ] -} +} \ No newline at end of file