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.

183 lines
5.1KB

  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", "example/perf.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", "glfw3", "GLEW" }
  24. defines { "NANOVG_GLEW" }
  25. configuration { "macosx" }
  26. links { "glfw3" }
  27. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  28. configuration "Debug"
  29. defines { "DEBUG" }
  30. flags { "Symbols", "ExtraWarnings"}
  31. configuration "Release"
  32. defines { "NDEBUG" }
  33. flags { "Optimize", "ExtraWarnings"}
  34. project "example_gl3"
  35. kind "ConsoleApp"
  36. language "C"
  37. files { "example/example_gl3.c", "example/demo.c", "example/perf.c" }
  38. includedirs { "src", "example" }
  39. targetdir("build")
  40. links { "nanovg" }
  41. configuration { "linux" }
  42. links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3", "GLEW" }
  43. defines { "NANOVG_GLEW" }
  44. configuration { "windows" }
  45. links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
  46. defines { "NANOVG_GLEW" }
  47. configuration { "macosx" }
  48. links { "glfw3" }
  49. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  50. configuration "Debug"
  51. defines { "DEBUG" }
  52. flags { "Symbols", "ExtraWarnings"}
  53. configuration "Release"
  54. defines { "NDEBUG" }
  55. flags { "Optimize", "ExtraWarnings"}
  56. project "example_gl2_msaa"
  57. kind "ConsoleApp"
  58. language "C"
  59. defines { "DEMO_MSAA" }
  60. files { "example/example_gl2.c", "example/demo.c", "example/perf.c" }
  61. includedirs { "src", "example" }
  62. targetdir("build")
  63. links { "nanovg" }
  64. configuration { "linux" }
  65. links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3", "GLEW" }
  66. defines { "NANOVG_GLEW" }
  67. configuration { "windows" }
  68. links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
  69. defines { "NANOVG_GLEW" }
  70. configuration { "macosx" }
  71. links { "glfw3" }
  72. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  73. configuration "Debug"
  74. defines { "DEBUG" }
  75. flags { "Symbols", "ExtraWarnings"}
  76. configuration "Release"
  77. defines { "NDEBUG" }
  78. flags { "Optimize", "ExtraWarnings"}
  79. project "example_gl3_msaa"
  80. kind "ConsoleApp"
  81. language "C"
  82. defines { "DEMO_MSAA" }
  83. files { "example/example_gl3.c", "example/demo.c", "example/perf.c" }
  84. includedirs { "src", "example" }
  85. targetdir("build")
  86. links { "nanovg" }
  87. configuration { "linux" }
  88. links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3", "GLEW" }
  89. defines { "NANOVG_GLEW" }
  90. configuration { "windows" }
  91. links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
  92. defines { "NANOVG_GLEW" }
  93. configuration { "macosx" }
  94. links { "glfw3" }
  95. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  96. configuration "Debug"
  97. defines { "DEBUG" }
  98. flags { "Symbols", "ExtraWarnings"}
  99. configuration "Release"
  100. defines { "NDEBUG" }
  101. flags { "Optimize", "ExtraWarnings"}
  102. project "example_gles2"
  103. kind "ConsoleApp"
  104. language "C"
  105. files { "example/example_gles2.c", "example/demo.c", "example/perf.c" }
  106. includedirs { "src", "example" }
  107. targetdir("build")
  108. links { "nanovg" }
  109. configuration { "linux" }
  110. links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3" }
  111. configuration { "windows" }
  112. links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
  113. defines { "NANOVG_GLEW" }
  114. configuration { "macosx" }
  115. links { "glfw3" }
  116. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  117. configuration "Debug"
  118. defines { "DEBUG" }
  119. flags { "Symbols", "ExtraWarnings"}
  120. configuration "Release"
  121. defines { "NDEBUG" }
  122. flags { "Optimize", "ExtraWarnings"}
  123. project "example_gles3"
  124. kind "ConsoleApp"
  125. language "C"
  126. files { "example/example_gles3.c", "example/demo.c", "example/perf.c" }
  127. includedirs { "src", "example" }
  128. targetdir("build")
  129. links { "nanovg" }
  130. configuration { "linux" }
  131. links { "X11","Xrandr", "rt", "GL", "GLU", "pthread", "m", "glfw3" }
  132. configuration { "windows" }
  133. links { "glu32","opengl32", "gdi32", "winmm", "user32", "glfw3", "GLEW" }
  134. defines { "NANOVG_GLEW" }
  135. configuration { "macosx" }
  136. links { "glfw3" }
  137. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  138. configuration "Debug"
  139. defines { "DEBUG" }
  140. flags { "Symbols", "ExtraWarnings"}
  141. configuration "Release"
  142. defines { "NDEBUG" }
  143. flags { "Optimize", "ExtraWarnings"}