diff options
| author | Ray <raysan5@gmail.com> | 2018-08-30 18:41:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-30 18:41:21 +0200 |
| commit | 57dfe55759ec08247d67f73a3014ba6c85d2e339 (patch) | |
| tree | 24dd685a1f4f1020b076028cf1f0b411527838ac /projects | |
| parent | adf08c88ea4b065a36bf76143a6b42cfce1601de (diff) | |
| parent | f97bb085bf71bbaa7aed223e9243029979ba4948 (diff) | |
| download | raylib-57dfe55759ec08247d67f73a3014ba6c85d2e339.tar.gz raylib-57dfe55759ec08247d67f73a3014ba6c85d2e339.zip | |
Merge pull request #637 from MurrayIRC/master
Updated VSCode project to support OSX building / debugging.
Diffstat (limited to 'projects')
| -rw-r--r-- | projects/README.md | 2 | ||||
| -rw-r--r-- | projects/VSCode/.vscode/c_cpp_properties.json | 23 | ||||
| -rw-r--r-- | projects/VSCode/.vscode/launch.json | 28 | ||||
| -rw-r--r-- | projects/VSCode/.vscode/tasks.json | 31 | ||||
| -rw-r--r-- | projects/VSCode/Makefile | 2 |
5 files changed, 72 insertions, 14 deletions
diff --git a/projects/README.md b/projects/README.md index 3b152f98..6cb5798c 100644 --- a/projects/README.md +++ b/projects/README.md @@ -12,6 +12,6 @@ IDE | Platform | Template type | State [Notepad++](https://notepad-plus-plus.org/) | Windows | source/example compiling | DONE [VS2015](https://www.visualstudio.com) | Windows | source/example compiling | DONE [VS2017](https://www.visualstudio.com) | Windows | source/example compiling | DONE -[VSCode](https://code.visualstudio.com/) | Windows | - | INCOMPLETE +[VSCode](https://code.visualstudio.com/) | Windows, macOS | - | INCOMPLETE *New IDEs config files are welcome!* diff --git a/projects/VSCode/.vscode/c_cpp_properties.json b/projects/VSCode/.vscode/c_cpp_properties.json index 10494f67..81efa19e 100644 --- a/projects/VSCode/.vscode/c_cpp_properties.json +++ b/projects/VSCode/.vscode/c_cpp_properties.json @@ -17,7 +17,28 @@ "cStandard": "c11", "cppStandard": "c++14", "intelliSenseMode": "clang-x64" + }, + { + "name": "Mac", + "includePath": [ + "<path_to_raylib>/src/**", + "${workspaceFolder}/**" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "_UNICODE", + "GRAPHICS_API_OPENGL_33", + "PLATFORM_DESKTOP" + ], + "macFrameworkPath": [ + "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks" + ], + "compilerPath": "/usr/bin/clang", + "cStandard": "c11", + "cppStandard": "c++14", + "intelliSenseMode": "clang-x64" } ], "version": 4 -}
\ No newline at end of file +} diff --git a/projects/VSCode/.vscode/launch.json b/projects/VSCode/.vscode/launch.json index 4575074f..5accab28 100644 --- a/projects/VSCode/.vscode/launch.json +++ b/projects/VSCode/.vscode/launch.json @@ -5,7 +5,7 @@ "version": "0.2.0", "configurations": [ { - "name": "Debug", + "name": "(WIN) Debug", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/game.exe", @@ -23,10 +23,10 @@ "ignoreFailures": false } ], - "preLaunchTask": "build debug" + "preLaunchTask": "(WIN) build debug" }, { - "name": "Run", + "name": "(WIN) Run", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/game.exe", @@ -44,7 +44,25 @@ "ignoreFailures": false } ], - "preLaunchTask": "build release" + "preLaunchTask": "(WIN) build release" + }, + { + "name": "(OSX) Debug", + "type": "lldb", + "request": "launch", + "program": "${workspaceFolder}/game", + "args": [], + "cwd": "${workspaceFolder}", + "preLaunchTask": "(OSX) build debug" + }, + { + "name": "(OSX) Run", + "type": "lldb", + "request": "launch", + "program": "${workspaceFolder}/game", + "args": [], + "cwd": "${workspaceFolder}", + "preLaunchTask": "(OSX) build release" }, ] - }
\ No newline at end of file + } diff --git a/projects/VSCode/.vscode/tasks.json b/projects/VSCode/.vscode/tasks.json index cef9e960..83e45c39 100644 --- a/projects/VSCode/.vscode/tasks.json +++ b/projects/VSCode/.vscode/tasks.json @@ -4,30 +4,49 @@ "version": "2.0.0", "tasks": [ { - "label": "build release", + "label": "(WIN) build release", "type": "process", "command": "C:/raylib/mingw/bin/mingw32-make.exe", "args": [ "PLATFORM=PLATFORM_DESKTOP", "RAYLIB_PATH=C:/raylib/raylib", - "PROJECT_NAME=game", ], "group": "build" }, { - "label": "build debug", + "label": "(WIN) build debug", "type": "process", "command": "C:/raylib/mingw/bin/mingw32-make.exe", "args": [ "PLATFORM=PLATFORM_DESKTOP", "RAYLIB_PATH=C:/raylib/raylib", - "PROJECT_NAME=game", - "DEBUGGING=TRUE", + "DEBUGGING=TRUE" + ], + "group": "build" + }, + { + "label": "(OSX) build debug", + "type": "process", + "command": "make", + "args": [ + "PLATFORM=PLATFORM_DESKTOP", + "RAYLIB_PATH=<path_to_raylib>", + "DEBUGGING=TRUE" ], "group": { "kind": "build", "isDefault": true } + }, + { + "label": "(OSX) build release", + "type": "process", + "command": "make", + "args": [ + "PLATFORM=PLATFORM_DESKTOP", + "RAYLIB_PATH=<path_to_raylib>", + ], + "group": "build" } ] -}
\ No newline at end of file +} diff --git a/projects/VSCode/Makefile b/projects/VSCode/Makefile index 2f78971b..6397fb29 100644 --- a/projects/VSCode/Makefile +++ b/projects/VSCode/Makefile @@ -254,7 +254,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM_OS),OSX) # Libraries for OSX 10.9 desktop compiling # NOTE: Required packages: libopenal-dev libegl1-mesa-dev - LDLIBS = -lraylib -framework OpenGL -framework OpenAL -framework Cocoa + LDLIBS = -lraylib -framework OpenGL -framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo endif ifeq ($(PLATFORM_OS),BSD) # Libraries for FreeBSD, OpenBSD, NetBSD, DragonFly desktop compiling |
