Review VSCode tasks

This commit is contained in:
raysan5 2020-04-13 12:07:05 +02:00
parent c21e9a721b
commit eb04be8141
3 changed files with 13 additions and 5 deletions

View file

@ -8,7 +8,7 @@
"name": "Debug", "name": "Debug",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/game", "program": "${workspaceFolder}/${fileBasenameNoExtension}",
"args": [], "args": [],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
@ -42,10 +42,10 @@
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
"environment": [], "environment": [],
"externalConsole": false, "externalConsole": false,
"program": "${workspaceFolder}/game", "program": "${workspaceFolder}/${fileBasenameNoExtension}",
"MIMode": "gdb", "MIMode": "gdb",
"windows": { "windows": {
"program": "${workspaceFolder}/game.exe", "program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
"miDebuggerPath": "C:/raylib/mingw/bin/gdb.exe" "miDebuggerPath": "C:/raylib/mingw/bin/gdb.exe"
}, },
"osx": { "osx": {

View file

@ -16,11 +16,16 @@
"args": [ "args": [
"RAYLIB_PATH=C:/raylib/raylib", "RAYLIB_PATH=C:/raylib/raylib",
"PROJECT_NAME=${fileBasenameNoExtension}", "PROJECT_NAME=${fileBasenameNoExtension}",
"OBJS=${fileBasenameNoExtension}.c",
"BUILD_MODE=DEBUG"
], ],
}, },
"osx": { "osx": {
"args": [ "args": [
"RAYLIB_PATH=<path_to_raylib>/raylib" "RAYLIB_PATH=<path_to_raylib>/raylib",
"PROJECT_NAME=${fileBasenameNoExtension}",
"OBJS=${fileBasenameNoExtension}.c",
"BUILD_MODE=DEBUG"
], ],
}, },
"group": { "group": {
@ -43,11 +48,14 @@
"args": [ "args": [
"RAYLIB_PATH=C:/raylib/raylib", "RAYLIB_PATH=C:/raylib/raylib",
"PROJECT_NAME=${fileBasenameNoExtension}", "PROJECT_NAME=${fileBasenameNoExtension}",
"OBJS=${fileBasenameNoExtension}.c"
], ],
}, },
"osx": { "osx": {
"args": [ "args": [
"RAYLIB_PATH=<path_to_raylib>/raylib", "RAYLIB_PATH=<path_to_raylib>/raylib",
"PROJECT_NAME=${fileBasenameNoExtension}",
"OBJS=${fileBasenameNoExtension}.c"
], ],
}, },
"group": "build", "group": "build",

View file

@ -358,7 +358,7 @@ OBJ_DIR = obj
# Define all object files from source files # Define all object files from source files
SRC = $(call rwildcard, *.c, *.h) SRC = $(call rwildcard, *.c, *.h)
#OBJS = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) #OBJS = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
OBJS = main.c OBJS ?= main.c
# For Android platform we call a custom Makefile.Android # For Android platform we call a custom Makefile.Android
ifeq ($(PLATFORM),PLATFORM_ANDROID) ifeq ($(PLATFORM),PLATFORM_ANDROID)