texturev.lua 3.5 KB

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