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",
|
|
|
|
}
|
2018-02-10 02:46:26 +00:00
|
|
|
|
|
|
|
if os.is("Linux") then
|
|
|
|
buildoptions{"-fPIC"}
|
|
|
|
end
|
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
--links {
|
|
|
|
--}
|
|
|
|
|
|
|
|
files {
|
|
|
|
"*.cpp",
|
|
|
|
"*.h",
|
|
|
|
"OpenGLWindow/*.c",
|
|
|
|
"OpenGLWindow/*.h",
|
2018-09-11 06:18:34 +00:00
|
|
|
"OpenGLWindow/GL/*.h",
|
|
|
|
"../ThirdPartyLibs/stb_image/stb_image_write.cpp",
|
2015-04-16 16:55:32 +00:00
|
|
|
}
|
|
|
|
|
2018-09-11 06:18:34 +00:00
|
|
|
|
|
|
|
|
2015-04-16 16:55:32 +00:00
|
|
|
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
|