xmake.lua 627 B

123456789101112131415161718
  1. package("qoi")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://qoiformat.org/")
  4. set_description("The Quite OK Image Format for fast, lossless image compression")
  5. set_license("MIT")
  6. add_urls("https://github.com/phoboslab/qoi.git")
  7. add_versions("2021.12.22", "44fe081388c60e7618f49486865b992e08ce4de4")
  8. add_versions("2022.11.17", "660839cb2c51d6b5f62221f8ef98662fd40e42d2")
  9. on_install(function (package)
  10. os.cp("qoi.h", package:installdir("include"))
  11. end)
  12. on_test(function (package)
  13. assert(package:has_cfuncs("qoi_encode", {includes = "qoi.h"}))
  14. end)