geometryv.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. project ("geometryv")
  2. uuid (os.uuid("geometryv") )
  3. kind "ConsoleApp"
  4. configuration {}
  5. includedirs {
  6. path.join(BIMG_DIR, "include"),
  7. path.join(BGFX_DIR, "include"),
  8. path.join(BGFX_DIR, "3rdparty"),
  9. path.join(BGFX_DIR, "examples/common"),
  10. path.join(MODULE_DIR, "include"),
  11. path.join(MODULE_DIR, "3rdparty"),
  12. }
  13. files {
  14. path.join(MODULE_DIR, "tools/geometryv/**"),
  15. }
  16. links {
  17. "example-common",
  18. "bimg_decode",
  19. "bimg",
  20. "bgfx",
  21. }
  22. using_bx()
  23. if _OPTIONS["with-sdl"] then
  24. defines { "ENTRY_CONFIG_USE_SDL=1" }
  25. links { "SDL2" }
  26. configuration { "linux or freebsd" }
  27. if _OPTIONS["with-wayland"] then
  28. links {
  29. "wayland-egl",
  30. }
  31. end
  32. configuration { "x32", "windows" }
  33. libdirs { "$(SDL2_DIR)/lib/x86" }
  34. configuration { "x64", "windows" }
  35. libdirs { "$(SDL2_DIR)/lib/x64" }
  36. configuration {}
  37. end
  38. if _OPTIONS["with-glfw"] then
  39. defines { "ENTRY_CONFIG_USE_GLFW=1" }
  40. links { "glfw3" }
  41. configuration { "linux or freebsd" }
  42. links {
  43. "Xrandr",
  44. "Xinerama",
  45. "Xi",
  46. "Xxf86vm",
  47. "Xcursor",
  48. }
  49. configuration { "osx*" }
  50. linkoptions {
  51. "-framework CoreVideo",
  52. "-framework IOKit",
  53. }
  54. configuration {}
  55. end
  56. configuration { "vs*" }
  57. linkoptions {
  58. "/ignore:4199", -- LNK4199: /DELAYLOAD:*.dll ignored; no imports found from *.dll
  59. }
  60. links { -- this is needed only for testing with GLES2/3 on Windows with VS2008
  61. "DelayImp",
  62. }
  63. configuration { "vs201*" }
  64. linkoptions { -- this is needed only for testing with GLES2/3 on Windows with VS201x
  65. "/DELAYLOAD:\"libEGL.dll\"",
  66. "/DELAYLOAD:\"libGLESv2.dll\"",
  67. }
  68. configuration { "mingw-*" }
  69. targetextension ".exe"
  70. configuration { "vs20* or mingw*" }
  71. links {
  72. "comdlg32",
  73. "gdi32",
  74. "psapi",
  75. }
  76. configuration { "winstore*" }
  77. removelinks {
  78. "DelayImp",
  79. "gdi32",
  80. "psapi"
  81. }
  82. links {
  83. "d3d11",
  84. "d3d12",
  85. "dxgi"
  86. }
  87. linkoptions {
  88. "/ignore:4264" -- LNK4264: archiving object file compiled with /ZW into a static library; note that when authoring Windows Runtime types it is not recommended to link with a static library that contains Windows Runtime metadata
  89. }
  90. -- WinRT targets need their own output directories are build files stomp over each other
  91. targetdir (path.join(BGFX_BUILD_DIR, "arm_" .. _ACTION, "bin", _name))
  92. objdir (path.join(BGFX_BUILD_DIR, "arm_" .. _ACTION, "obj", _name))
  93. configuration { "mingw-clang" }
  94. kind "ConsoleApp"
  95. configuration { "android*" }
  96. kind "ConsoleApp"
  97. targetextension ".so"
  98. linkoptions {
  99. "-shared",
  100. }
  101. links {
  102. "EGL",
  103. "GLESv2",
  104. }
  105. configuration { "wasm*" }
  106. kind "ConsoleApp"
  107. configuration { "linux-* or freebsd" }
  108. links {
  109. "X11",
  110. "GL",
  111. "pthread",
  112. }
  113. configuration { "rpi" }
  114. links {
  115. "X11",
  116. "GLESv2",
  117. "EGL",
  118. "bcm_host",
  119. "vcos",
  120. "vchiq_arm",
  121. "pthread",
  122. }
  123. configuration { "osx*" }
  124. linkoptions {
  125. "-framework Cocoa",
  126. "-framework Metal",
  127. "-framework QuartzCore",
  128. "-framework OpenGL",
  129. }
  130. configuration { "ios*" }
  131. kind "ConsoleApp"
  132. linkoptions {
  133. "-framework CoreFoundation",
  134. "-framework Foundation",
  135. "-framework OpenGLES",
  136. "-framework UIKit",
  137. "-framework QuartzCore",
  138. }
  139. configuration { "xcode4", "ios" }
  140. kind "WindowedApp"
  141. configuration { "qnx*" }
  142. targetextension ""
  143. links {
  144. "EGL",
  145. "GLESv2",
  146. }
  147. configuration {}
  148. strip()