2
0

xmake.lua 1.2 KB

1234567891011121314151617181920212223242526272829
  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("2023.04.22", "b8c9ac36360021daca7b0fd006a092b605b19e29")
  8. add_patches("2023.04.22", "patches/2023.04.22/picojson.patch", "11e23fe37c7e3b8ec174642542567c9d6bae3657892f5d7ac8203cbb89c9112c")
  9. add_patches("2023.04.22", "patches/2023.04.22/fix_cxx23.patch", "da63a9b134ba78cb17b099486b83d2bc846c9786590265eb4e31f88a9911aeab")
  10. add_deps("libcurl", "picojson")
  11. on_install("!bsd and !wasm", function (package)
  12. os.rm("include/webdriverxx/picojson.h")
  13. os.cp("include/webdriverxx.h", package:installdir("include"))
  14. os.cp("include/webdriverxx", package:installdir("include"))
  15. end)
  16. on_test(function (package)
  17. assert(package:check_cxxsnippets({test = [[
  18. #include <webdriverxx.h>
  19. using namespace webdriverxx;
  20. void test() {
  21. WebDriver chrome = Start(Chrome());
  22. }
  23. ]]}, {configs = {languages = "c++17"}}))
  24. end)