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",
"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": {

View File

@ -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",

View File

@ -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)