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.

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