Repository navigation
Expand file tree
/
Copy pathxmake.lua
More file actions
33 lines (27 loc) · 1.48 KB
/
Copy pathxmake.lua
File metadata and controls
33 lines (27 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package("mcpplibs-tinyhttps")
set_homepage("https://github.com/mcpplibs/tinyhttps")
set_description("Minimal C++23 HTTP/HTTPS client with SSE streaming support")
set_license("Apache-2.0")
add_urls(
"https://github.com/mcpplibs/tinyhttps/archive/refs/tags/$(version).tar.gz",
"https://github.com/mcpplibs/tinyhttps.git"
)
add_versions("0.2.9", "b17e0b15d2c205a2918708bcd3ac992384f1a38d03232c28f17190a1db081e54")
add_versions("0.2.3", "67ff75050d31157d3c35562187c9fb622e66167c98bb950cebb51db9b07ebe97")
add_versions("0.2.2", "bc4cb59475826a975dd0408b59a00cf41c4aa4078a0fc2e54929bde7fb696248")
add_versions("0.2.0", "81dab607227f353fa83068d4fee47b6877ceff891719a60a9cd75eaf827fab44")
add_versions("0.1.0", "af7daa6a63f264070a1ac8fe42725713ba7ea54e58f1e8b8e190d1b4c58a0896")
on_load(function (package)
package:add("links", "tinyhttps")
-- UPPER BOUND, not just a floor. mbedtls 4.x moved its headers:
-- `<mbedtls/entropy.h>` became `<mbedtls/private/entropy.h>`, so
-- `>=3.6.1` resolves to 4.2.0 and tinyhttps fails to compile at all:
-- src/tls.cppm:4:10: fatal error: mbedtls/entropy.h:
-- No such file or directory
-- The 3.6 series is what this source expects.
package:add("deps", "mbedtls >=3.6.1 <4.0")
end)
on_install(function (package)
local configs = {}
import("package.tools.xmake").install(package, configs, {target = "tinyhttps"})
end)