xmake.lua 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. package("webdriverxx")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://GermanAizek.github.io/webdriverxx")
  4. set_description("A C++ client library for Selenium Webdriver")
  5. set_license("MIT")
  6. add_urls("https://github.com/GermanAizek/webdriverxx.git", {submodules = false})
  7. add_versions("2025.03.20", "6ed56fa0f5d65507762c5945155984661d21247b")
  8. add_versions("2023.04.22", "b8c9ac36360021daca7b0fd006a092b605b19e29")
  9. add_patches("2025.03.20", "patches/2025.03.20/picojson.diff", "d7314048f11611ce38715093f7bc73251a75dfb11e74e1a715526a5d8ce8b72d")
  10. add_patches("2023.04.22", "patches/2023.04.22/picojson.patch", "11e23fe37c7e3b8ec174642542567c9d6bae3657892f5d7ac8203cbb89c9112c")
  11. add_patches("2023.04.22", "patches/2023.04.22/fix_cxx23.patch", "da63a9b134ba78cb17b099486b83d2bc846c9786590265eb4e31f88a9911aeab")
  12. add_deps("libcurl", "picojson")
  13. on_install("!bsd and !wasm", function (package)
  14. os.rm("include/webdriverxx/picojson.h")
  15. os.cp("include/webdriverxx.h", package:installdir("include"))
  16. os.cp("include/webdriverxx", package:installdir("include"))
  17. end)
  18. on_test(function (package)
  19. assert(package:check_cxxsnippets({test = [[
  20. #include <webdriverxx.h>
  21. using namespace webdriverxx;
  22. void test() {
  23. WebDriver chrome = Start(Chrome());
  24. }
  25. ]]}, {configs = {languages = "c++17"}}))
  26. end)