Skip to content

Commit b1cb0bc

Browse files
committed
quicly added
1 parent 0e1fb1e commit b1cb0bc

File tree

6 files changed

+1056
-0
lines changed

6 files changed

+1056
-0
lines changed

pkg/crypto/libressl/build.wren

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import "os" for Process
2+
import "io" for File
3+
4+
var Url = "https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2.tar.gz"
5+
var Hash = "7b031dac64a59eb6ee3304f7ffb75dad33ab8c9d279c847f92c89fb846068f97"
6+
7+
var libressl = Fn.new { |b, args|
8+
var libcrypto = b.dep("crypto")
9+
var libssl = b.dep("ssl")
10+
var libtls = b.dep("tls")
11+
12+
b.installLib(libcrypto.lib("crypto"))
13+
b.installLib(libssl.lib("ssl"))
14+
b.installLib(libtls.lib("tls"))
15+
16+
var zig = b.deptool("//toolchains/zig")
17+
b.installLibConfig(zig.libConfig(b, "libressl", {
18+
"nostdopts": true,
19+
"cflags": ["-I{{root}}/include"],
20+
"ldflags": [
21+
"{{root}}/lib/%(b.target.libName("crypto"))",
22+
"{{root}}/lib/%(b.target.libName("ssl"))",
23+
],
24+
}))
25+
26+
Process.chdir(b.untar(b.fetch(Url, Hash)))
27+
File.delete("include/openssl/Makefile.am")
28+
File.delete("include/openssl/Makefile.in")
29+
b.installHeader("include/tls.h")
30+
b.install("include", "include/openssl")
31+
}

0 commit comments

Comments
 (0)