bimg_encode.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --
  2. -- Copyright 2010-2021 Branimir Karadzic. All rights reserved.
  3. -- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
  4. --
  5. project "bimg_encode"
  6. kind "StaticLib"
  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, "include/**"),
  16. path.join(BIMG_DIR, "src/image_encode.*"),
  17. path.join(BIMG_DIR, "src/image_cubemap_filter.*"),
  18. path.join(BIMG_DIR, "3rdparty/libsquish/**.cpp"),
  19. path.join(BIMG_DIR, "3rdparty/libsquish/**.h"),
  20. path.join(BIMG_DIR, "3rdparty/edtaa3/**.cpp"),
  21. path.join(BIMG_DIR, "3rdparty/edtaa3/**.h"),
  22. path.join(BIMG_DIR, "3rdparty/etc1/**.cpp"),
  23. path.join(BIMG_DIR, "3rdparty/etc1/**.h"),
  24. path.join(BIMG_DIR, "3rdparty/etc2/**.cpp"),
  25. path.join(BIMG_DIR, "3rdparty/etc2/**.hpp"),
  26. path.join(BIMG_DIR, "3rdparty/nvtt/**.cpp"),
  27. path.join(BIMG_DIR, "3rdparty/nvtt/**.h"),
  28. path.join(BIMG_DIR, "3rdparty/pvrtc/**.cpp"),
  29. path.join(BIMG_DIR, "3rdparty/pvrtc/**.h"),
  30. path.join(BIMG_DIR, "3rdparty/astc/**.cpp"),
  31. path.join(BIMG_DIR, "3rdparty/astc/**.h"),
  32. path.join(BIMG_DIR, "3rdparty/tinyexr/**.h"),
  33. path.join(BIMG_DIR, "3rdparty/iqa/include/**.h"),
  34. path.join(BIMG_DIR, "3rdparty/iqa/source/**.c"),
  35. }
  36. configuration { "linux-*" }
  37. buildoptions {
  38. "-fPIC",
  39. }
  40. configuration {}