xmake.lua 702 B

12345678910111213141516171819
  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. add_versions("2024.03.18", "bf7b41c2ff3f24a2031193b62aa76d35e8842b5a")
  10. on_install(function (package)
  11. os.cp("qoi.h", package:installdir("include"))
  12. end)
  13. on_test(function (package)
  14. assert(package:has_cfuncs("qoi_encode", {includes = "qoi.h"}))
  15. end)