mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
[Other] Update dependencies
This commit is contained in:
22
Other/libev-mingw/build.ps1
Normal file
22
Other/libev-mingw/build.ps1
Normal file
@@ -0,0 +1,22 @@
|
||||
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
||||
|
||||
git clone https://github.com/shadowsocks/libev -b 'mingw' src
|
||||
if ( -Not $? ) {
|
||||
Pop-Location
|
||||
exit $lastExitCode
|
||||
}
|
||||
Push-Location src
|
||||
|
||||
msys2 ..\build.sh
|
||||
if ( -Not $? ) {
|
||||
Pop-Location
|
||||
|
||||
rm -Recurse -Force src
|
||||
exit $lastExitCode
|
||||
}
|
||||
|
||||
Pop-Location
|
||||
rm -Recurse -Force src
|
||||
|
||||
Pop-Location
|
||||
exit $lastExitCode
|
||||
6
Other/libev-mingw/build.sh
Normal file
6
Other/libev-mingw/build.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
mkdir ../../build
|
||||
|
||||
./configure --prefix="${PWD}/../../build" || exit $?
|
||||
make install -j2 || exit $?
|
||||
exit $?
|
||||
0
Other/libev-mingw/deps.ps1
Normal file
0
Other/libev-mingw/deps.ps1
Normal file
@@ -15,7 +15,7 @@ if ( -Not $? ) {
|
||||
exit $lastExitCode
|
||||
}
|
||||
|
||||
cp -Force '.\src\ss-local.exe' '..\..\release\ssr-local.exe'
|
||||
cp -Force '.\ss-local.exe' '..\..\release\ssr-local.exe'
|
||||
|
||||
Pop-Location
|
||||
rm -Recurse -Force src
|
||||
|
||||
@@ -8,11 +8,13 @@ make -j2 || exit $?
|
||||
cd ..
|
||||
|
||||
./autogen.sh || exit $?
|
||||
CFLAGS+="-fstack-protector" ./configure --disable-documentation --with-ev="${PWD}/libev-mingw/build" || exit $?
|
||||
CFLAGS+="-fstack-protector" ./configure --disable-documentation --with-ev="${PWD}/../../build" || exit $?
|
||||
|
||||
sed -i "s/%I/%z/g" src/utils.h
|
||||
sed -i "s/^const/extern const/g" src/tls.h
|
||||
sed -i "s/^const/extern const/g" src/http.h
|
||||
|
||||
make -j2
|
||||
make -j2 || exit $?
|
||||
|
||||
gcc $(find src/ -name "ss_local-*.o") $(find . -name "*.a" ! -name "*.dll.a") "$LIBEV_PATH/lib/libev.a" -o ss-local -fstack-protector -static -lws2_32 -lsodium -lmbedtls -lmbedcrypto -lpcre || exit $?
|
||||
exit $?
|
||||
@@ -15,7 +15,7 @@ if ( -Not $? ) {
|
||||
exit $lastExitCode
|
||||
}
|
||||
|
||||
cp -Force '.\src\obfs-local.exe' '..\..\release\simple-obfs.exe'
|
||||
cp -Force '.\simple-obfs.exe' '..\..\release\simple-obfs.exe'
|
||||
|
||||
Pop-Location
|
||||
rm -Recurse -Force src
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
git submodule update --init || exit $?
|
||||
|
||||
./autogen.sh || exit $?
|
||||
./configure --disable-documentation --with-ev="${PWD}/libev-mingw/build" || exit $?
|
||||
./configure --disable-documentation --with-ev="${PWD}/../../build" || exit $?
|
||||
|
||||
make -j2
|
||||
make -j2 || exit $?
|
||||
|
||||
gcc $(find src/ -name "obfs_local-*.o") $(find . -name "*.a" ! -name "*.dll.a") "$LIBEV_PATH/lib/libev.a" -o simple-obfs -fstack-protector -static -lws2_32 -s || exit $?
|
||||
exit $?
|
||||
Reference in New Issue
Block a user