bimg.lua 711 B

1234567891011121314151617181920212223242526272829303132333435
  1. --
  2. -- Copyright 2010-2018 Branimir Karadzic. All rights reserved.
  3. -- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
  4. --
  5. function filesexist(_srcPath, _dstPath, _files)
  6. for _, file in ipairs(_files) do
  7. file = path.getrelative(_srcPath, file)
  8. local filePath = path.join(_dstPath, file)
  9. if not os.isfile(filePath) then return false end
  10. end
  11. return true
  12. end
  13. project "bimg"
  14. kind "StaticLib"
  15. includedirs {
  16. path.join(BX_DIR, "include"),
  17. path.join(BIMG_DIR, "include"),
  18. }
  19. files {
  20. path.join(BIMG_DIR, "include/**"),
  21. path.join(BIMG_DIR, "src/image.*"),
  22. path.join(BIMG_DIR, "src/image_gnf.cpp"),
  23. }
  24. configuration { "linux-*" }
  25. buildoptions {
  26. "-fPIC",
  27. }
  28. configuration {}