bimg_encode.lua 1.7 KB

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