bimg_encode.lua 1.8 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. 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/astc/**.cpp"),
  32. path.join(BIMG_DIR, "3rdparty/astc/**.h"),
  33. path.join(BIMG_DIR, "3rdparty/astc-encoder/source/**.cpp"),
  34. path.join(BIMG_DIR, "3rdparty/astc-encoder/source/**.h"),
  35. path.join(BIMG_DIR, "3rdparty/tinyexr/**.h"),
  36. path.join(BIMG_DIR, "3rdparty/iqa/include/**.h"),
  37. path.join(BIMG_DIR, "3rdparty/iqa/source/**.c"),
  38. }
  39. using_bx()
  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 {}