2020-05-22 12:14:38 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2021-03-03 12:38:54 +00:00
|
|
|
UV_VERSION="1.41.0"
|
2020-05-22 12:14:38 +00:00
|
|
|
|
|
|
|
mkdir -p deps
|
|
|
|
mkdir -p deps/include
|
|
|
|
mkdir -p deps/lib
|
|
|
|
|
|
|
|
mkdir -p build && cd build
|
|
|
|
|
|
|
|
wget https://github.com/libuv/libuv/archive/v${UV_VERSION}.tar.gz -O v${UV_VERSION}.tar.gz
|
|
|
|
tar -xzf v${UV_VERSION}.tar.gz
|
|
|
|
|
|
|
|
cd libuv-${UV_VERSION}
|
|
|
|
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
|
|
|
|
cd ..
|