diff options
author | Andrew Udvare <audvare@gmail.com> | 2020-09-30 02:39:18 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-10-08 16:51:43 +0200 |
commit | d590fdddf6ba938bdc2f59e2c0d2e3fc9713f67a (patch) | |
tree | 7c7cc37b3475757a852f153350bf196f3041fd4a /premake5.lua | |
parent | Merge pull request #748 from theR4K/miamiUpstream (diff) | |
download | re3-d590fdddf6ba938bdc2f59e2c0d2e3fc9713f67a.tar re3-d590fdddf6ba938bdc2f59e2c0d2e3fc9713f67a.tar.gz re3-d590fdddf6ba938bdc2f59e2c0d2e3fc9713f67a.tar.bz2 re3-d590fdddf6ba938bdc2f59e2c0d2e3fc9713f67a.tar.lz re3-d590fdddf6ba938bdc2f59e2c0d2e3fc9713f67a.tar.xz re3-d590fdddf6ba938bdc2f59e2c0d2e3fc9713f67a.tar.zst re3-d590fdddf6ba938bdc2f59e2c0d2e3fc9713f67a.zip |
Diffstat (limited to '')
-rw-r--r-- | premake5.lua | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua index b61a9c4c..b38c8ae1 100644 --- a/premake5.lua +++ b/premake5.lua @@ -84,6 +84,12 @@ workspace "reVC" platforms { "bsd-amd64-librw_gl3_glfw-oal" } + + filter { "system:macosx" } + platforms { + "macosx-amd64-librw_gl3_glfw-oal", + "macosx-arm64-librw_gl3_glfw-oal", + } filter "configurations:Debug" defines { "DEBUG" } @@ -100,6 +106,9 @@ workspace "reVC" filter { "platforms:bsd*" } system "bsd" + + filter { "platforms:macosx*" } + system "macosx" filter { "platforms:*x86*" } architecture "x86" @@ -109,6 +118,13 @@ workspace "reVC" filter { "platforms:*arm*" } architecture "ARM" + + filter { "platforms:macosx-arm64-*" } + buildoptions { "-target", "arm64-apple-macos11", "-std=gnu++14" } + + filter { "platforms:macosx-amd64-*" } + buildoptions { "-target", "x86_64-apple-macos10.12", "-std=gnu++14" } + filter { "platforms:*librw_d3d9*" } defines { "RW_D3D9" } @@ -162,7 +178,14 @@ project "librw" filter "platforms:bsd*" includedirs { "/usr/local/include" } libdirs { "/usr/local/lib" } - + + filter "platforms:macosx*" + -- Support MacPorts and Homebrew + includedirs { "/opt/local/include" } + includedirs {"/usr/local/include" } + libdirs { "/opt/local/lib" } + libdirs { "/usr/local/lib" } + filter "platforms:*RW34*" flags { "ExcludeFromBuild" } filter {} @@ -277,6 +300,11 @@ project "reVC" filter "platforms:bsd*oal" links { "openal", "mpg123", "sndfile", "pthread" } + + filter "platforms:macosx*oal" + links { "openal", "mpg123", "sndfile", "pthread" } + includedirs { "/usr/local/opt/openal-soft/include" } + libdirs { "/usr/local/opt/openal-soft/lib" } if _OPTIONS["with-opus"] then filter {} @@ -330,3 +358,11 @@ project "reVC" links { "GL", "GLEW", "glfw", "sysinfo" } includedirs { "/usr/local/include" } libdirs { "/usr/local/lib" } + + filter "platforms:macosx*gl3_glfw*" + links { "GLEW", "glfw" } + linkoptions { "-framework OpenGL" } + includedirs { "/opt/local/include" } + includedirs { "/usr/local/include" } + libdirs { "/opt/local/lib" } + libdirs { "/usr/local/lib" } |