texturev.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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 { "linux or freebsd" }
  28. if _OPTIONS["with-wayland"] then
  29. links {
  30. "wayland-egl",
  31. }
  32. end
  33. configuration { "x32", "windows" }
  34. libdirs { "$(SDL2_DIR)/lib/x86" }
  35. configuration { "x64", "windows" }
  36. libdirs { "$(SDL2_DIR)/lib/x64" }
  37. configuration {}
  38. end
  39. if _OPTIONS["with-glfw"] then
  40. defines { "ENTRY_CONFIG_USE_GLFW=1" }
  41. links { "glfw3" }
  42. configuration { "linux or freebsd" }
  43. links {
  44. "Xrandr",
  45. "Xinerama",
  46. "Xi",
  47. "Xxf86vm",
  48. "Xcursor",
  49. }
  50. configuration { "osx*" }
  51. linkoptions {
  52. "-framework CoreVideo",
  53. "-framework IOKit",
  54. }
  55. configuration {}
  56. end
  57. configuration { "vs*" }
  58. linkoptions {
  59. "/ignore:4199", -- LNK4199: /DELAYLOAD:*.dll ignored; no imports found from *.dll
  60. }
  61. links { -- this is needed only for testing with GLES2/3 on Windows with VS2008
  62. "DelayImp",
  63. }
  64. configuration { "vs201*" }
  65. linkoptions { -- this is needed only for testing with GLES2/3 on Windows with VS201x
  66. "/DELAYLOAD:\"libEGL.dll\"",
  67. "/DELAYLOAD:\"libGLESv2.dll\"",
  68. }
  69. configuration { "mingw-*" }
  70. targetextension ".exe"
  71. configuration { "vs20* or mingw*" }
  72. links {
  73. "comdlg32",
  74. "gdi32",
  75. "psapi",
  76. }
  77. configuration { "winstore*" }
  78. removelinks {
  79. "DelayImp",
  80. "gdi32",
  81. "psapi"
  82. }
  83. links {
  84. "d3d11",
  85. "d3d12",
  86. "dxgi"
  87. }
  88. linkoptions {
  89. "/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
  90. }
  91. -- WinRT targets need their own output directories are build files stomp over each other
  92. targetdir (path.join(BGFX_BUILD_DIR, "arm_" .. _ACTION, "bin", _name))
  93. objdir (path.join(BGFX_BUILD_DIR, "arm_" .. _ACTION, "obj", _name))
  94. configuration { "mingw-clang" }
  95. kind "ConsoleApp"
  96. configuration { "android*" }
  97. kind "ConsoleApp"
  98. targetextension ".so"
  99. linkoptions {
  100. "-shared",
  101. }
  102. links {
  103. "EGL",
  104. "GLESv2",
  105. }
  106. configuration { "wasm*" }
  107. kind "ConsoleApp"
  108. configuration { "linux-* or freebsd" }
  109. links {
  110. "X11",
  111. "GL",
  112. "pthread",
  113. }
  114. configuration { "rpi" }
  115. links {
  116. "X11",
  117. "GLESv2",
  118. "EGL",
  119. "bcm_host",
  120. "vcos",
  121. "vchiq_arm",
  122. "pthread",
  123. }
  124. configuration { "osx*" }
  125. linkoptions {
  126. "-framework Cocoa",
  127. "-framework Metal",
  128. "-framework QuartzCore",
  129. "-framework OpenGL",
  130. }
  131. configuration { "ios*" }
  132. kind "ConsoleApp"
  133. linkoptions {
  134. "-framework CoreFoundation",
  135. "-framework Foundation",
  136. "-framework OpenGLES",
  137. "-framework UIKit",
  138. "-framework QuartzCore",
  139. }
  140. configuration { "xcode*", "ios" }
  141. kind "WindowedApp"
  142. configuration { "qnx*" }
  143. targetextension ""
  144. links {
  145. "EGL",
  146. "GLESv2",
  147. }
  148. configuration {}
  149. strip()