fix mac build

This commit is contained in:
Erwin Coumans
2013-03-13 14:02:49 -07:00
parent d8a3732306
commit 3ad76286e6
6 changed files with 29 additions and 6 deletions

View File

@@ -59,3 +59,11 @@
"../OpenGLWindow/X11OpenGLWindow.cpp"
}
end
if os.is("MacOSX") then
links{"Cocoa.framework"}
print("hello!")
files{
"../OpenGLWindow/MacOpenGLWindow.mm",
"../OpenGLWindow/MacOpenGLWindow.h",
}
end

View File

@@ -47,15 +47,14 @@
"../OpenGLWindow/X11OpenGLWindow.h",
"../OpenGLWindow/X11OpenGLWindow.cpp"
}
end
if os.is("MacOSX") then
links {"BulletFileLoader"}
if os.is("MacOSX") then
links { "Cocoa.framework" }
files{
"../OpenGLWindow/MacOpenGLWindow.h",
"../OpenGLWindow/MacOpenGLWindow.mm",
}
end
end

View File

@@ -62,3 +62,12 @@
"X11OpenGLWindows.h"
}
end
if os.is("MacOSX") then
links{"Cocoa.framework"}
files
{
"../OpenGLWindow/MacOpenGLWindow.h",
"../OpenGLWindow/MacOpenGLWindow.mm",
}
end

0
build/premake4_osx Normal file → Executable file
View File

View File

@@ -6,11 +6,11 @@
#endif
#ifdef __APPLE__
#include "MacOpenGLWindow.h"
#include "OpenGLWindow/MacOpenGLWindow.h"
#elif defined _WIN32
#include "OpenGLWindow/Win32OpenGLWindow.h"
#elif defined __linux
#include "../rendering/rendertest/X11OpenGLWindow.h"
#include "OpenGLWindow/X11OpenGLWindow.h"
#endif
#include "OpenGLWindow/GLPrimitiveRenderer.h"

View File

@@ -84,10 +84,17 @@ function createProject(vendor)
"../../btgui/OpenGLWindow/X11OpenGLWindows.h"
}
end
if os.is("MacOSX") then
links {"Cocoa.framework"}
files {
"../../btgui/OpenGLWindow/MacOpenGLWindow.h",
"../../btgui/OpenGLWindow/MacOpenGLWindow.mm",
}
end
end
end
createProject("Apple")
createProject("AMD")
createProject("Intel")
createProject("NVIDIA")
createProject("NVIDIA")