mirror of
https://github.com/chemistry-software/game-premake.git
synced 2026-11-07 09:07:36 +00:00
Added macOS build support
This commit is contained in:
1 parent
9db5ecec79
commit
dd8735bfc3
3 files changed
+18
-1
No files matched your search
@@ -52,7 +52,14 @@ cd to the game folder and run
|
||||
./premake5 gmake2
|
||||
|
||||
This will generate a makefile for you.
|
||||
|
||||
## macOS users
|
||||
cd to the game folder and run
|
||||
|
||||
./premake5.osx gmake2
|
||||
|
||||
This will generate a makefile for you.
|
||||
|
||||
# Build your game
|
||||
Only do ONE of these options depending on your compiler and platform.
|
||||
## Windows Users
|
||||
@@ -66,7 +73,7 @@ Open your compiler terminal (w64devkit if you are using it), change to the game
|
||||
|
||||
This will build your game
|
||||
|
||||
## Linux users
|
||||
## Linux/macOS users
|
||||
Open your terminal, change to the game folder and type.
|
||||
|
||||
make
|
||||
|
||||
Executable
BIN
Binary file not shown.
@@ -36,6 +36,9 @@ function platform_defines()
|
||||
filter {"system:linux", "options:wayland"}
|
||||
defines{"_GLFW_WAYLAND"}
|
||||
|
||||
filter {"system:macosx"}
|
||||
disablewarnings { "deprecated-declarations" }
|
||||
|
||||
filter{}
|
||||
end
|
||||
|
||||
@@ -71,6 +74,9 @@ function link_raylib()
|
||||
filter "system:linux"
|
||||
links {"pthread", "GL", "m", "dl", "rt", "X11"}
|
||||
|
||||
filter "system:macosx"
|
||||
links {"OpenGL.framework", "Cocoa.framework", "IOKit.framework", "CoreFoundation.framework", "CoreAudio.framework", "CoreVideo.framework"}
|
||||
|
||||
filter{}
|
||||
end
|
||||
|
||||
@@ -109,3 +115,7 @@ project "raylib"
|
||||
["Source Files/*"] = { raylib_dir .. "/src/**.c"},
|
||||
}
|
||||
files {raylib_dir .. "/src/*.h", raylib_dir .. "/src/*.c"}
|
||||
filter { "system:macosx", "files:" .. raylib_dir .. "/src/rglfw.c" }
|
||||
compileas "Objective-C"
|
||||
|
||||
filter{}
|
||||
Reference in new issue
Block a user