Skip to content

Commit e24d900

Browse files
committed
sync upstream
1 parent 1c46bc9 commit e24d900

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

scripts/build.macos.release.sh

+20-22
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -xe
33

4-
brew reinstall rapidjson libevent zlib pcre2 pkgconfig
4+
brew reinstall rapidjson zlib pcre2 pkgconfig
55

66
#git clone https://github.com/curl/curl --depth=1 --branch curl-7_88_1
77
#cd curl
@@ -14,51 +14,49 @@ brew reinstall rapidjson libevent zlib pcre2 pkgconfig
1414
git clone https://github.com/jbeder/yaml-cpp --depth=1
1515
cd yaml-cpp
1616
cmake -DCMAKE_BUILD_TYPE=Release -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
17-
make install -j8 > /dev/null
17+
make -j6 > /dev/null
18+
sudo make install > /dev/null
1819
cd ..
1920

2021
git clone https://github.com/ftk/quickjspp --depth=1
2122
cd quickjspp
2223
cmake -DCMAKE_BUILD_TYPE=Release .
23-
make quickjs -j8
24-
install -d /usr/local/lib/quickjs/
25-
install -m644 quickjs/libquickjs.a /usr/local/lib/quickjs/
26-
install -d /usr/local/include/quickjs/
27-
install -m644 quickjs/quickjs.h quickjs/quickjs-libc.h /usr/local/include/quickjs/
28-
install -m644 quickjspp.hpp /usr/local/include/
24+
make quickjs -j6 > /dev/null
25+
sudo install -d /usr/local/lib/quickjs/
26+
sudo install -m644 quickjs/libquickjs.a /usr/local/lib/quickjs/
27+
sudo install -d /usr/local/include/quickjs/
28+
sudo install -m644 quickjs/quickjs.h quickjs/quickjs-libc.h /usr/local/include/quickjs/
29+
sudo install -m644 quickjspp.hpp /usr/local/include/
2930
cd ..
3031

3132
git clone https://github.com/PerMalmberg/libcron --depth=1
3233
cd libcron
3334
git submodule update --init
3435
cmake -DCMAKE_BUILD_TYPE=Release .
35-
make libcron install -j8
36-
install -m644 libcron/out/Release/liblibcron.a /usr/local/lib/
37-
install -d /usr/local/include/libcron/
38-
install -m644 libcron/include/libcron/* /usr/local/include/libcron/
39-
install -d /usr/local/include/date/
40-
install -m644 libcron/externals/date/include/date/* /usr/local/include/date/
36+
make libcron -j6
37+
sudo install -m644 libcron/out/Release/liblibcron.a /usr/local/lib/
38+
sudo install -d /usr/local/include/libcron/
39+
sudo install -m644 libcron/include/libcron/* /usr/local/include/libcron/
40+
sudo install -d /usr/local/include/date/
41+
sudo install -m644 libcron/externals/date/include/date/* /usr/local/include/date/
4142
cd ..
4243

4344
git clone https://github.com/ToruNiina/toml11 --depth=1
4445
cd toml11
4546
cmake -DCMAKE_CXX_STANDARD=11 .
46-
make install -j4
47+
sudo make install -j6 > /dev/null
4748
cd ..
4849

49-
cp /usr/local/lib/libevent.a .
50-
cp /usr/local/opt/zlib/lib/libz.a .
51-
cp /usr/local/lib/libpcre2-8.a .
52-
5350
cmake -DCMAKE_BUILD_TYPE=Release .
54-
make -j8
51+
make -j6
5552
rm subconverter
56-
c++ -Xlinker -unexported_symbol -Xlinker "*" -o base/subconverter -framework CoreFoundation -framework Security $(find CMakeFiles/subconverter.dir/src/ -name "*.o") $(find . -name "*.a") -lcurl -O3
53+
# shellcheck disable=SC2046
54+
c++ -Xlinker -unexported_symbol -Xlinker "*" -o base/subconverter -framework CoreFoundation -framework Security $(find CMakeFiles/subconverter.dir/src/ -name "*.o") "$(brew --prefix zlib)/lib/libz.a" "$(brew --prefix pcre2)/lib/libpcre2-8.a" $(find . -name "*.a") -lcurl -O3
5755

5856
cd base
5957
chmod +rx subconverter
6058
chmod +r ./*
6159
cd ..
6260
mv base subconverter
6361

64-
set +xe
62+
set +xe

scripts/build.windows.release.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -xe
33

4-
git clone https://github.com/curl/curl --depth=1 --branch curl-7_88_1
4+
git clone https://github.com/curl/curl --depth=1 --branch curl-8_4_0
55
cd curl
66
cmake -DCMAKE_BUILD_TYPE=Release -DCURL_USE_LIBSSH2=OFF -DHTTP_ONLY=ON -DCURL_USE_SCHANNEL=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_CURL_EXE=OFF -DCMAKE_INSTALL_PREFIX="$MINGW_PREFIX" -G "Unix Makefiles" -DHAVE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF .
77
make install -j4
@@ -48,5 +48,6 @@ rm -f C:/Strawberry/perl/bin/pkg-config C:/Strawberry/perl/bin/pkg-config.bat
4848
cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" .
4949
make -j4
5050
rm subconverter.exe
51-
g++ $(find CMakeFiles/subconverter.dir/src -name "*.obj") curl/lib/libcurl.a -o base/subconverter.exe -static -lbcrypt -levent -lpcre2-8 -l:quickjs/libquickjs.a -llibcron -lyaml-cpp -liphlpapi -lcrypt32 -lws2_32 -lwsock32 -lz -s
52-
mv base subconverter
51+
# shellcheck disable=SC2046
52+
g++ $(find CMakeFiles/subconverter.dir/src -name "*.obj") curl/lib/libcurl.a -o base/subconverter.exe -static -lbcrypt -lpcre2-8 -l:quickjs/libquickjs.a -llibcron -lyaml-cpp -liphlpapi -lcrypt32 -lws2_32 -lwsock32 -lz -s
53+
mv base subconverter

0 commit comments

Comments
 (0)