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.

177 lines
4.7KB

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