Skip to content

Commit

Permalink
nifly: add package (#5368)
Browse files Browse the repository at this point in the history
* nifly: add package

* nifly: limit platforms

* nifly: bump commit
  • Loading branch information
qudix authored Sep 29, 2024
1 parent dbf3267 commit fda8caa
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/n/nifly/xmake.lua
Original file line number Diff line number Diff line change
@@ -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", "a6bbbeb92be1fc97d106759a231a96e962e8cfe2")

add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})

add_deps("half", "miniball")

on_install("windows", "linux", "bsd", "macos", "android", "iphoneos", 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)

0 comments on commit fda8caa

Please sign in to comment.