You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.5KB

  1. local action = _ACTION or ""
  2. solution "nanovg"
  3. location ( "build" )
  4. configurations { "Debug", "Release" }
  5. platforms {"native", "x64", "x32"}
  6. project "nanovg"
  7. language "C"
  8. kind "StaticLib"
  9. includedirs { "src" }
  10. files { "src/*.c" }
  11. targetdir("build")
  12. project "example_gl2"
  13. kind "ConsoleApp"
  14. language "C"
  15. files { "example/example_gl2.c", "example/demo.c" }
  16. includedirs { "src", "example" }
  17. targetdir("build")
  18. links { "nanovg" }
  19. configuration { "linux" }
  20. links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3", "GLEW" }
  21. defines { "NANOVG_GLEW" }
  22. configuration { "windows" }
  23. links { "glu32","opengl32", "gdi32", "winmm", "user32" }
  24. configuration { "macosx" }
  25. links { "glfw3" }
  26. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  27. configuration "Debug"
  28. defines { "DEBUG" }
  29. flags { "Symbols", "ExtraWarnings"}
  30. configuration "Release"
  31. defines { "NDEBUG" }
  32. flags { "Optimize", "ExtraWarnings"}
  33. project "example_gl3"
  34. kind "ConsoleApp"
  35. language "C"
  36. files { "example/example_gl3.c", "example/demo.c" }
  37. includedirs { "src", "example" }
  38. targetdir("build")
  39. links { "nanovg" }
  40. configuration { "linux" }
  41. links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3", "GLEW" }
  42. defines { "NANOVG_GLEW" }
  43. configuration { "windows" }
  44. links { "glu32","opengl32", "gdi32", "winmm", "user32" }
  45. configuration { "macosx" }
  46. links { "glfw3" }
  47. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  48. configuration "Debug"
  49. defines { "DEBUG" }
  50. flags { "Symbols", "ExtraWarnings"}
  51. configuration "Release"
  52. defines { "NDEBUG" }
  53. flags { "Optimize", "ExtraWarnings"}
  54. project "example_gles2"
  55. kind "ConsoleApp"
  56. language "C"
  57. files { "example/example_gles2.c", "example/demo.c" }
  58. includedirs { "src", "example" }
  59. targetdir("build")
  60. links { "nanovg" }
  61. configuration { "linux" }
  62. links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3", "GLEW" }
  63. defines { "NANOVG_GLEW" }
  64. configuration { "windows" }
  65. links { "glu32","opengl32", "gdi32", "winmm", "user32" }
  66. configuration { "macosx" }
  67. links { "glfw3" }
  68. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  69. configuration "Debug"
  70. defines { "DEBUG" }
  71. flags { "Symbols", "ExtraWarnings"}
  72. configuration "Release"
  73. defines { "NDEBUG" }
  74. flags { "Optimize", "ExtraWarnings"}