Skip to content

Commit

Permalink
Update build.c
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB authored Mar 15, 2024
1 parent 7a316ab commit 2d805f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@ void prepare() {

void build_lsquic(const char *arch) {
#ifndef IS_WINDOWS
/* Download zlib */
run("curl -OJ https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz");
run("tar xzf zlib-1.3.1.tar.gz");

/* Build for x64 or arm/arm64 (depending on the host) */
run("cd uWebSockets/uSockets/lsquic && cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBORINGSSL_DIR=../boringssl -DCMAKE_BUILD_TYPE=Release -DLSQUIC_BIN=Off . && make lsquic");
run("cd uWebSockets/uSockets/lsquic && cmake -DZLIB_ROOT=./zlib-1.3.1 -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBORINGSSL_DIR=../boringssl -DCMAKE_BUILD_TYPE=Release -DLSQUIC_BIN=Off . && make lsquic");
#else
run("cd uWebSockets/uSockets/lsquic && cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBORINGSSL_DIR=../boringssl -DCMAKE_BUILD_TYPE=Release -DLSQUIC_BIN=Off . && msbuild ALL_BUILD.vcxproj");
#endif
Expand Down

0 comments on commit 2d805f2

Please sign in to comment.