From 901d18e0b729dc5d2f9336ef5ea73557aa69f614 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 4 Jan 2023 21:36:23 +0800 Subject: [PATCH] add clib (#1721) --- packages/c/clib/xmake.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/c/clib/xmake.lua diff --git a/packages/c/clib/xmake.lua b/packages/c/clib/xmake.lua new file mode 100644 index 000000000..55a1615ea --- /dev/null +++ b/packages/c/clib/xmake.lua @@ -0,0 +1,16 @@ +package("clib") + set_kind("library", {headeronly = true}) + set_homepage("https://github.com/aheck/clib") + set_description("Header-only library for C99 that implements the most important classes from GLib: GList, GHashTable and GString.") + set_license("MIT") + + add_urls("https://github.com/aheck/clib.git") + add_versions("2022.12.25", "fea69de62f0c2e01a46d02208073e2e976a5a237") + + on_install(function (package) + os.cp("src/*.h", package:installdir("include")) + end) + + on_test(function (package) + assert(package:has_cfuncs("g_string_insert", {includes = "gstring.h"})) + end)