Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/xmake-io/xmake-repo into dev
Browse files Browse the repository at this point in the history
fasiondog committed Jul 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents a5c165d + 9975679 commit 42a7c91
Showing 238 changed files with 4,038 additions and 603 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ name: Deploy
on:
push:
branches:
- master
- dev

jobs:
build:
4 changes: 1 addition & 3 deletions .github/workflows/fedora.yml
Original file line number Diff line number Diff line change
@@ -41,6 +41,4 @@ jobs:
env:
XMAKE_ROOT: y
run: |
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -j1
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -j4
17 changes: 17 additions & 0 deletions packages/1/11zip/port/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
add_rules("mode.debug", "mode.release")

add_requires("minizip-ng")
add_packages("minizip-ng")

target("11zip")
set_kind("$(kind)")
set_languages("c++17")
add_files("src/*.cpp")
remove_files("src/elzip_fs_fallback.cpp")
add_includedirs("include", "include/elzip")

add_headerfiles("include/(**.hpp)")

if is_plat("windows") and is_kind("shared") then
add_rules("utils.symbols.export_all", {export_classes = true})
end
28 changes: 28 additions & 0 deletions packages/1/11zip/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package("11zip")
set_homepage("https://github.com/Sygmei/11Zip")
set_description("Dead simple zipping / unzipping C++ Lib")
set_license("MIT")

add_urls("https://github.com/Sygmei/11Zip/archive/516e161d5c96aa8f2603fb30b10b7770a87332c2.tar.gz",
"https://github.com/Sygmei/11Zip.git")

add_versions("2023.05.10", "9e4052571c73ecd8e328fa9e8399f606604baa3373103d2e7dddb75019330ee0")

add_includedirs("include", "include/elzip")

add_deps("minizip-ng")

on_install("macosx", "android", "linux", "windows", "mingw", function (package)
io.replace("src/unzipper.cpp", "unzLocateFile(zipFile_, filename.data(), nullptr)", "unzLocateFile(zipFile_, filename.data(), 0)", {plain = true})
os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
import("package.tools.xmake").install(package)
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
std::string zipname;
elz::extractZip(zipname);
}
]]}, {configs = {languages = "c++17"}, includes = "elzip/elzip.hpp"}))
end)
1 change: 1 addition & 0 deletions packages/a/actor-framework/xmake.lua
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ package("actor-framework")
add_urls("https://github.com/actor-framework/actor-framework/archive/refs/tags/$(version).tar.gz",
"https://github.com/actor-framework/actor-framework.git")

add_versions("1.0.0", "602018239d23a1805d35ebda704fd5c969a0693fc513fcf7459063b628459e5b")
add_versions("0.19.6", "48dc4c4abf5ab5a7c6f84b9259cc8be1b02c601d31893647ab44e143cdc4b6d5")
add_versions("0.19.2", "aa3fcc494424e0e20b177125458a6a6ed39c751a3d3d5193054e88bdf8a146d2")

25 changes: 13 additions & 12 deletions packages/a/ada/xmake.lua
Original file line number Diff line number Diff line change
@@ -3,26 +3,27 @@ package("ada")
set_description("WHATWG-compliant and fast URL parser written in modern C++")
set_license("Apache-2.0")

set_urls("https://github.com/ada-url/ada/archive/refs/tags/v$(version).tar.gz",
set_urls("https://github.com/ada-url/ada/archive/refs/tags/$(version).tar.gz",
"https://github.com/ada-url/ada.git")

add_versions("2.8.0", "83b77fb53d1a9eea22b1484472cea0215c50478c9ea2b4b44b0ba3b52e07c139")
add_versions("2.7.8", "8de067b7cb3da1808bf5439279aee6048d761ba246bf8a854c2af73b16b41c75")
add_versions("2.7.7", "7116d86a80b79886efbc9d946d3919801815060ae62daf78de68c508552af554")
add_versions("2.7.6", "e2822783913c50b9f5c0f20b5259130a7bdc36e87aba1cc38a5de461fe45288f")
add_versions("2.3.1", "298992ec0958979090566c7835ea60c14f5330d6372ee092ef6eee1d2e6ac079")
add_versions("2.4.0", "14624f1dfd966fee85272688064714172ff70e6e304a1e1850f352a07e4c6dc7")
add_versions("2.4.1", "e9359937e7aeb8e5889515c0a9e22cd5da50e9b053038eb092135a0e64888fe7")

add_deps("cmake")
add_versions("v2.9.0", "8b992f0ce9134cb4eafb74b164d2ce2cb3af1900902162713b0e0c5ab0b6acd8")
add_versions("v2.8.0", "83b77fb53d1a9eea22b1484472cea0215c50478c9ea2b4b44b0ba3b52e07c139")
add_versions("v2.7.8", "8de067b7cb3da1808bf5439279aee6048d761ba246bf8a854c2af73b16b41c75")
add_versions("v2.7.7", "7116d86a80b79886efbc9d946d3919801815060ae62daf78de68c508552af554")
add_versions("v2.7.6", "e2822783913c50b9f5c0f20b5259130a7bdc36e87aba1cc38a5de461fe45288f")
add_versions("v2.3.1", "298992ec0958979090566c7835ea60c14f5330d6372ee092ef6eee1d2e6ac079")
add_versions("v2.4.0", "14624f1dfd966fee85272688064714172ff70e6e304a1e1850f352a07e4c6dc7")
add_versions("v2.4.1", "e9359937e7aeb8e5889515c0a9e22cd5da50e9b053038eb092135a0e64888fe7")

if is_plat("macosx") then
add_extsources("brew::ada-url")
end

on_install("windows", "linux", "macosx", "bsd", "mingw", "msys", "android", "iphoneos", "cross", function (package)
add_deps("cmake")

on_install(function (package)
local configs = {"-DBUILD_TESTING=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
io.replace("CMakeLists.txt", "add_subdirectory(singleheader)", "", {plain = true})
io.replace("CMakeLists.txt", "add_subdirectory(tools)", "", {plain = true})
27 changes: 27 additions & 0 deletions packages/a/ade/patches/0.1.2/cmake-mingw.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index af78061..8aba951 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,13 +39,15 @@ function(add_security_flags target)
target_compile_options( ${target} PRIVATE -fstack-protector-strong)
endif()
elseif(WIN32)
- target_compile_options( ${target} PRIVATE /GS /DynamicBase)
- if(BUILD_WITH_STATIC_CRT)
- target_compile_options( ${target} PRIVATE "/MT")
- endif()
- if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
- # These options for 32 bit builds only
- target_compile_options( ${target} PRIVATE /SAFESEH /NXCOMPAT )
+ if (MSVC)
+ target_compile_options( ${target} PRIVATE /GS /DynamicBase)
+ if(BUILD_WITH_STATIC_CRT)
+ target_compile_options( ${target} PRIVATE "/MT")
+ endif()
+ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
+ # These options for 32 bit builds only
+ target_compile_options( ${target} PRIVATE /SAFESEH /NXCOMPAT )
+ endif()
endif()
endif()
endfunction()
9 changes: 8 additions & 1 deletion packages/a/ade/xmake.lua
Original file line number Diff line number Diff line change
@@ -7,6 +7,9 @@ package("ade")
"https://github.com/opencv/ade.git")

add_versions("v0.1.2d", "edefba61a33d6cd4b78a9976cb3309c95212610a81ba6dade09882d1794198ff")
add_versions("v0.1.2", "ac2e6a4acbe6e0b0942418687ec37c6cd55dcaec5112c7ca09abefe6ee539499")

add_patches("0.1.2", "patches/0.1.2/cmake-mingw.patch", "59ac0ed938b82090e97de6dee358ba683b371908c3063b4d10146999a30eaaaa")

add_deps("cmake")

@@ -19,5 +22,9 @@ package("ade")
end)

on_test(function (package)
assert(package:has_cxxtypes("ade::Graph", {configs = {languages = "c++11"}, includes = "ade/graph.hpp"}))
assert(package:check_cxxsnippets({test = [[
void test() {
ade::Graph x;
}
]]}, {configs = {languages = "c++11"}, includes = "ade/graph.hpp"}))
end)
27 changes: 27 additions & 0 deletions packages/a/algo_plus/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package("algo_plus")
set_kind("library", {headeronly = true})
set_homepage("https://csrt-ntua.github.io/AlgoPlus")
set_description("AlgoPlus is a C++17 library for complex data structures and algorithms")
set_license("Apache-2.0")

add_urls("https://github.com/CSRT-NTUA/AlgoPlus.git")
add_versions("2024.07.02", "1287dfc5bf666bace15af9c14d03e807b71efa82")

add_deps("nlohmann_json")

on_install(function (package)
for _, file in ipairs(os.files("src/**.h")) do
io.replace(file, "../../../../third_party/json.hpp", "nlohmann/json.hpp", {plain = true})
end
os.cp("src/*", package:installdir("include"))
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
std::vector<std::vector<double> > data;
int CLUSTERS;
kmeans a(data, CLUSTERS);
}
]]}, {configs = {languages = "c++17"}, includes = {"machine_learning/clustering/kmeans/kmeans.h"}}))
end)
50 changes: 50 additions & 0 deletions packages/a/antlr4-runtime/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package("antlr4-runtime")
set_homepage("http://antlr.org")
set_description("ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.")
set_license("BSD-3-Clause")

add_urls("https://github.com/antlr/antlr4/archive/refs/tags/$(version).tar.gz",
"https://github.com/antlr/antlr4.git")

add_versions("4.13.1", "da20d487524d7f0a8b13f73a8dc326de7fc2e5775f5a49693c0a4e59c6b1410c")

if is_plat("mingw") and is_subhost("msys") then
add_extsources("pacman::antlr4-runtime-cpp")
elseif is_plat("linux") then
add_extsources("pacman::antlr4-runtime", "apt::libantlr4-runtime-dev")
elseif is_plat("macosx") then
add_extsources("brew::antlr4-cpp-runtime")
end

if is_plat("linux", "bsd") then
add_syslinks("m", "pthread")
elseif is_plat("macosx") then
add_frameworks("CoreFoundation")
end

add_includedirs("include", "include/antlr4-runtime")

add_deps("cmake")

on_install(function (package)
local configs = {"-DANTLR_BUILD_CPP_TESTS=OFF", "-DANTLR4_INSTALL=ON"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DANTLR_BUILD_SHARED=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DANTLR_BUILD_STATIC=" .. (package:config("shared") and "OFF" or "ON"))

os.cd("runtime/Cpp")
io.replace("CMakeLists.txt", [[set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")]], "", {plain = true})
io.replace("CMakeLists.txt", [[set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")]], "", {plain = true})
import("package.tools.cmake").install(package, configs)
if not package:config("shared") then
package:add("defines", "ANTLR4CPP_STATIC")
end
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
antlr4::ANTLRInputStream x;
}
]]}, {configs = {languages = "c++17"}, includes = "antlr4-runtime/antlr4-runtime.h"}))
end)
1 change: 1 addition & 0 deletions packages/a/arduinojson/xmake.lua
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ package("arduinojson")
add_urls("https://github.com/bblanchon/ArduinoJson/archive/refs/tags/$(version).tar.gz",
"https://github.com/bblanchon/ArduinoJson.git")

add_versions("v7.1.0", "74bc745527a274bcab85c6498de77da749627113c4921ccbcaf83daa7ac35dee")
add_versions("v7.0.4", "98ca14d98e9f1e8978ce5ad3ca0eeda3d22419d17586c60f299f369078929917")
add_versions("v7.0.3", "6da2d069e0caa0c829444912ee13e78bdf9cc600be632428a164c92e69528000")
add_versions("v6.21.4", "9551af9282372f6e64cf4009fc43be7f2df6eb96fe9c0aab44d4eed217d09747")
22 changes: 22 additions & 0 deletions packages/a/asio2/patches/2.9/remove-const.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 34bb2c023d60d22e4b1a31750d9b649d7729209e Mon Sep 17 00:00:00 2001
From: xpxz <[email protected]>
Date: Wed, 19 Jun 2024 14:08:48 +0800
Subject: [PATCH] remove const in set_to_text_limit

---
include/asio2/http/detail/flex_body.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asio2/http/detail/flex_body.hpp b/include/asio2/http/detail/flex_body.hpp
index 491f5b8a..18e682db 100644
--- a/include/asio2/http/detail/flex_body.hpp
+++ b/include/asio2/http/detail/flex_body.hpp
@@ -136,7 +136,7 @@ class basic_flex_body<TextBody, FileBody>::value_type
inline bool is_text() const noexcept { return !is_file(); }
inline bool is_file() const noexcept { return file_.is_open(); }

- inline void set_to_text_limit(std::uint64_t v) const noexcept
+ inline void set_to_text_limit(std::uint64_t v) noexcept
{
this->to_text_limit_ = v;
}
11 changes: 7 additions & 4 deletions packages/a/asio2/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
package("asio2")

set_kind("library", {headeronly = true})
set_homepage("https://github.com/zhllxt/asio2")
set_description("Header only c++ network library, based on asio, support tcp,udp,http,websocket,rpc,ssl,icmp,serial_port.")
set_license("BSL-1.0")

add_urls("https://github.com/zhllxt/asio2.git")
add_versions("2023.05.09", "ac8c79964d79020091e38fcbb4ae9dccccb3b03c")
add_urls("https://github.com/zhllxt/asio2/archive/refs/tags/$(version).zip",
"https://github.com/zhllxt/asio2.git")

add_versions("v2.9", "3ce0b41300954ffc13948bd51af6430e324b1c28e26d2eb5a83e775cf38c12b4")

add_patches("2.9", "patches/2.9/remove-const.patch", "6326f333ab2d0484c23bb3cd9cfd5a565030b5525d083677565a693f5f8803b6")

add_deps("asio", "cereal", "fmt", "openssl3")
add_deps("spdlog", { configs = { header_only = false, fmt_external = true } })

on_install("windows", "linux", "macosx", "mingw", "bsd", function (package)
on_install("windows", "linux", "macosx", "mingw", "bsd", "cross", function (package)
os.cp(path.join("include", "*"), package:installdir("include"))
end)

1 change: 1 addition & 0 deletions packages/a/assimp/xmake.lua
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ package("assimp")

set_urls("https://github.com/assimp/assimp/archive/refs/tags/$(version).zip",
"https://github.com/assimp/assimp.git")
add_versions("v5.4.2", "03e38d123f6bf19a48658d197fd09c9a69db88c076b56a476ab2da9f5eb87dcc")
add_versions("v5.4.1", "08837ee7c50b98ca72d2c9e66510ca6640681db8800aa2d3b1fcd61ccc615113")
add_versions("v5.4.0", "0f3698e9ba0110df0b636dbdd95706e7e28d443ff3dbaf5828926c23bfff778d")
add_versions("v5.3.1", "f4020735fe4601de9d85cb335115568cce0e027a65e546dd8895081696d624bd")
2 changes: 2 additions & 0 deletions packages/a/aws-c-cal/xmake.lua
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@ package("aws-c-cal")
add_urls("https://github.com/awslabs/aws-c-cal/archive/refs/tags/$(version).tar.gz",
"https://github.com/awslabs/aws-c-cal.git")

add_versions("v0.7.1", "2fbdc04d72d1f3af28b80fe3917f03f20c0a62bc22b6c7b3450486ee9cbe77f6")
add_versions("v0.6.15", "67dda8049a59bbb70cdb166f46f741bc3a8443c86009a1ae4cb7842964a76e0d")
add_versions("v0.6.14", "2326304b15bec45b212f6b738020c21afa41f9da295936687e103f9f2efb7b5e")
add_versions("v0.6.12", "1ec1bc9a50df8d620f226480b420ec69d4fefd3792fb4e877aa7e350c2b174dc")
add_versions("v0.6.11", "e1b0af88c14300e125e86ee010d4c731292851fff16cfb67eb6ba6036df2d648")
1 change: 1 addition & 0 deletions packages/a/aws-c-common/xmake.lua
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ package("aws-c-common")
add_urls("https://github.com/awslabs/aws-c-common/archive/refs/tags/$(version).tar.gz",
"https://github.com/awslabs/aws-c-common.git")

add_versions("v0.9.23", "adf838daf6a60aa31268522105b03262d745f529bc981d3ac665424133d6f91b")
add_versions("v0.9.19", "196430fda1bca2c77df7d9199232956d371a92f49ee48fd6c29ff969410ca0ed")
add_versions("v0.9.17", "82f1a88494c5563892f0e048f0f56acfe7e10e5aa3fe9267b956dbabcc043440")
add_versions("v0.9.15", "8f36c7a6a5d2e17365759d15591f800d3e76dcaa34a226389b92647cbd92393a")
1 change: 1 addition & 0 deletions packages/a/aws-c-io/xmake.lua
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ package("aws-c-io")
add_urls("https://github.com/awslabs/aws-c-io/archive/refs/tags/$(version).tar.gz",
"https://github.com/awslabs/aws-c-io.git")

add_versions("v0.14.9", "3a3b7236f70209ac12b5bafa7dd81b75cc68b691a0aa0686d6d3b7e4bbe5fbc9")
add_versions("v0.14.8", "d50e21fdbd5170a4071fe067ef4ce297b02cb058ad47e118305e25f6e07d9cf0")
add_versions("v0.14.7", "ecf1f660d7d43913aa8a416be6a2027101ce87c3b241344342d608335b4df7d4")
add_versions("v0.14.6", "bb3af305af748185b1c7b17afa343e54f2d494ccff397402f1b17041b0967865")
1 change: 1 addition & 0 deletions packages/a/aws-c-s3/xmake.lua
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ package("aws-c-s3")
add_urls("https://github.com/awslabs/aws-c-s3/archive/refs/tags/$(version).tar.gz",
"https://github.com/awslabs/aws-c-s3.git")

add_versions("v0.6.0", "0a29dbb13ea003de3fd0d08a61fa705b1c753db4b35de9c464641432000f13ec")
add_versions("v0.5.9", "7a337195b295406658d163b6dac64ff81f7556291b8a8e79e58ebaa2d55178ee")
add_versions("v0.5.7", "2f2eab9bf90a319030fd3525953dc7ac00c8dc8c0d33e3f0338f2a3b554d3b6a")
add_versions("v0.3.17", "72fd93a2f9a7d9f205d66890da249944b86f9528216dc0321be153bf19b2ecd5")
2 changes: 2 additions & 0 deletions packages/a/aws-crt-cpp/xmake.lua
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@ package("aws-crt-cpp")
add_urls("https://github.com/awslabs/aws-crt-cpp/archive/refs/tags/$(version).tar.gz",
"https://github.com/awslabs/aws-crt-cpp.git")

add_versions("v0.27.2", "e17c82d7cc3b5e6e4300bc7e4794306e292b5281d212ead536000a8b5f5f1be4")
add_versions("v0.27.0", "e7601c8c5e6391013b6ad164d2dd7b970bf5dbb3693b9cc80c424bd6f42b79c8")
add_versions("v0.26.11", "23acb2b14019182dd73fe6779ec266ee4d8937f19a99803da6407937fa22db7d")
add_versions("v0.26.9", "5b5760d34fbbfcc971f561296e828de4c788750472fd9bd3ac20068a083620f2")
add_versions("v0.26.8", "36ced4fb54c8eb7325b4576134e01f93bfaca2709565b5ad036d198d703e4c8f")
49 changes: 49 additions & 0 deletions packages/a/aws-lc/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package("aws-lc")
set_homepage("https://github.com/aws/aws-lc")
set_description("AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. It іs based on code from the Google BoringSSL project and the OpenSSL project.")

add_urls("https://github.com/aws/aws-lc/archive/refs/tags/$(version).tar.gz",
"https://github.com/aws/aws-lc.git")

add_versions("v1.31.0", "f2dfe0ef8fe21482b6795da01a1b226f826e9a084833ff8d5371a02f9623c150")

add_configs("jitter", {description = "Enable FIPS entropy source: CPU Jitter", default = false, type = "boolean"})
add_configs("tools", {description = "Build tools", default = false, type = "boolean"})

add_deps("cmake")
if is_plat("windows") then
add_deps("nasm")
end

add_links("ssl", "crypto")

if is_plat("windows", "mingw") then
add_syslinks("ws2_32")
elseif is_plat("linux", "bsd") then
add_syslinks("pthread", "dl", "m")
end

on_install(function (package)
if package:config("shared") and package:is_plat("windows") then
package:add("defines", "BORINGSSL_SHARED_LIBRARY")
end

local configs = {
"-DBUILD_TESTING=OFF",
"-DCMAKE_INSTALL_INCLUDEDIR=include",
"-DBUILD_LIBSSL=ON",
"-DDISABLE_GO=ON", "-DDISABLE_PERL=ON"
}

table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

table.insert(configs, "-DBUILD_LIBSSL=ON")
table.insert(configs, "-DENABLE_FIPS_ENTROPY_CPU_JITTER=" .. (package:config("jitter") and "ON" or "OFF"))
table.insert(configs, "-DBUILD_TOOL=" .. (package:config("tools") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs)
end)

on_test(function (package)
assert(package:has_cfuncs("SSL_new", {includes = "openssl/ssl.h"}))
end)
Loading

0 comments on commit 42a7c91

Please sign in to comment.