xmake.lua 752 B

1234567891011121314151617181920
  1. package("obfuscate")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/adamyaxley/Obfuscate")
  4. set_description("Guaranteed compile-time string literal obfuscation header-only library for C++14")
  5. set_license("Unlicense")
  6. add_urls("https://github.com/adamyaxley/Obfuscate.git")
  7. add_versions("2024.02.11", "e65173d617983ce6b714c9ade5a6dbf3503c9a96")
  8. on_install(function (package)
  9. os.cp("obfuscate.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. void test() {
  14. AY_OBFUSCATE("Hello World");
  15. }
  16. ]]}, {configs = {languages = "cxx14"}, includes = "obfuscate.h"}))
  17. end)