From 662444692c8f2758fca6b32d1405e8e875a6fe2a Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Sat, 28 Sep 2024 08:58:14 -0500 Subject: [PATCH 1/3] nifly: add package --- packages/n/nifly/xmake.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 packages/n/nifly/xmake.lua diff --git a/packages/n/nifly/xmake.lua b/packages/n/nifly/xmake.lua new file mode 100644 index 00000000000..9f941ae09a3 --- /dev/null +++ b/packages/n/nifly/xmake.lua @@ -0,0 +1,24 @@ +package("nifly") + set_homepage("https://github.com/ousnius/nifly") + set_description("C++ NIF library for the Gamebryo/NetImmerse File Format") + set_license("GPL-3.0") + + add_urls("https://github.com/ousnius/nifly.git") + add_versions("2024.09.28", "bfe6567fe87ce63d55f16a67c64fdbf9ca799ebf") + + add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true}) + + add_deps("half", "miniball") + + on_install(function (package) + import("package.tools.xmake").install(package) + end) + + on_test(function (package) + assert(package:check_cxxsnippets({test = [[ + void test() { + nifly::NifFile nif; + nif.Load("non_existant.nif"); + } + ]]}, {configs = {languages = "c++17"}, includes = "nifly/NifFile.hpp"})) + end) From cbe2de87b3bb19282f6e992f50a275541beca416 Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Sat, 28 Sep 2024 09:23:20 -0500 Subject: [PATCH 2/3] nifly: limit platforms --- packages/n/nifly/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/n/nifly/xmake.lua b/packages/n/nifly/xmake.lua index 9f941ae09a3..6fdf68498f2 100644 --- a/packages/n/nifly/xmake.lua +++ b/packages/n/nifly/xmake.lua @@ -10,7 +10,7 @@ package("nifly") add_deps("half", "miniball") - on_install(function (package) + on_install("windows", "linux", "bsd", "macos", "android", "iphoneos", function (package) import("package.tools.xmake").install(package) end) From 7553d41442d0e89ff21220dbe8453f0cc4122394 Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Sat, 28 Sep 2024 11:26:01 -0500 Subject: [PATCH 3/3] nifly: bump commit --- packages/n/nifly/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/n/nifly/xmake.lua b/packages/n/nifly/xmake.lua index 6fdf68498f2..796261602a7 100644 --- a/packages/n/nifly/xmake.lua +++ b/packages/n/nifly/xmake.lua @@ -4,7 +4,7 @@ package("nifly") set_license("GPL-3.0") add_urls("https://github.com/ousnius/nifly.git") - add_versions("2024.09.28", "bfe6567fe87ce63d55f16a67c64fdbf9ca799ebf") + add_versions("2024.09.28", "a6bbbeb92be1fc97d106759a231a96e962e8cfe2") add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})