diff options
| author | Stefan Boberg <[email protected]> | 2025-10-24 19:32:01 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-24 19:32:01 +0200 |
| commit | 4cba4eb3f122c7a1a49b629b1c0656d7f817f001 (patch) | |
| tree | e184821073167f6e81a75193efca91013d7b359b /thirdparty/xmake.lua | |
| parent | fixed progress bar when scanning changed local files (#608) (diff) | |
| download | zen-4cba4eb3f122c7a1a49b629b1c0656d7f817f001.tar.xz zen-4cba4eb3f122c7a1a49b629b1c0656d7f817f001.zip | |
move cpr in-tree (#605)
* added cpr 1.10.5 in-tree to allow updates to vcpkg without breaking the build
* added asio 1.29.0 in-tree to remove one more vcpkg dependency
* bumped vcpkg to 2024.06.15 to address failure to build due to use of deprecated binaries in vcpkg (404 error: `https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.1.0-1-any.pkg.tar.zst` during build)
Diffstat (limited to 'thirdparty/xmake.lua')
| -rw-r--r-- | thirdparty/xmake.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/thirdparty/xmake.lua b/thirdparty/xmake.lua index 2f48d355c..f1201c02e 100644 --- a/thirdparty/xmake.lua +++ b/thirdparty/xmake.lua @@ -55,3 +55,27 @@ target('spdlog') set_group('thirdparty') add_headerfiles("spdlog/*.h") add_includedirs("spdlog/include", {public=true}) + +target('cpr') + set_kind('static') + set_group('thirdparty') + set_languages("cxx20") + add_files("cpr/cpr/*.cpp") + add_headerfiles("cpr/include/*.h") + add_includedirs("cpr/include", {public=true}) + if is_os("windows") then + add_cxxflags("/wd4668") + else + add_cxxflags("-Wno-undef") + end + add_packages("vcpkg::curl", + "vcpkg::openssl", -- required by curl + "vcpkg::zlib" -- required by curl + ) + +target('asio') + set_kind('headeronly') + set_group('thirdparty') + add_defines("ASIO_STANDLONE", "ASIO_HEADER_ONLY", {public=true}) + add_headerfiles("asio/asio/include/**.hpp") + add_includedirs("asio/asio/include", {public=true}) |