From cac0b1372e18ab401f56f224b48c1dd9d95c7a3d Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 29 Jan 2023 12:58:49 +0800 Subject: [PATCH] add olive.c (#1761) * add olive.c * fix windows * fix windows --- packages/o/olive.c/xmake.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/o/olive.c/xmake.lua diff --git a/packages/o/olive.c/xmake.lua b/packages/o/olive.c/xmake.lua new file mode 100644 index 000000000..63ceeb51c --- /dev/null +++ b/packages/o/olive.c/xmake.lua @@ -0,0 +1,17 @@ +package("olive.c") + set_kind("library", {headeronly = true}) + set_homepage("https://tsoding.github.io/olive.c/") + set_description("Simple 2D Graphics Library for C") + set_license("MIT") + + add_urls("https://github.com/tsoding/olive.c.git") + add_versions("2022.12.14", "95af28b808a243098fe7866e8035b24c3fe28ea1") + + on_install(function (package) + os.cp("olive.c", package:installdir("include")) + end) + + on_test(function (package) + assert(package:has_cfuncs("olivec_fill", {includes = "olive.c", + configs = {defines = "OLIVEC_IMPLEMENTATION"}})) + end)