Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions packages/i/il2cpp_resolver/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package("il2cpp_resolver")
set_kind("library", {headeronly = true})
set_homepage("https://sneakyevil.gitbook.io/il2cpp-resolver/")
set_description("A run-time API resolver for IL2CPP Unity.")
set_license("Unlicense")

add_urls("https://github.com/sneakyevil/IL2CPP_Resolver.git")
add_versions("2024.07.30", "251051e4f2f6b2b6f3a8169d65f3739317e1de08")

on_install("windows", function (package)
os.cp("*.hpp", package:installdir("include"))
os.cp("API/**.hpp", package:installdir("include/API"), {rootdir = "API"})
os.cp("Unity/**.hpp", package:installdir("include/Unity"), {rootdir = "Unity"})
os.cp("Utils/**.hpp", package:installdir("include/Utils"), {rootdir = "Utils"})
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <IL2CPP_Resolver.hpp>
void test() {
auto init = IL2CPP::Initialize();
}
]]}, {configs = {languages = "c++11"}}))
end)
Loading