Update build scrtips

This commit is contained in:
Tindy X
2020-03-18 19:15:23 +08:00
parent 1ea1be7eda
commit 4dd81f9f02
2 changed files with 10 additions and 3 deletions

View File

@@ -7,11 +7,11 @@ apk add openssl-dev openssl-libs-static curl curl-dev curl-static nghttp2-static
git clone https://github.com/jbeder/yaml-cpp
cd yaml-cpp
cmake -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
make install -j2 > /dev/null
make install -j4 > /dev/null
cd ..
cmake .
make -j2
make -j4
rm subconverter
g++ -o base/subconverter CMakeFiles/subconverter.dir/src/*.o -static -lpcre2-8 -levent -lyaml-cpp -lcurl -lnghttp2 -lssl -lcrypto -lz -lbz2 -ldl -lpthread -O3 -s

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -xe
brew reinstall yaml-cpp rapidjson libevent zlib pcre2 bzip2 pkgconfig
brew reinstall rapidjson libevent zlib pcre2 bzip2 pkgconfig
git clone https://github.com/curl/curl
cd curl
@@ -11,7 +11,14 @@ cmake -DHTTP_ONLY=ON -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DOPENSSL_ROOT_
make -j8 > /dev/null
cd ..
git clone https://github.com/jbeder/yaml-cpp
cd yaml-cpp
cmake -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
make -j8 > /dev/null
cd ..
cp curl/lib/libcurl.a .
cp yaml-cpp/libyaml-cpp.a .
cp /usr/local/lib/libevent.a .
cp /usr/local/opt/zlib/lib/libz.a .
cp /usr/local/opt/openssl@1.1/lib/libssl.a .