Browse Source

Review VSCode tasks

pull/1202/head
raysan5 4 years ago
parent
commit
eb04be8141
3 changed files with 13 additions and 5 deletions
  1. +3
    -3
      projects/VSCode/.vscode/launch.json
  2. +9
    -1
      projects/VSCode/.vscode/tasks.json
  3. +1
    -1
      projects/VSCode/Makefile

+ 3
- 3
projects/VSCode/.vscode/launch.json 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": {

+ 9
- 1
projects/VSCode/.vscode/tasks.json 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",

+ 1
- 1
projects/VSCode/Makefile 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)

Loading…
Cancel
Save