bimg_encode.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --
  2. -- Copyright 2010-2022 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. removeflags {
  8. "FloatFast", -- astc-encoder doesn't work with it.
  9. }
  10. includedirs {
  11. path.join(BIMG_DIR, "include"),
  12. path.join(BIMG_DIR, "3rdparty"),
  13. path.join(BIMG_DIR, "3rdparty/astc-encoder/include"),
  14. path.join(BIMG_DIR, "3rdparty/iqa/include"),
  15. path.join(BIMG_DIR, "3rdparty/nvtt"),
  16. path.join(BIMG_DIR, "3rdparty/tinyexr/deps/miniz"),
  17. }
  18. files {
  19. path.join(BIMG_DIR, "include/**"),
  20. path.join(BIMG_DIR, "src/image_encode.*"),
  21. path.join(BIMG_DIR, "src/image_cubemap_filter.*"),
  22. path.join(BIMG_DIR, "3rdparty/libsquish/**.cpp"),
  23. path.join(BIMG_DIR, "3rdparty/libsquish/**.h"),
  24. path.join(BIMG_DIR, "3rdparty/edtaa3/**.cpp"),
  25. path.join(BIMG_DIR, "3rdparty/edtaa3/**.h"),
  26. path.join(BIMG_DIR, "3rdparty/etc1/**.cpp"),
  27. path.join(BIMG_DIR, "3rdparty/etc1/**.h"),
  28. path.join(BIMG_DIR, "3rdparty/etc2/**.cpp"),
  29. path.join(BIMG_DIR, "3rdparty/etc2/**.hpp"),
  30. path.join(BIMG_DIR, "3rdparty/nvtt/**.cpp"),
  31. path.join(BIMG_DIR, "3rdparty/nvtt/**.h"),
  32. path.join(BIMG_DIR, "3rdparty/pvrtc/**.cpp"),
  33. path.join(BIMG_DIR, "3rdparty/pvrtc/**.h"),
  34. path.join(BIMG_DIR, "3rdparty/tinyexr/**.h"),
  35. path.join(BIMG_DIR, "3rdparty/iqa/include/**.h"),
  36. path.join(BIMG_DIR, "3rdparty/iqa/source/**.c"),
  37. }
  38. using_bx()
  39. configuration { "linux-*" }
  40. buildoptions {
  41. "-fPIC",
  42. }
  43. configuration { "mingw* or linux* or osx*" }
  44. buildoptions {
  45. "-Wno-implicit-fallthrough",
  46. "-Wno-shadow",
  47. "-Wno-shift-negative-value",
  48. "-Wno-undef",
  49. }
  50. buildoptions_cpp {
  51. "-Wno-class-memaccess",
  52. "-Wno-deprecated-copy",
  53. }
  54. configuration {}