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.

197 lines
5.3KB

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