diff options
| author | 2021-11-25 01:07:55 -0800 | |
|---|---|---|
| committer | 2021-12-16 19:18:51 -0800 | |
| commit | 9f1946ce702e257ac85e70f17747014fdb86e62f (patch) | |
| tree | 5b7d2de8471aa4c24f4a9eb34c9da456a9dc9b22 /build.zig | |
| parent | 32be2866f6adc9dcce9787da1494bc59c8be3df7 (diff) | |
| download | bun-9f1946ce702e257ac85e70f17747014fdb86e62f.tar.gz bun-9f1946ce702e257ac85e70f17747014fdb86e62f.tar.zst bun-9f1946ce702e257ac85e70f17747014fdb86e62f.zip | |
[npm install] Use BoringSSL for https:// requests
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -12,6 +12,19 @@ pub fn addPicoHTTP(step: *std.build.LibExeObjStep, comptime with_obj: bool) void step.addObjectFile("src/deps/picohttpparser.o"); } + const boringssl = step.addPackage(.{ + .name = "boringssl", + .path = .{ .path = "src/deps/boringssl.zig" }, + }); + + step.addIncludeDir("src/deps"); + + if (with_obj) { + step.addObjectFile("src/deps/picohttpparser.o"); + step.addObjectFile("src/deps/libssl.a"); + step.addObjectFile("src/deps/libcrypto.a"); + } + // step.add("/Users/jarred/Code/WebKit/WebKitBuild/Release/lib/libWTF.a"); // ./Tools/Scripts/build-jsc --jsc-only --cmakeargs="-DENABLE_STATIC_JSC=ON" |
