xmake.lua 834 B

1234567891011121314151617181920212223
  1. package("veil")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/MiroKaku/Veil")
  4. set_description("Windows internal undocumented API.")
  5. set_license("MIT")
  6. add_urls("https://github.com/MiroKaku/Musa.Veil/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/MiroKaku/Musa.Veil.git")
  8. add_versions("v1.4.1", "bf58b3d8162bb3df98d98f91ebd3b472288886e0e5e8fae058d21f85e6cc8ef3")
  9. add_syslinks("ntdll")
  10. on_install("windows", function (package)
  11. io.replace("Veil.h", "#pragma comment(lib, \"ntdll.lib\")", "", {plain = true})
  12. os.cp("Veil", package:installdir("include"))
  13. os.cp("veil.h", package:installdir("include"))
  14. end)
  15. on_test(function (package)
  16. assert(package:has_cxxfuncs("NtReadFile", {includes = "veil.h"}))
  17. end)