xmake.lua 732 B

1234567891011121314151617181920
  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/Veil.git")
  7. add_versions("2023.07.19", "56464db15ebede014195ba82e2dc46d302c83798")
  8. on_install("windows", function (package)
  9. package:add("syslinks", "ntdll")
  10. io.replace("Veil.h", "#pragma comment(lib, \"ntdll.lib\")", "", {plain = true})
  11. os.cp("Veil", package:installdir("include"))
  12. os.cp("veil.h", package:installdir("include"))
  13. end)
  14. on_test(function (package)
  15. assert(package:has_cxxfuncs("NtReadFile", {includes = "veil.h"}))
  16. end)