xmake.lua 1017 B

123456789101112131415161718192021222324
  1. package("il2cpp_resolver")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://sneakyevil.gitbook.io/il2cpp-resolver/")
  4. set_description("A run-time API resolver for IL2CPP Unity.")
  5. set_license("Unlicense")
  6. add_urls("https://github.com/sneakyevil/IL2CPP_Resolver.git")
  7. add_versions("2024.07.30", "251051e4f2f6b2b6f3a8169d65f3739317e1de08")
  8. on_install("windows", function (package)
  9. os.cp("*.hpp", package:installdir("include"))
  10. os.cp("API/**.hpp", package:installdir("include/API"), {rootdir = "API"})
  11. os.cp("Unity/**.hpp", package:installdir("include/Unity"), {rootdir = "Unity"})
  12. os.cp("Utils/**.hpp", package:installdir("include/Utils"), {rootdir = "Utils"})
  13. end)
  14. on_test(function (package)
  15. assert(package:check_cxxsnippets({test = [[
  16. #include <IL2CPP_Resolver.hpp>
  17. void test() {
  18. auto init = IL2CPP::Initialize();
  19. }
  20. ]]}, {configs = {languages = "c++11"}}))
  21. end)