xmake.lua 614 B

123456789101112131415161718
  1. package("libsv")
  2. set_homepage("https://github.com/uael/sv")
  3. set_description("libsv - Public domain cross-platform semantic versioning in c99")
  4. add_urls("https://github.com/uael/sv.git")
  5. add_versions("2021.11.27", "10ee6a807466a5e61309201caea360a113ad3862")
  6. on_install(function (package)
  7. local configs = {}
  8. if package:config("shared") then
  9. configs.kind = "shared"
  10. end
  11. import("package.tools.xmake").install(package, configs)
  12. end)
  13. on_test(function (package)
  14. assert(package:has_cfuncs("semver(0,0)", {includes = "semver.h"}))
  15. end)