bimg_encode.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. includedirs {
  8. path.join(BIMG_DIR, "include"),
  9. path.join(BIMG_DIR, "3rdparty"),
  10. path.join(BIMG_DIR, "3rdparty/nvtt"),
  11. path.join(BIMG_DIR, "3rdparty/iqa/include"),
  12. path.join(BIMG_DIR, "3rdparty/tinyexr/deps/miniz"),
  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. using_bx()
  37. configuration { "linux-*" }
  38. buildoptions {
  39. "-fPIC",
  40. }
  41. configuration { "mingw* or linux* or osx*" }
  42. buildoptions {
  43. "-Wno-implicit-fallthrough",
  44. "-Wno-shadow",
  45. "-Wno-shift-negative-value",
  46. "-Wno-undef",
  47. }
  48. buildoptions_cpp {
  49. "-Wno-class-memaccess",
  50. "-Wno-deprecated-copy",
  51. }
  52. configuration {}