From 4757ead493422b749ef0caf0b97c854993bb0be4 Mon Sep 17 00:00:00 2001 From: Murray Campbell Date: Fri, 21 Sep 2018 18:10:50 -0500 Subject: [PATCH 1/4] Update launch.json --- projects/VSCode/.vscode/launch.json | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/projects/VSCode/.vscode/launch.json b/projects/VSCode/.vscode/launch.json index 5accab28..8c8a67ea 100644 --- a/projects/VSCode/.vscode/launch.json +++ b/projects/VSCode/.vscode/launch.json @@ -64,5 +64,47 @@ "cwd": "${workspaceFolder}", "preLaunchTask": "(OSX) build release" }, + { + "name": "(GNU) Debug", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/game", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": false + } + ], + "preLaunchTask": "(GNU) build debug" + }, + { + "name": "(GNU) Run", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/game", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": false + } + ], + "preLaunchTask": "(GNU) build release" + } ] } From 46b171a80cfcde67d45bf15ec2f223a9e1566c8c Mon Sep 17 00:00:00 2001 From: Murray Campbell Date: Fri, 21 Sep 2018 18:12:11 -0500 Subject: [PATCH 2/4] Update Makefile --- projects/VSCode/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/VSCode/Makefile b/projects/VSCode/Makefile index 6397fb29..9794c1ab 100644 --- a/projects/VSCode/Makefile +++ b/projects/VSCode/Makefile @@ -27,7 +27,7 @@ # WARNING: To compile to HTML5, code must be redesigned to use emscripten.h and emscripten_set_main_loop() PLATFORM ?= PLATFORM_DESKTOP RAYLIB_PATH ?= ../.. -PROJECT_NAME ?= standard_game +PROJECT_NAME ?= game DEBUGGING ?= FALSE # Default path for raylib on Raspberry Pi, if installed in different path, update it! From 65c74c7cfaf7b52b0d31d705a9e3ad0344c5c4b7 Mon Sep 17 00:00:00 2001 From: Murray Campbell Date: Fri, 21 Sep 2018 18:16:27 -0500 Subject: [PATCH 3/4] Update c_cpp_properties.json --- projects/VSCode/.vscode/c_cpp_properties.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/projects/VSCode/.vscode/c_cpp_properties.json b/projects/VSCode/.vscode/c_cpp_properties.json index 81efa19e..496a9b2d 100644 --- a/projects/VSCode/.vscode/c_cpp_properties.json +++ b/projects/VSCode/.vscode/c_cpp_properties.json @@ -38,6 +38,25 @@ "cStandard": "c11", "cppStandard": "c++14", "intelliSenseMode": "clang-x64" + }, + { + "name": "Linux", + "includePath": [ + "/src/**", + "${workspaceFolder}/**" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "_UNICODE", + "GRAPHICS_API_OPENGL_33", + "PLATFORM_DESKTOP" + ], + "compilerPath": "usr/bin/clang", + "cStandard": "c11", + "cppStandard": "c++14", + "intelliSenseMode": "clang-x64" + } ], "version": 4 From d17c323f98a1341e8e3acee0de1b7c5b8a129d13 Mon Sep 17 00:00:00 2001 From: Murray Campbell Date: Fri, 21 Sep 2018 18:18:38 -0500 Subject: [PATCH 4/4] Update tasks.json --- projects/VSCode/.vscode/tasks.json | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/projects/VSCode/.vscode/tasks.json b/projects/VSCode/.vscode/tasks.json index 83e45c39..d94a2d69 100644 --- a/projects/VSCode/.vscode/tasks.json +++ b/projects/VSCode/.vscode/tasks.json @@ -33,18 +33,37 @@ "RAYLIB_PATH=", "DEBUGGING=TRUE" ], + "group": "build" + }, + { + "label": "(OSX) build release", + "type": "process", + "command": "make", + "args": [ + "PLATFORM=PLATFORM_DESKTOP", + "RAYLIB_PATH=", + ], + "group": "build" + }, + { + "label": "(GNU) build debug", + "type": "process", + "command": "make", + "args": [ + "PLATFORM=PLATFORM_DESKTOP", + "DEBUGGING=TRUE" + ], "group": { "kind": "build", "isDefault": true } }, { - "label": "(OSX) build release", + "label": "(GNU) build release", "type": "process", "command": "make", "args": [ "PLATFORM=PLATFORM_DESKTOP", - "RAYLIB_PATH=", ], "group": "build" }