Manually integrated @gtbass OSX changes.

This commit is contained in:
bkaradzic
2012-12-09 14:46:27 -08:00
parent 93f87ac56b
commit 5dc22d90e1
4 changed files with 16 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
.build/
.debug/
.svn/
tags
.DS_Store

View File

@@ -42,8 +42,8 @@ namespace bx
bool wait(int32_t _msecs = -1)
{
#if BX_PLATFORM_NACL
BX_CHECK(-1 == _msecs, "NaCl doesn't support sem_timedwait at this moment.");
#if BX_PLATFORM_NACL || BX_PLATFORM_OSX
BX_CHECK(-1 == _msecs, "NaCl and OSX don't support sem_timedwait at this moment.");
return 0 == sem_wait(&m_handle);
#else
if (0 > _msecs)

View File

@@ -0,0 +1 @@
#include <tr1/unordered_map>

View File

@@ -283,5 +283,16 @@ function toolchain(_buildDir, _libDir)
"_XBOX",
}
configuration { "macosx" }
buildoptions {
"-U__STRICT_ANSI__",
"-Wunused-value",
"-msse2",
}
includedirs { bxDir .. "include/compat/osx" }
targetdir (_buildDir .. "osx" .. "/bin")
objdir (_buildDir .. "osx" .. "/obj")
libdirs { _libDir .. "lib/osx" }
configuration {} -- reset configuration
end