xmake.lua 649 B

1234567891011121314151617181920
  1. package("jsmn")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/zserge/jsmn")
  4. set_description("Jsmn is a world fastest JSON parser/tokenizer")
  5. set_license("MIT")
  6. set_urls("https://github.com/zserge/jsmn/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/zserge/jsmn.git")
  8. add_versions("v1.1.0", "5f0913a10657fe7ec8d5794ccf00a01000e3e1f2f1e1f143c34a0f7b47edcb38")
  9. on_install(function (package)
  10. os.cp("jsmn.h", package:installdir("include"))
  11. end)
  12. on_test(function (package)
  13. assert(package:has_cfuncs("jsmn_parse", {includes = "jsmn.h"}))
  14. end)