From 2ffecdcda2051afd7af77e670900c6e868d3249f Mon Sep 17 00:00:00 2001 From: star9029 Date: Mon, 26 Jun 2023 20:12:46 +0800 Subject: [PATCH] nuklear: add package (#2241) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --------- Co-authored-by: Jérôme Leclercq --- packages/n/nuklear/xmake.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 packages/n/nuklear/xmake.lua diff --git a/packages/n/nuklear/xmake.lua b/packages/n/nuklear/xmake.lua new file mode 100644 index 000000000..a332a8588 --- /dev/null +++ b/packages/n/nuklear/xmake.lua @@ -0,0 +1,24 @@ +package("nuklear") + + set_kind("library", {headeronly = true}) + set_homepage("https://immediate-mode-ui.github.io/Nuklear/doc/index.html") + set_description("A single-header ANSI C immediate mode cross-platform GUI library") + set_license("MIT") + + add_urls("https://github.com/Immediate-Mode-UI/Nuklear/archive/refs/tags/$(version).tar.gz", + "https://github.com/Immediate-Mode-UI/Nuklear.git") + + add_versions("4.10.5", "6c80cbd0612447421fa02ad92f4207da2cd019a14d94885dfccac1aadc57926a") + + on_load("mingw", function (package) + -- see https://github.com/Immediate-Mode-UI/Nuklear/issues/320 + package:add("defines", "NK_INCLUDE_FIXED_TYPES") + end) + + on_install(function (package) + os.cp("nuklear.h", package:installdir("include")) + end) + + on_test(function (package) + assert(package:has_cincludes("nuklear.h")) + end)