texturec.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --
  2. -- Copyright 2010-2017 Branimir Karadzic. All rights reserved.
  3. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
  4. --
  5. project "texturec"
  6. kind "ConsoleApp"
  7. includedirs {
  8. path.join(BX_DIR, "include"),
  9. path.join(BIMG_DIR, "include"),
  10. path.join(BIMG_DIR, "3rdparty"),
  11. path.join(BIMG_DIR, "3rdparty/nvtt"),
  12. path.join(BIMG_DIR, "3rdparty/iqa/include"),
  13. }
  14. files {
  15. path.join(BIMG_DIR, "3rdparty/libsquish/**.cpp"),
  16. path.join(BIMG_DIR, "3rdparty/libsquish/**.h"),
  17. path.join(BIMG_DIR, "3rdparty/edtaa3/**.cpp"),
  18. path.join(BIMG_DIR, "3rdparty/edtaa3/**.h"),
  19. path.join(BIMG_DIR, "3rdparty/etc1/**.cpp"),
  20. path.join(BIMG_DIR, "3rdparty/etc1/**.h"),
  21. path.join(BIMG_DIR, "3rdparty/etc2/**.cpp"),
  22. path.join(BIMG_DIR, "3rdparty/etc2/**.hpp"),
  23. path.join(BIMG_DIR, "3rdparty/nvtt/**.cpp"),
  24. path.join(BIMG_DIR, "3rdparty/nvtt/**.h"),
  25. path.join(BIMG_DIR, "3rdparty/pvrtc/**.cpp"),
  26. path.join(BIMG_DIR, "3rdparty/pvrtc/**.h"),
  27. path.join(BIMG_DIR, "3rdparty/tinyexr/**.h"),
  28. path.join(BIMG_DIR, "3rdparty/iqa/include/**.h"),
  29. path.join(BIMG_DIR, "3rdparty/iqa/source/**.c"),
  30. path.join(BIMG_DIR, "tools/texturec/**.cpp"),
  31. path.join(BIMG_DIR, "tools/texturec/**.h"),
  32. }
  33. links {
  34. "bimg_decode",
  35. "bimg_encode",
  36. "bimg",
  37. "bx",
  38. }
  39. configuration { "mingw-*" }
  40. targetextension ".exe"
  41. configuration { "osx" }
  42. links {
  43. "Cocoa.framework",
  44. }
  45. configuration { "vs20* or mingw*" }
  46. links {
  47. "psapi",
  48. }
  49. configuration {}