bimg_encode.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 { "mingw* or linux* or osx*" }
  41. buildoptions {
  42. "-Wno-implicit-fallthrough",
  43. "-Wno-shadow",
  44. "-Wno-shift-negative-value",
  45. "-Wno-undef",
  46. }
  47. buildoptions_cpp {
  48. "-Wno-class-memaccess",
  49. "-Wno-deprecated-copy",
  50. }
  51. configuration {}