xmake.lua 913 B

123456789101112131415161718192021222324
  1. package("nifly")
  2. set_homepage("https://github.com/ousnius/nifly")
  3. set_description("C++ NIF library for the Gamebryo/NetImmerse File Format")
  4. set_license("GPL-3.0")
  5. add_urls("https://github.com/ousnius/nifly.git")
  6. add_versions("2024.09.28", "a6bbbeb92be1fc97d106759a231a96e962e8cfe2")
  7. add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
  8. add_deps("half", "miniball")
  9. on_install("windows", "linux", "bsd", "macos", "android", "iphoneos", function (package)
  10. import("package.tools.xmake").install(package)
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. void test() {
  15. nifly::NifFile nif;
  16. nif.Load("non_existant.nif");
  17. }
  18. ]]}, {configs = {languages = "c++17"}, includes = "nifly/NifFile.hpp"}))
  19. end)