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.

247 lines
6.9KB

  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. defines { "_CRT_SECURE_NO_WARNINGS" } --,"FONS_USE_FREETYPE" } Uncomment to compile with FreeType support
  13. configuration "Debug"
  14. defines { "DEBUG" }
  15. flags { "Symbols", "ExtraWarnings"}
  16. configuration "Release"
  17. defines { "NDEBUG" }
  18. flags { "Optimize", "ExtraWarnings"}
  19. project "example_gl2"
  20. kind "ConsoleApp"
  21. language "C"
  22. files { "example/example_gl2.c", "example/demo.c", "example/perf.c" }
  23. includedirs { "src", "example" }
  24. targetdir("build")
  25. links { "nanovg" }
  26. configuration { "linux" }
  27. linkoptions { "`pkg-config --libs glfw3`" }
  28. links { "GL", "GLU", "m", "GLEW" }
  29. defines { "NANOVG_GLEW" }
  30. configuration { "windows" }
  31. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  32. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  33. configuration { "macosx" }
  34. links { "glfw3" }
  35. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  36. configuration "Debug"
  37. defines { "DEBUG" }
  38. flags { "Symbols", "ExtraWarnings"}
  39. configuration "Release"
  40. defines { "NDEBUG" }
  41. flags { "Optimize", "ExtraWarnings"}
  42. project "example_gl3"
  43. kind "ConsoleApp"
  44. language "C"
  45. files { "example/example_gl3.c", "example/demo.c", "example/perf.c" }
  46. includedirs { "src", "example" }
  47. targetdir("build")
  48. links { "nanovg" }
  49. configuration { "linux" }
  50. linkoptions { "`pkg-config --libs glfw3`" }
  51. links { "GL", "GLU", "m", "GLEW" }
  52. defines { "NANOVG_GLEW" }
  53. configuration { "windows" }
  54. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  55. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  56. configuration { "macosx" }
  57. links { "glfw3" }
  58. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  59. configuration "Debug"
  60. defines { "DEBUG" }
  61. flags { "Symbols", "ExtraWarnings"}
  62. configuration "Release"
  63. defines { "NDEBUG" }
  64. flags { "Optimize", "ExtraWarnings"}
  65. project "example_d3d11"
  66. kind "ConsoleApp"
  67. language "C"
  68. files { "example/example_d3d11.c", "example/demo.c", "example/perf.c" }
  69. includedirs { "src", "example" }
  70. targetdir("build")
  71. links { "nanovg" }
  72. configuration { "windows" }
  73. links { "d3d11", "gdi32", "winmm", "user32", "kernel32" }
  74. defines { "NANOVG_D3D11", "_CRT_SECURE_NO_WARNINGS" }
  75. configuration "Debug"
  76. defines { "DEBUG" }
  77. flags { "Symbols", "ExtraWarnings"}
  78. configuration "Release"
  79. defines { "NDEBUG" }
  80. flags { "Optimize", "ExtraWarnings"}
  81. project "example_gl2_msaa"
  82. kind "ConsoleApp"
  83. language "C"
  84. defines { "DEMO_MSAA" }
  85. files { "example/example_gl2.c", "example/demo.c", "example/perf.c" }
  86. includedirs { "src", "example" }
  87. targetdir("build")
  88. links { "nanovg" }
  89. configuration { "linux" }
  90. linkoptions { "`pkg-config --libs glfw3`" }
  91. links { "GL", "GLU", "m", "GLEW" }
  92. defines { "NANOVG_GLEW" }
  93. configuration { "windows" }
  94. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  95. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  96. configuration { "macosx" }
  97. links { "glfw3" }
  98. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  99. configuration "Debug"
  100. defines { "DEBUG" }
  101. flags { "Symbols", "ExtraWarnings"}
  102. configuration "Release"
  103. defines { "NDEBUG" }
  104. flags { "Optimize", "ExtraWarnings"}
  105. project "example_gl3_msaa"
  106. kind "ConsoleApp"
  107. language "C"
  108. defines { "DEMO_MSAA" }
  109. files { "example/example_gl3.c", "example/demo.c", "example/perf.c" }
  110. includedirs { "src", "example" }
  111. targetdir("build")
  112. links { "nanovg" }
  113. configuration { "linux" }
  114. linkoptions { "`pkg-config --libs glfw3`" }
  115. links { "GL", "GLU", "m", "GLEW" }
  116. defines { "NANOVG_GLEW" }
  117. configuration { "windows" }
  118. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  119. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  120. configuration { "macosx" }
  121. links { "glfw3" }
  122. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  123. configuration "Debug"
  124. defines { "DEBUG" }
  125. flags { "Symbols", "ExtraWarnings"}
  126. configuration "Release"
  127. defines { "NDEBUG" }
  128. flags { "Optimize", "ExtraWarnings"}
  129. project "example_fbo"
  130. kind "ConsoleApp"
  131. language "C"
  132. files { "example/example_fbo.c", "example/perf.c" }
  133. includedirs { "src", "example" }
  134. targetdir("build")
  135. links { "nanovg" }
  136. configuration { "linux" }
  137. linkoptions { "`pkg-config --libs glfw3`" }
  138. links { "GL", "GLU", "m", "GLEW" }
  139. configuration { "windows" }
  140. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  141. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  142. configuration { "macosx" }
  143. links { "glfw3" }
  144. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  145. configuration "Debug"
  146. defines { "DEBUG" }
  147. flags { "Symbols", "ExtraWarnings"}
  148. configuration "Release"
  149. defines { "NDEBUG" }
  150. flags { "Optimize", "ExtraWarnings"}
  151. project "example_gles2"
  152. kind "ConsoleApp"
  153. language "C"
  154. files { "example/example_gles2.c", "example/demo.c", "example/perf.c" }
  155. includedirs { "src", "example" }
  156. targetdir("build")
  157. links { "nanovg" }
  158. configuration { "linux" }
  159. linkoptions { "`pkg-config --libs glfw3`" }
  160. links { "GL", "GLU", "m", "GLEW" }
  161. configuration { "windows" }
  162. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  163. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  164. configuration { "macosx" }
  165. links { "glfw3" }
  166. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  167. configuration "Debug"
  168. defines { "DEBUG" }
  169. flags { "Symbols", "ExtraWarnings"}
  170. configuration "Release"
  171. defines { "NDEBUG" }
  172. flags { "Optimize", "ExtraWarnings"}
  173. project "example_gles3"
  174. kind "ConsoleApp"
  175. language "C"
  176. files { "example/example_gles3.c", "example/demo.c", "example/perf.c" }
  177. includedirs { "src", "example" }
  178. targetdir("build")
  179. links { "nanovg" }
  180. configuration { "linux" }
  181. linkoptions { "`pkg-config --libs glfw3`" }
  182. links { "GL", "GLU", "m", "GLEW" }
  183. configuration { "windows" }
  184. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  185. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  186. configuration { "macosx" }
  187. links { "glfw3" }
  188. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
  189. configuration "Debug"
  190. defines { "DEBUG" }
  191. flags { "Symbols", "ExtraWarnings"}
  192. configuration "Release"
  193. defines { "NDEBUG" }
  194. flags { "Optimize", "ExtraWarnings"}