bimg_decode.lua 860 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --
  2. -- Copyright 2010-2024 Branimir Karadzic. All rights reserved.
  3. -- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
  4. --
  5. if _OPTIONS["with-libheif"] then
  6. print('\n')
  7. print('\tWARNING!')
  8. print('')
  9. print('\t*** LICENSE INCOMPATIBILITY WARNING!')
  10. print('\t*** LibHeif is licensed under LGPL! See:')
  11. print('\t*** https://github.com/strukturag/libheif/blob/master/COPYING')
  12. print('\n')
  13. end
  14. project "bimg_decode"
  15. kind "StaticLib"
  16. includedirs {
  17. path.join(BIMG_DIR, "include"),
  18. path.join(BIMG_DIR, "3rdparty"),
  19. path.join(BIMG_DIR, "3rdparty/tinyexr/deps/miniz"),
  20. }
  21. files {
  22. path.join(BIMG_DIR, "include/**"),
  23. path.join(BIMG_DIR, "src/image_decode.*"),
  24. }
  25. if _OPTIONS["with-libheif"] then
  26. defines {
  27. "BIMG_DECODE_HEIF=1",
  28. }
  29. end
  30. using_bx()
  31. configuration { "linux-*" }
  32. buildoptions {
  33. "-fPIC",
  34. }
  35. configuration {}