Merge pull request #637 from MurrayIRC/master
Updated VSCode project to support OSX building / debugging.
This commit is contained in:
commit
57dfe55759
@ -12,6 +12,6 @@ IDE | Platform | Template type | State
|
|||||||
[Notepad++](https://notepad-plus-plus.org/) | Windows | source/example compiling | DONE
|
[Notepad++](https://notepad-plus-plus.org/) | Windows | source/example compiling | DONE
|
||||||
[VS2015](https://www.visualstudio.com) | 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
|
[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!*
|
*New IDEs config files are welcome!*
|
||||||
|
23
projects/VSCode/.vscode/c_cpp_properties.json
vendored
23
projects/VSCode/.vscode/c_cpp_properties.json
vendored
@ -17,7 +17,28 @@
|
|||||||
"cStandard": "c11",
|
"cStandard": "c11",
|
||||||
"cppStandard": "c++14",
|
"cppStandard": "c++14",
|
||||||
"intelliSenseMode": "clang-x64"
|
"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
|
"version": 4
|
||||||
}
|
}
|
||||||
|
28
projects/VSCode/.vscode/launch.json
vendored
28
projects/VSCode/.vscode/launch.json
vendored
@ -5,7 +5,7 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Debug",
|
"name": "(WIN) Debug",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/game.exe",
|
"program": "${workspaceFolder}/game.exe",
|
||||||
@ -23,10 +23,10 @@
|
|||||||
"ignoreFailures": false
|
"ignoreFailures": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"preLaunchTask": "build debug"
|
"preLaunchTask": "(WIN) build debug"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Run",
|
"name": "(WIN) Run",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/game.exe",
|
"program": "${workspaceFolder}/game.exe",
|
||||||
@ -44,7 +44,25 @@
|
|||||||
"ignoreFailures": false
|
"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"
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
31
projects/VSCode/.vscode/tasks.json
vendored
31
projects/VSCode/.vscode/tasks.json
vendored
@ -4,30 +4,49 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "build release",
|
"label": "(WIN) build release",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "C:/raylib/mingw/bin/mingw32-make.exe",
|
"command": "C:/raylib/mingw/bin/mingw32-make.exe",
|
||||||
"args": [
|
"args": [
|
||||||
"PLATFORM=PLATFORM_DESKTOP",
|
"PLATFORM=PLATFORM_DESKTOP",
|
||||||
"RAYLIB_PATH=C:/raylib/raylib",
|
"RAYLIB_PATH=C:/raylib/raylib",
|
||||||
"PROJECT_NAME=game",
|
|
||||||
],
|
],
|
||||||
"group": "build"
|
"group": "build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "build debug",
|
"label": "(WIN) build debug",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "C:/raylib/mingw/bin/mingw32-make.exe",
|
"command": "C:/raylib/mingw/bin/mingw32-make.exe",
|
||||||
"args": [
|
"args": [
|
||||||
"PLATFORM=PLATFORM_DESKTOP",
|
"PLATFORM=PLATFORM_DESKTOP",
|
||||||
"RAYLIB_PATH=C:/raylib/raylib",
|
"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": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "(OSX) build release",
|
||||||
|
"type": "process",
|
||||||
|
"command": "make",
|
||||||
|
"args": [
|
||||||
|
"PLATFORM=PLATFORM_DESKTOP",
|
||||||
|
"RAYLIB_PATH=<path_to_raylib>",
|
||||||
|
],
|
||||||
|
"group": "build"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -254,7 +254,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|||||||
ifeq ($(PLATFORM_OS),OSX)
|
ifeq ($(PLATFORM_OS),OSX)
|
||||||
# Libraries for OSX 10.9 desktop compiling
|
# Libraries for OSX 10.9 desktop compiling
|
||||||
# NOTE: Required packages: libopenal-dev libegl1-mesa-dev
|
# 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
|
endif
|
||||||
ifeq ($(PLATFORM_OS),BSD)
|
ifeq ($(PLATFORM_OS),BSD)
|
||||||
# Libraries for FreeBSD, OpenBSD, NetBSD, DragonFly desktop compiling
|
# Libraries for FreeBSD, OpenBSD, NetBSD, DragonFly desktop compiling
|
||||||
|
Loading…
Reference in New Issue
Block a user