bimg_encode.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. 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/tinyexr/**.h"),
  34. path.join(BIMG_DIR, "3rdparty/iqa/include/**.h"),
  35. path.join(BIMG_DIR, "3rdparty/iqa/source/**.c"),
  36. }
  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 {}