texturec.lua 775 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --
  2. -- Copyright 2010-2025 Branimir Karadzic. All rights reserved.
  3. -- License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
  4. --
  5. project "texturec"
  6. uuid (os.uuid("texturec"))
  7. kind "ConsoleApp"
  8. includedirs {
  9. path.join(BIMG_DIR, "include"),
  10. path.join(BGFX_DIR, "include"),
  11. path.join(BIMG_DIR, "3rdparty/iqa/include"),
  12. }
  13. files {
  14. path.join(BIMG_DIR, "tools/texturec/texturec.cpp"),
  15. }
  16. links {
  17. "bimg_decode",
  18. "bimg_encode",
  19. "bimg",
  20. }
  21. if _OPTIONS["with-libheif"] then
  22. links {
  23. "heif",
  24. }
  25. configuration {}
  26. end
  27. using_bx()
  28. configuration { "mingw-*" }
  29. targetextension ".exe"
  30. links {
  31. "psapi",
  32. }
  33. configuration { "osx*" }
  34. links {
  35. "Cocoa.framework",
  36. }
  37. configuration { "vs20*" }
  38. links {
  39. "psapi",
  40. }
  41. configuration {}