bimg_encode.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/astc-encoder/source/**.cpp"),
  35. path.join(BIMG_DIR, "3rdparty/astc-encoder/source/**.h"),
  36. path.join(BIMG_DIR, "3rdparty/tinyexr/**.h"),
  37. path.join(BIMG_DIR, "3rdparty/iqa/include/**.h"),
  38. path.join(BIMG_DIR, "3rdparty/iqa/source/**.c"),
  39. }
  40. using_bx()
  41. configuration { "linux-*" }
  42. buildoptions {
  43. "-fPIC",
  44. }
  45. configuration { "mingw* or linux* or osx*" }
  46. buildoptions {
  47. "-Wno-implicit-fallthrough",
  48. "-Wno-shadow",
  49. "-Wno-shift-negative-value",
  50. "-Wno-undef",
  51. }
  52. buildoptions_cpp {
  53. "-Wno-class-memaccess",
  54. "-Wno-deprecated-copy",
  55. }
  56. configuration {}