Move to OpenSSL as a git submodule. Redundant for platforms where it's not used, but makes fdroid easier.
This commit is contained in:
parent
b8cd1232be
commit
84c22dbf5f
@ -19,8 +19,8 @@ Builds:
|
|||||||
- no
|
- no
|
||||||
build:
|
build:
|
||||||
- mkdir bin/
|
- mkdir bin/
|
||||||
- ANDROID_SDK=$$SDK$$ ANDROID_NDK=$$NDK$$ make -C ../../ -j`nproc` out/apk/TildeFriends-arm-release.unsigned.apk
|
- ANDROID_SDK=$$SDK$$ ANDROID_NDK=$$NDK$$ make -C ../../ -j`nproc` fdroid
|
||||||
ndk: 26.3.11579264
|
ndk: 26.3.11579264
|
||||||
|
|
||||||
AutoUpdateMode: None
|
AutoUpdateMode: Version ^v[0-9\.]+$
|
||||||
UpdateCheckMode: Tags
|
UpdateCheckMode: Tags
|
||||||
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,11 +1,15 @@
|
|||||||
|
build/
|
||||||
db.*
|
db.*
|
||||||
deps/ios_toolchain/
|
deps/ios_toolchain/
|
||||||
deps/openssl/
|
deps/openssl/
|
||||||
dist/
|
dist/
|
||||||
.keys
|
.keys
|
||||||
|
logs/
|
||||||
**/node_modules
|
**/node_modules
|
||||||
out
|
out
|
||||||
|
repo/
|
||||||
|
result
|
||||||
*.swo
|
*.swo
|
||||||
*.swp
|
*.swp
|
||||||
|
tmp/
|
||||||
.zsign_cache/
|
.zsign_cache/
|
||||||
result
|
|
||||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -19,3 +19,6 @@
|
|||||||
[submodule "deps/picohttpparser"]
|
[submodule "deps/picohttpparser"]
|
||||||
path = deps/picohttpparser
|
path = deps/picohttpparser
|
||||||
url = https://github.com/h2o/picohttpparser.git
|
url = https://github.com/h2o/picohttpparser.git
|
||||||
|
[submodule "deps/openssl_src"]
|
||||||
|
path = deps/openssl_src
|
||||||
|
url = https://github.com/openssl/openssl.git
|
||||||
|
@ -955,3 +955,6 @@ prettier:
|
|||||||
docs:
|
docs:
|
||||||
@doxygen
|
@doxygen
|
||||||
.PHONY: docs
|
.PHONY: docs
|
||||||
|
|
||||||
|
fdroid: out/apk/TildeFriends-arm-release.unsigned.apk
|
||||||
|
.PHONE: fdroid
|
||||||
|
1
deps/openssl_src
vendored
Submodule
1
deps/openssl_src
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit db2ac4f6ebd8f3d7b2a60882992fbea1269114e2
|
@ -11,23 +11,13 @@ BUILD_DIR=out/openssl_android_build
|
|||||||
|
|
||||||
BUILD_TARGETS="x86_64 x86 arm64-v8a armeabi-v7a"
|
BUILD_TARGETS="x86_64 x86 arm64-v8a armeabi-v7a"
|
||||||
|
|
||||||
rm -rf out/openssl-${OPENSSL_VERSION}
|
WORK_DIR=out/openssl-${OPENSSL_VERSION}-android
|
||||||
|
rm -rf $WORK_DIR
|
||||||
|
cp -arf deps/openssl_src/ $WORK_DIR
|
||||||
|
|
||||||
if [ ! -d out/openssl-${OPENSSL_VERSION} ]
|
|
||||||
then
|
|
||||||
if [ ! -f out/openssl-${OPENSSL_VERSION}.tar.gz ]
|
|
||||||
then
|
|
||||||
wget https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz -O out/openssl-${OPENSSL_VERSION}.tar.gz | exit 128
|
|
||||||
fi
|
|
||||||
tar -C out/ -xzf out/openssl-${OPENSSL_VERSION}.tar.gz || exit 128
|
|
||||||
fi
|
|
||||||
WORK_DIR=out/openssl-${OPENSSL_VERSION}
|
|
||||||
|
|
||||||
##### export ndk directory. Required by openssl-build-scripts #####
|
|
||||||
export ANDROID_NDK_ROOT
|
export ANDROID_NDK_ROOT
|
||||||
echo ANDROID_NDK_ROOT=$ANDROID_NDK_ROOT
|
echo ANDROID_NDK_ROOT=$ANDROID_NDK_ROOT
|
||||||
|
|
||||||
##### build-function #####
|
|
||||||
build_the_thing() {
|
build_the_thing() {
|
||||||
TOOLCHAIN=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64
|
TOOLCHAIN=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64
|
||||||
export PATH=$TOOLCHAIN/$TRIBLE/bin:$TOOLCHAIN/bin:$PATH
|
export PATH=$TOOLCHAIN/$TRIBLE/bin:$TOOLCHAIN/bin:$PATH
|
||||||
@ -80,14 +70,13 @@ build_the_thing() {
|
|||||||
-Os
|
-Os
|
||||||
-DOPENSSL_SMALL_FOOTPRINT"
|
-DOPENSSL_SMALL_FOOTPRINT"
|
||||||
pwd
|
pwd
|
||||||
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS -fuse-ld=$TOOLCHAIN/bin/ld" && \
|
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
||||||
./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS -fuse-ld=$TOOLCHAIN/bin/ld no-tests && \
|
./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS && \
|
||||||
make clean && \
|
make clean && \
|
||||||
make build_generated && \
|
make build_generated && \
|
||||||
make libcrypto.a libssl.a || exit 128
|
make libcrypto.a libssl.a || exit 128
|
||||||
}
|
}
|
||||||
|
|
||||||
##### set variables according to build-tagret #####
|
|
||||||
for build_target in $BUILD_TARGETS
|
for build_target in $BUILD_TARGETS
|
||||||
do
|
do
|
||||||
echo "Building $build_target"
|
echo "Building $build_target"
|
||||||
@ -128,7 +117,6 @@ do
|
|||||||
rm -rf $DESTDIR
|
rm -rf $DESTDIR
|
||||||
build_the_thing
|
build_the_thing
|
||||||
popd
|
popd
|
||||||
#### copy libraries and includes to output-directory #####
|
|
||||||
echo WORK_DIR=$WORK_DIR
|
echo WORK_DIR=$WORK_DIR
|
||||||
rm -rf deps/openssl/android/$build_target/
|
rm -rf deps/openssl/android/$build_target/
|
||||||
mkdir -p deps/openssl/android/$build_target/usr/local/include/
|
mkdir -p deps/openssl/android/$build_target/usr/local/include/
|
||||||
|
@ -8,21 +8,10 @@ BUILD_DIR=out/openssl_ios_build
|
|||||||
|
|
||||||
BUILD_TARGETS="ios64-xcrun iossimulator-xcrun"
|
BUILD_TARGETS="ios64-xcrun iossimulator-xcrun"
|
||||||
|
|
||||||
rm -rfv out/openssl-${OPENSSL_VERSION}
|
WORK_DIR=out/openssl-${OPENSSL_VERSION}-ios
|
||||||
|
rm -rf $WORK_DIR
|
||||||
|
cp -arf deps/openssl_src/ $WORK_DIR
|
||||||
|
|
||||||
if [ ! -d out/openssl-${OPENSSL_VERSION} ]
|
|
||||||
then
|
|
||||||
if [ ! -f out/openssl-${OPENSSL_VERSION}.tar.gz ]
|
|
||||||
then
|
|
||||||
curl -L https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz -o out/openssl-${OPENSSL_VERSION}.tar.gz || exit 128
|
|
||||||
fi
|
|
||||||
tar -C out/ -xzf out/openssl-${OPENSSL_VERSION}.tar.gz || exit 128
|
|
||||||
fi
|
|
||||||
WORK_DIR=out/openssl-${OPENSSL_VERSION}
|
|
||||||
|
|
||||||
##### export ndk directory. Required by openssl-build-scripts #####
|
|
||||||
|
|
||||||
##### build-function #####
|
|
||||||
build_the_thing() {
|
build_the_thing() {
|
||||||
export PATH=$TOOLCHAIN/$TRIBLE/bin:$TOOLCHAIN/bin:$PATH
|
export PATH=$TOOLCHAIN/$TRIBLE/bin:$TOOLCHAIN/bin:$PATH
|
||||||
echo $PATH
|
echo $PATH
|
||||||
@ -33,7 +22,6 @@ build_the_thing() {
|
|||||||
make libcrypto.a libssl.a || exit 128
|
make libcrypto.a libssl.a || exit 128
|
||||||
}
|
}
|
||||||
|
|
||||||
##### set variables according to build-tagret #####
|
|
||||||
for build_target in $BUILD_TARGETS
|
for build_target in $BUILD_TARGETS
|
||||||
do
|
do
|
||||||
echo "Building $build_target"
|
echo "Building $build_target"
|
||||||
@ -60,7 +48,6 @@ do
|
|||||||
rm -rf $DESTDIR
|
rm -rf $DESTDIR
|
||||||
build_the_thing
|
build_the_thing
|
||||||
popd
|
popd
|
||||||
#### copy libraries and includes to output-directory #####
|
|
||||||
echo WORK_DIR=$WORK_DIR
|
echo WORK_DIR=$WORK_DIR
|
||||||
rm -rf deps/openssl/ios/$build_target/
|
rm -rf deps/openssl/ios/$build_target/
|
||||||
mkdir -p deps/openssl/ios/$build_target/usr/local/include/
|
mkdir -p deps/openssl/ios/$build_target/usr/local/include/
|
||||||
|
@ -8,19 +8,10 @@ BUILD_DIR=out/openssl_mingw64_build
|
|||||||
|
|
||||||
BUILD_TARGETS="mingw64"
|
BUILD_TARGETS="mingw64"
|
||||||
|
|
||||||
rm -rfv out/openssl-${OPENSSL_VERSION}
|
WORK_DIR=out/openssl-${OPENSSL_VERSION}-mingw64
|
||||||
|
rm -rf $WORK_DIR
|
||||||
|
cp -arf deps/openssl_src/ $WORK_DIR
|
||||||
|
|
||||||
if [ ! -d out/openssl-${OPENSSL_VERSION} ]
|
|
||||||
then
|
|
||||||
if [ ! -f out/openssl-${OPENSSL_VERSION}.tar.gz ]
|
|
||||||
then
|
|
||||||
wget https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz -O out/openssl-${OPENSSL_VERSION}.tar.gz || exit 128
|
|
||||||
fi
|
|
||||||
tar -C out/ -xzf out/openssl-${OPENSSL_VERSION}.tar.gz || exit 128
|
|
||||||
fi
|
|
||||||
WORK_DIR=out/openssl-${OPENSSL_VERSION}
|
|
||||||
|
|
||||||
##### build-function #####
|
|
||||||
build_the_thing() {
|
build_the_thing() {
|
||||||
export GLOBAL_OPTIONS="no-trace no-asm no-threads no-md2 no-md4 no-dso no-async no-multiblock no-dgram no-filenames no-shared no-ssl3 no-engine no-dynamic-engine no-zlib no-comp no-psk no-idea no-srp no-weak-ssl-ciphers no-dtls no-egd no-tests -Os"
|
export GLOBAL_OPTIONS="no-trace no-asm no-threads no-md2 no-md4 no-dso no-async no-multiblock no-dgram no-filenames no-shared no-ssl3 no-engine no-dynamic-engine no-zlib no-comp no-psk no-idea no-srp no-weak-ssl-ciphers no-dtls no-egd no-tests -Os"
|
||||||
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
||||||
@ -30,7 +21,6 @@ build_the_thing() {
|
|||||||
make libcrypto.a libssl.a || exit 128
|
make libcrypto.a libssl.a || exit 128
|
||||||
}
|
}
|
||||||
|
|
||||||
##### set variables according to build-tagret #####
|
|
||||||
for build_target in $BUILD_TARGETS
|
for build_target in $BUILD_TARGETS
|
||||||
do
|
do
|
||||||
echo "Building $build_target"
|
echo "Building $build_target"
|
||||||
@ -47,7 +37,6 @@ do
|
|||||||
rm -rf $DESTDIR
|
rm -rf $DESTDIR
|
||||||
build_the_thing
|
build_the_thing
|
||||||
popd
|
popd
|
||||||
#### copy libraries and includes to output-directory #####
|
|
||||||
echo WORK_DIR=$WORK_DIR
|
echo WORK_DIR=$WORK_DIR
|
||||||
rm -rf deps/openssl/$build_target/
|
rm -rf deps/openssl/$build_target/
|
||||||
mkdir -p deps/openssl/$build_target/usr/local/include/
|
mkdir -p deps/openssl/$build_target/usr/local/include/
|
||||||
|
Loading…
Reference in New Issue
Block a user