xmake.lua 771 B

123456789101112131415161718
  1. package("lzav")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/avaneev/lzav")
  4. set_description("Fast In-Memory Data Compression Algorithm (safe, inline C/C++) 460+MB/s compress, 2500+MB/s decompress, ratio better than LZ4")
  5. set_license("MIT")
  6. add_urls("https://github.com/avaneev/lzav/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/avaneev/lzav.git")
  8. add_versions("2.14", "98a715dc744d86224c941421beddaf3fcc0defd62ccfad7082eedf83be42dbbd")
  9. on_install(function (package)
  10. os.cp("lzav.h", package:installdir("include"))
  11. end)
  12. on_test(function (package)
  13. assert(package:has_cfuncs("lzav_compress_default", {includes = "lzav.h", {configs = {languages = "c99"}}}))
  14. end)