2020-05-22 20:14:38 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2024-03-20 01:24:46 +08:00
|
|
|
UV_VERSION="1.48.0"
|
2020-05-22 20:14:38 +08:00
|
|
|
|
|
|
|
mkdir -p deps
|
|
|
|
mkdir -p deps/include
|
|
|
|
mkdir -p deps/lib
|
|
|
|
|
|
|
|
mkdir -p build && cd build
|
|
|
|
|
2024-03-20 01:24:46 +08: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 20:14:38 +08:00
|
|
|
tar -xzf v${UV_VERSION}.tar.gz
|
|
|
|
|
2024-03-20 01:24:46 +08:00
|
|
|
cd libuv-v${UV_VERSION}
|
2020-05-22 20:14:38 +08:00
|
|
|
sh autogen.sh
|
|
|
|
./configure --disable-shared
|
2020-08-23 16:46:56 +08:00
|
|
|
make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
|
|
|
|
cp -fr include ../../deps
|
2020-05-22 20:14:38 +08:00
|
|
|
cp .libs/libuv.a ../../deps/lib
|
2022-03-07 01:27:49 +08:00
|
|
|
cd ..
|