xmake.lua 577 B

123456789101112131415
  1. package("tinyjpeg")
  2. set_kind("libary", {headeronly = true})
  3. set_homepage("https://github.com/serge-rgb/TinyJPEG")
  4. set_description("Single header lib for JPEG encoding. Public domain. C99. stb style.")
  5. add_urls("https://github.com/serge-rgb/TinyJPEG.git")
  6. add_versions("2022.08.20", "e978b746714abad76e0f00264d2a154b52de8fc1")
  7. on_install(function (package)
  8. os.cp("tiny_jpeg.h", package:installdir("include"))
  9. end)
  10. on_test(function (package)
  11. assert(package:has_cfuncs("tje_encode_to_file", {includes = "tiny_jpeg.h"}))
  12. end)