bimg_decode.lua 922 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --
  2. -- Copyright 2010-2025 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. path.join(BIMG_DIR, "3rdparty/tinyexr/deps/miniz/miniz.*"),
  25. }
  26. if _OPTIONS["with-libheif"] then
  27. defines {
  28. "BIMG_DECODE_HEIF=1",
  29. }
  30. end
  31. using_bx()
  32. configuration { "linux-*" }
  33. buildoptions {
  34. "-fPIC",
  35. }
  36. configuration {}