premake4.lua 730 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. project "OpenGL_Window"
  2. language "C++"
  3. kind "StaticLib"
  4. initOpenGL()
  5. initGlew()
  6. includedirs {
  7. "../../src",
  8. }
  9. --links {
  10. --}
  11. files {
  12. "*.cpp",
  13. "*.h",
  14. "OpenGLWindow/*.c",
  15. "OpenGLWindow/*.h",
  16. "OpenGLWindow/GL/*.h"
  17. }
  18. if not os.is("Windows") then
  19. excludes {
  20. "Win32OpenGLWindow.cpp",
  21. "Win32OpenGLWindow.h",
  22. "Win32Window.cpp",
  23. "Win32Window.h",
  24. }
  25. end
  26. if os.is("Linux") then
  27. initX11()
  28. end
  29. if not os.is("Linux") then
  30. excludes {
  31. "X11OpenGLWindow.cpp",
  32. "X11OpenGLWindows.h"
  33. }
  34. end
  35. if os.is("MacOSX") then
  36. files
  37. {
  38. "../OpenGLWindow/MacOpenGLWindow.h",
  39. "../OpenGLWindow/MacOpenGLWindow.mm",
  40. }
  41. end