diff options
| author | raysan5 <[email protected]> | 2020-04-13 12:07:05 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-04-13 12:07:05 +0200 |
| commit | eb04be8141c5e70f99d8104c44a61fb71779a55a (patch) | |
| tree | dbd168f186fff2e7e281e48cfd7c258fbf06ab09 | |
| parent | c21e9a721b5d417396e117c8e074db4767e32758 (diff) | |
| download | raylib-eb04be8141c5e70f99d8104c44a61fb71779a55a.tar.gz raylib-eb04be8141c5e70f99d8104c44a61fb71779a55a.zip | |
Review VSCode tasks
| -rw-r--r-- | projects/VSCode/.vscode/launch.json | 6 | ||||
| -rw-r--r-- | projects/VSCode/.vscode/tasks.json | 10 | ||||
| -rw-r--r-- | projects/VSCode/Makefile | 2 |
3 files changed, 13 insertions, 5 deletions
diff --git a/projects/VSCode/.vscode/launch.json b/projects/VSCode/.vscode/launch.json index b65aa1c1..afb54b7f 100644 --- a/projects/VSCode/.vscode/launch.json +++ b/projects/VSCode/.vscode/launch.json @@ -8,7 +8,7 @@ "name": "Debug", "type": "cppdbg", "request": "launch", - "program": "${workspaceFolder}/game", + "program": "${workspaceFolder}/${fileBasenameNoExtension}", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", @@ -42,10 +42,10 @@ "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, - "program": "${workspaceFolder}/game", + "program": "${workspaceFolder}/${fileBasenameNoExtension}", "MIMode": "gdb", "windows": { - "program": "${workspaceFolder}/game.exe", + "program": "${workspaceFolder}/${fileBasenameNoExtension}.exe", "miDebuggerPath": "C:/raylib/mingw/bin/gdb.exe" }, "osx": { diff --git a/projects/VSCode/.vscode/tasks.json b/projects/VSCode/.vscode/tasks.json index cf5905f8..989e13b0 100644 --- a/projects/VSCode/.vscode/tasks.json +++ b/projects/VSCode/.vscode/tasks.json @@ -16,11 +16,16 @@ "args": [ "RAYLIB_PATH=C:/raylib/raylib", "PROJECT_NAME=${fileBasenameNoExtension}", + "OBJS=${fileBasenameNoExtension}.c", + "BUILD_MODE=DEBUG" ], }, "osx": { "args": [ - "RAYLIB_PATH=<path_to_raylib>/raylib" + "RAYLIB_PATH=<path_to_raylib>/raylib", + "PROJECT_NAME=${fileBasenameNoExtension}", + "OBJS=${fileBasenameNoExtension}.c", + "BUILD_MODE=DEBUG" ], }, "group": { @@ -43,11 +48,14 @@ "args": [ "RAYLIB_PATH=C:/raylib/raylib", "PROJECT_NAME=${fileBasenameNoExtension}", + "OBJS=${fileBasenameNoExtension}.c" ], }, "osx": { "args": [ "RAYLIB_PATH=<path_to_raylib>/raylib", + "PROJECT_NAME=${fileBasenameNoExtension}", + "OBJS=${fileBasenameNoExtension}.c" ], }, "group": "build", diff --git a/projects/VSCode/Makefile b/projects/VSCode/Makefile index b8c22ce3..1ffaac97 100644 --- a/projects/VSCode/Makefile +++ b/projects/VSCode/Makefile @@ -358,7 +358,7 @@ OBJ_DIR = obj # Define all object files from source files SRC = $(call rwildcard, *.c, *.h) #OBJS = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) -OBJS = main.c +OBJS ?= main.c # For Android platform we call a custom Makefile.Android ifeq ($(PLATFORM),PLATFORM_ANDROID) |
