xmake.lua 786 B

12345678910111213141516171819202122
  1. package("obfusheader.h")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/ac3ss0r/obfusheader.h")
  4. set_description("Obfusheader.h is a portable header file for C++14 compile-time obfuscation.")
  5. set_license("Apache-2.0")
  6. add_urls("https://github.com/ac3ss0r/obfusheader.h.git")
  7. add_versions("2024.08.19", "cbd87b0edd2695764d08110cf5a192b193218aef")
  8. on_install(function (package)
  9. os.vcp("include", package:installdir())
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <cstddef>
  14. #include <obfusheader.h>
  15. void test() {
  16. const char* str = OBF("test");
  17. }
  18. ]]}, {configs = {languages = "c++14"}}))
  19. end)