2015-04-16 16:55:32 +00:00
|
|
|
|
|
|
|
project "OpenGL_Window"
|
|
|
|
|
|
|
|
language "C++"
|
|
|
|
|
|
|
|
kind "StaticLib"
|
|
|
|
|
|
|
|
initOpenGL()
|
|
|
|
initGlew()
|
|
|
|
|
|
|
|
includedirs {
|
2017-06-22 15:48:18 +00:00
|
|
|
"../ThirdPartyLibs",
|
2015-04-16 16:55:32 +00:00
|
|
|
"../../src",
|
|
|
|
}
|
|
|
|
|
|
|
|
--links {
|
|
|
|
--}
|
|
|
|
|
|
|
|
files {
|
|
|
|
"*.cpp",
|
|
|
|
"*.h",
|
|
|
|
"OpenGLWindow/*.c",
|
|
|
|
"OpenGLWindow/*.h",
|
|
|
|
"OpenGLWindow/GL/*.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
if not os.is("Windows") then
|
|
|
|
excludes {
|
|
|
|
"Win32OpenGLWindow.cpp",
|
|
|
|
"Win32OpenGLWindow.h",
|
|
|
|
"Win32Window.cpp",
|
|
|
|
"Win32Window.h",
|
|
|
|
}
|
|
|
|
end
|
|
|
|
if os.is("Linux") then
|
|
|
|
initX11()
|
|
|
|
end
|
|
|
|
if not os.is("Linux") then
|
|
|
|
excludes {
|
|
|
|
"X11OpenGLWindow.cpp",
|
|
|
|
"X11OpenGLWindows.h"
|
|
|
|
}
|
|
|
|
end
|
2017-04-03 06:00:06 +00:00
|
|
|
if not os.is("MacoSX") then
|
|
|
|
excludes {
|
|
|
|
"MacOpenGLWindow.cpp"
|
|
|
|
}
|
|
|
|
end
|
2015-04-16 16:55:32 +00:00
|
|
|
if os.is("MacOSX") then
|
|
|
|
files
|
|
|
|
{
|
2017-04-03 06:00:06 +00:00
|
|
|
"MacOpenGLWindow.h",
|
|
|
|
"MacOpenGLWindow.cpp",
|
|
|
|
"MacOpenGLWindowObjC.m",
|
|
|
|
"MacOpenGLWindowObjC.h",
|
2015-04-16 16:55:32 +00:00
|
|
|
}
|
|
|
|
end
|