xmake.lua 626 B

12345678910111213141516171819
  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_urls("https://github.com/zserge/jsmn/archive/refs/tags/$(version).tar.gz",
  6. "https://github.com/zserge/jsmn.git")
  7. add_versions("v1.1.0", "5f0913a10657fe7ec8d5794ccf00a01000e3e1f2f1e1f143c34a0f7b47edcb38")
  8. on_install(function (package)
  9. os.cp("jsmn.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cfuncs("jsmn_parse", {includes = "jsmn.h"}))
  13. end)