Skip to content

Commit

Permalink
Merge pull request #6 from MurrayIRC/MurrayIRC-vscode
Browse files Browse the repository at this point in the history
Linux Support for VSCode Project
  • Loading branch information
Murray Campbell authored Sep 21, 2018
2 parents c015529 + d17c323 commit 9c6a98a
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 3 deletions.
19 changes: 19 additions & 0 deletions projects/VSCode/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@
"cStandard": "c11",
"cppStandard": "c++14",
"intelliSenseMode": "clang-x64"
},
{
"name": "Linux",
"includePath": [
"<path_to_raylib>/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
Expand Down
42 changes: 42 additions & 0 deletions projects/VSCode/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
23 changes: 21 additions & 2 deletions projects/VSCode/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,37 @@
"RAYLIB_PATH=<path_to_raylib>",
"DEBUGGING=TRUE"
],
"group": "build"
},
{
"label": "(OSX) build release",
"type": "process",
"command": "make",
"args": [
"PLATFORM=PLATFORM_DESKTOP",
"RAYLIB_PATH=<path_to_raylib>",
],
"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=<path_to_raylib>",
],
"group": "build"
}
Expand Down
2 changes: 1 addition & 1 deletion projects/VSCode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 9c6a98a

Please sign in to comment.