2
0

xmake.lua 617 B

12345678910111213141516
  1. package("clib")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/aheck/clib")
  4. set_description("Header-only library for C99 that implements the most important classes from GLib: GList, GHashTable and GString.")
  5. set_license("MIT")
  6. add_urls("https://github.com/aheck/clib.git")
  7. add_versions("2022.12.25", "fea69de62f0c2e01a46d02208073e2e976a5a237")
  8. on_install(function (package)
  9. os.cp("src/*.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cfuncs("g_string_insert", {includes = "gstring.h"}))
  13. end)