bullet3/build3/findOpenGLGlewGlut.lua

52 lines
1.1 KiB
Lua
Raw Normal View History

function initOpenGL()
configuration {}
configuration {"Windows"}
links {"opengl32","glu32"}
configuration {"MacOSX"}
links { "OpenGL.framework"}
configuration {"not Windows", "not MacOSX"}
links {"GL"}
configuration{}
end
function initGlut()
configuration {}
2013-03-13 06:52:31 +00:00
if os.is("Windows") then
configuration {"Windows"}
includedirs {
2013-03-13 06:52:31 +00:00
projectRootDir .. "btgui/OpenGLWindow/Glut"
}
2013-03-13 06:52:31 +00:00
libdirs { projectRootDir .. "btgui/OpenGLWindow/Glut"}
configuration {"Windows", "x32"}
links {"glut32"}
configuration {"Windows", "x64"}
links {"glut64"}
end
configuration {"MacOSX"}
links { "Glut.framework" }
configuration {"Linux"}
links {"glut","GLU"}
configuration{}
end
function initGlew()
configuration {}
if os.is("Windows") then
configuration {"Windows"}
defines { "GLEW_STATIC"}
includedirs {
2013-03-13 06:52:31 +00:00
projectRootDir .. "btgui/OpenGLWindow/GlewWindows"
}
2013-03-13 06:52:31 +00:00
files { projectRootDir .. "btgui/OpenGLWindow/GlewWindows/glew.c"}
end
if os.is("Linux") then
links{"GLEW"}
end
configuration{}
end