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.

227 lines
6.6KB

  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", "-framework Carbon" }
  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", "-framework Carbon" }
  59. configuration "Debug"
  60. defines { "DEBUG" }
  61. flags { "Symbols", "ExtraWarnings"}
  62. configuration "Release"
  63. defines { "NDEBUG" }
  64. flags { "Optimize", "ExtraWarnings"}
  65. project "example_gl2_msaa"
  66. kind "ConsoleApp"
  67. language "C"
  68. defines { "DEMO_MSAA" }
  69. files { "example/example_gl2.c", "example/demo.c", "example/perf.c" }
  70. includedirs { "src", "example" }
  71. targetdir("build")
  72. links { "nanovg" }
  73. configuration { "linux" }
  74. linkoptions { "`pkg-config --libs glfw3`" }
  75. links { "GL", "GLU", "m", "GLEW" }
  76. defines { "NANOVG_GLEW" }
  77. configuration { "windows" }
  78. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  79. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  80. configuration { "macosx" }
  81. links { "glfw3" }
  82. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
  83. configuration "Debug"
  84. defines { "DEBUG" }
  85. flags { "Symbols", "ExtraWarnings"}
  86. configuration "Release"
  87. defines { "NDEBUG" }
  88. flags { "Optimize", "ExtraWarnings"}
  89. project "example_gl3_msaa"
  90. kind "ConsoleApp"
  91. language "C"
  92. defines { "DEMO_MSAA" }
  93. files { "example/example_gl3.c", "example/demo.c", "example/perf.c" }
  94. includedirs { "src", "example" }
  95. targetdir("build")
  96. links { "nanovg" }
  97. configuration { "linux" }
  98. linkoptions { "`pkg-config --libs glfw3`" }
  99. links { "GL", "GLU", "m", "GLEW" }
  100. defines { "NANOVG_GLEW" }
  101. configuration { "windows" }
  102. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  103. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  104. configuration { "macosx" }
  105. links { "glfw3" }
  106. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
  107. configuration "Debug"
  108. defines { "DEBUG" }
  109. flags { "Symbols", "ExtraWarnings"}
  110. configuration "Release"
  111. defines { "NDEBUG" }
  112. flags { "Optimize", "ExtraWarnings"}
  113. project "example_fbo"
  114. kind "ConsoleApp"
  115. language "C"
  116. files { "example/example_fbo.c", "example/perf.c" }
  117. includedirs { "src", "example" }
  118. targetdir("build")
  119. links { "nanovg" }
  120. configuration { "linux" }
  121. linkoptions { "`pkg-config --libs glfw3`" }
  122. links { "GL", "GLU", "m", "GLEW" }
  123. configuration { "windows" }
  124. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  125. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  126. configuration { "macosx" }
  127. links { "glfw3" }
  128. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
  129. configuration "Debug"
  130. defines { "DEBUG" }
  131. flags { "Symbols", "ExtraWarnings"}
  132. configuration "Release"
  133. defines { "NDEBUG" }
  134. flags { "Optimize", "ExtraWarnings"}
  135. project "example_gles2"
  136. kind "ConsoleApp"
  137. language "C"
  138. files { "example/example_gles2.c", "example/demo.c", "example/perf.c" }
  139. includedirs { "src", "example" }
  140. targetdir("build")
  141. links { "nanovg" }
  142. configuration { "linux" }
  143. linkoptions { "`pkg-config --libs glfw3`" }
  144. links { "GL", "GLU", "m", "GLEW" }
  145. configuration { "windows" }
  146. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  147. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  148. configuration { "macosx" }
  149. links { "glfw3" }
  150. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
  151. configuration "Debug"
  152. defines { "DEBUG" }
  153. flags { "Symbols", "ExtraWarnings"}
  154. configuration "Release"
  155. defines { "NDEBUG" }
  156. flags { "Optimize", "ExtraWarnings"}
  157. project "example_gles3"
  158. kind "ConsoleApp"
  159. language "C"
  160. files { "example/example_gles3.c", "example/demo.c", "example/perf.c" }
  161. includedirs { "src", "example" }
  162. targetdir("build")
  163. links { "nanovg" }
  164. configuration { "linux" }
  165. linkoptions { "`pkg-config --libs glfw3`" }
  166. links { "GL", "GLU", "m", "GLEW" }
  167. configuration { "windows" }
  168. links { "glfw3", "gdi32", "winmm", "user32", "GLEW", "glu32","opengl32", "kernel32" }
  169. defines { "NANOVG_GLEW", "_CRT_SECURE_NO_WARNINGS" }
  170. configuration { "macosx" }
  171. links { "glfw3" }
  172. linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo", "-framework Carbon" }
  173. configuration "Debug"
  174. defines { "DEBUG" }
  175. flags { "Symbols", "ExtraWarnings"}
  176. configuration "Release"
  177. defines { "NDEBUG" }
  178. flags { "Optimize", "ExtraWarnings"}