Skip to content
Snippets Groups Projects
Commit 89bf7f27 authored by DarkGod's avatar DarkGod
Browse files

builds correctly on osx10.7 yay .. viva la apple ...

parent d69086a1
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -49,7 +49,8 @@ project "TEngine"
if _OPTIONS.relpath == "32" then defines{"TE4_RELPATH32"} end
if _OPTIONS.relpath == "64" then defines{"TE4_RELPATH64"} end
links { "m", "stdc++" }
links { "m" }
cppconfig()
if _OPTIONS.no_rwops_size then defines{"NO_RWOPS_SIZE"} end
......@@ -545,7 +546,9 @@ project "te4-wfc"
kind "StaticLib"
language "C++"
targetname "te4-wfc"
buildoptions { "-O3", "-std=c++11" }
buildoptions { "-O3" }
buildoptions { "-std=c++11" }
cppconfig()
files { "../src/wfc/*.cpp", }
......@@ -569,7 +572,7 @@ project "te4-web"
targetname "te4-web"
buildoptions { "-O3", "-std=c++11" }
links { "stdc++" }
cppconfig("web")
if _OPTIONS.relpath=="32" then linkoptions{"-Wl,-rpath -Wl,\\\$\$ORIGIN "} end
if _OPTIONS.relpath=="64" then linkoptions{"-Wl,-rpath -Wl,\\\$\$ORIGIN "} end
......@@ -598,8 +601,9 @@ project "cef3spawn"
language "C++"
targetname "cef3spawn"
buildoptions { "-O3", "-std=c++11" }
links { "stdc++" }
buildoptions { "-O3" }
buildoptions { "-std=c++11" }
cppconfig("web")
includedirs {"../src/web-cef3/", }
files {
......
......@@ -71,12 +71,25 @@ configuration "windows"
}
end
function cppconfig(what)
links { "stdc++" }
end
configuration "macosx"
premake.gcc.cc = 'clang'
premake.gcc.cxx = 'clang++'
buildoptions { "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk", "-mmacosx-version-min=10.7", "-stdlib=libc++" }
linkoptions { "-stdlib=libc++" }
buildoptions { "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk", "-mmacosx-version-min=10.7" }
function cppconfig(what)
if what == "web" then
buildoptions { "-stdlib=libstdc++" }
linkoptions { "-stdlib=libstdc++" }
else
buildoptions { "-stdlib=libc++" }
linkoptions { "-stdlib=libc++" }
end
links { "stdc++" }
end
includedirs {
"/Library/Frameworks/SDL2.framework/Headers",
"/Library/Frameworks/SDL2_image.framework/Headers",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment