From 47a8bc3e7f549f91d7c2ef8ee74b87945132d5d7 Mon Sep 17 00:00:00 2001 From: KaoruXun Date: Sun, 28 Jul 2024 13:24:30 +0800 Subject: [PATCH] cute_headers: add package (#4777) --- packages/c/cute_headers/xmake.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/c/cute_headers/xmake.lua diff --git a/packages/c/cute_headers/xmake.lua b/packages/c/cute_headers/xmake.lua new file mode 100644 index 000000000..a45cb40d6 --- /dev/null +++ b/packages/c/cute_headers/xmake.lua @@ -0,0 +1,17 @@ +package("cute_headers") + + set_kind("library", {headeronly = true}) + set_homepage("https://github.com/RandyGaul/cute_headers") + set_description("Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games") + set_license("Public Domain") + + add_urls("https://github.com/RandyGaul/cute_headers.git") + add_versions("2024.07.22", "cab36d7c6690e334720e705bd6cd3ce29b0b0844") + + on_install(function (package) + os.cp("*.h", package:installdir("include")) + end) + + on_test(function (package) + assert(package:has_cfuncs("cute_aseprite_load_from_file", {includes = "cute_aseprite.h", defines = "CUTE_ASEPRITE_IMPLEMENTATION"})) + end) \ No newline at end of file