2024-03-20 19:13:01 +00:00
|
|
|
#!/bin/sh -e
|
2020-05-22 12:14:38 +00:00
|
|
|
|
2024-10-20 02:49:06 +00:00
|
|
|
UV_VERSION="1.49.2"
|
2020-05-22 12:14:38 +00:00
|
|
|
|
|
|
|
mkdir -p deps
|
|
|
|
mkdir -p deps/include
|
|
|
|
mkdir -p deps/lib
|
|
|
|
|
|
|
|
mkdir -p build && cd build
|
|
|
|
|
2024-03-19 17:24:46 +00:00
|
|
|
wget https://dist.libuv.org/dist/v${UV_VERSION}/libuv-v${UV_VERSION}.tar.gz -O v${UV_VERSION}.tar.gz
|
2020-05-22 12:14:38 +00:00
|
|
|
tar -xzf v${UV_VERSION}.tar.gz
|
|
|
|
|
2024-03-19 17:24:46 +00:00
|
|
|
cd libuv-v${UV_VERSION}
|
2020-05-22 12:14:38 +00:00
|
|
|
sh autogen.sh
|
|
|
|
./configure --disable-shared
|
2020-08-23 08:46:56 +00:00
|
|
|
make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
|
|
|
|
cp -fr include ../../deps
|
2020-05-22 12:14:38 +00:00
|
|
|
cp .libs/libuv.a ../../deps/lib
|
2022-03-06 17:27:49 +00:00
|
|
|
cd ..
|