build: Remove the mingw-specific OpenSSL build script.
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 16m22s
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 16m22s
This commit is contained in:
parent
87cdba1db8
commit
b8ddbd4255
@ -227,11 +227,11 @@ $(WINDOWS_TARGETS): CFLAGS += \
|
|||||||
-D_WIN32_WINNT=0x0A00 \
|
-D_WIN32_WINNT=0x0A00 \
|
||||||
-DWINVER=0x0A00 \
|
-DWINVER=0x0A00 \
|
||||||
-DNTDDI_VERSION=NTDDI_WIN10 \
|
-DNTDDI_VERSION=NTDDI_WIN10 \
|
||||||
-Iout/openssl/mingw64/usr/local/include
|
-Iout/openssl/$(UNAME_S)/mingw64/usr/local/include
|
||||||
$(WINDOWS_TARGETS): LDFLAGS += \
|
$(WINDOWS_TARGETS): LDFLAGS += \
|
||||||
-static \
|
-static \
|
||||||
-lm \
|
-lm \
|
||||||
-Lout/openssl/mingw64/usr/local/lib
|
-Lout/openssl/$(UNAME_S)/mingw64/usr/local/lib
|
||||||
$(AARCH64_TARGETS): CC = aarch64-linux-gnu-gcc
|
$(AARCH64_TARGETS): CC = aarch64-linux-gnu-gcc
|
||||||
$(AARCH64_TARGETS): AS = $(CC)
|
$(AARCH64_TARGETS): AS = $(CC)
|
||||||
$(AARCH64_TARGETS): CFLAGS += -Iout/openssl/Linux/aarch64/usr/local/include
|
$(AARCH64_TARGETS): CFLAGS += -Iout/openssl/Linux/aarch64/usr/local/include
|
||||||
@ -1187,9 +1187,9 @@ $(filter $(BUILD_DIR)/debug/%,$(APP_OBJS)) $(filter $(BUILD_DIR)/release/%,$(APP
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_WIN),1)
|
ifeq ($(HAVE_WIN),1)
|
||||||
WINDOWS_DEPS := out/openssl/mingw64/usr/local/lib/libssl.a
|
WINDOWS_DEPS := out/openssl/$(UNAME_S)/mingw64/usr/local/lib/libssl.a
|
||||||
$(WINDOWS_DEPS):
|
$(WINDOWS_DEPS):
|
||||||
+@tools/ssl-mingw64
|
+@BUILD_TARGET=mingw64 SSL_TARGET=mingw64 OPTIONS="--cross-compile-prefix=x86_64-w64-mingw32-" tools/ssl-local
|
||||||
$(filter $(BUILD_DIR)/win%,$(APP_OBJS)): | $(WINDOWS_DEPS)
|
$(filter $(BUILD_DIR)/win%,$(APP_OBJS)): | $(WINDOWS_DEPS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -71,8 +71,8 @@ no-tls1-method
|
|||||||
no-trace
|
no-trace
|
||||||
no-ui-console
|
no-ui-console
|
||||||
no-uplink
|
no-uplink
|
||||||
no-whirlpool
|
|
||||||
no-weak-ssl-ciphers
|
no-weak-ssl-ciphers
|
||||||
|
no-whirlpool
|
||||||
no-zlib
|
no-zlib
|
||||||
-Os
|
-Os
|
||||||
-DOPENSSL_SMALL_FOOTPRINT
|
-DOPENSSL_SMALL_FOOTPRINT
|
||||||
|
@ -1,94 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
API_LEVEL=24
|
|
||||||
|
|
||||||
BUILD_DIR=out/openssl_mingw64_build
|
|
||||||
|
|
||||||
BUILD_TARGETS="mingw64"
|
|
||||||
|
|
||||||
WORK_DIR=out/openssl-mingw64
|
|
||||||
rm -rf $WORK_DIR
|
|
||||||
cp -arf deps/openssl_src/ $WORK_DIR
|
|
||||||
|
|
||||||
build_the_thing() {
|
|
||||||
export GLOBAL_OPTIONS="
|
|
||||||
no-apps
|
|
||||||
no-asm
|
|
||||||
no-async
|
|
||||||
no-autoerrinit
|
|
||||||
no-cmp
|
|
||||||
no-cms
|
|
||||||
no-comp
|
|
||||||
no-deprecated
|
|
||||||
no-dgram
|
|
||||||
no-docs
|
|
||||||
no-dsa
|
|
||||||
no-dso
|
|
||||||
no-dtls
|
|
||||||
no-dynamic-engine
|
|
||||||
no-ec2m
|
|
||||||
no-egd
|
|
||||||
no-engine
|
|
||||||
no-err
|
|
||||||
no-filenames
|
|
||||||
no-gost
|
|
||||||
no-http
|
|
||||||
no-idea
|
|
||||||
no-legacy
|
|
||||||
no-md2
|
|
||||||
no-md4
|
|
||||||
no-module
|
|
||||||
no-multiblock
|
|
||||||
no-nextprotoneg
|
|
||||||
no-ocsp
|
|
||||||
no-psk
|
|
||||||
no-shared
|
|
||||||
no-sock
|
|
||||||
no-srp
|
|
||||||
no-ssl-trace
|
|
||||||
no-ssl3
|
|
||||||
no-stdio
|
|
||||||
no-tests
|
|
||||||
no-thread-pool
|
|
||||||
no-threads
|
|
||||||
no-trace
|
|
||||||
no-ui-console
|
|
||||||
no-uplink
|
|
||||||
no-weak-ssl-ciphers
|
|
||||||
no-zlib
|
|
||||||
-Os
|
|
||||||
-ffunction-sections
|
|
||||||
-fdata-sections
|
|
||||||
-DOPENSSL_SMALL_FOOTPRINT"
|
|
||||||
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
|
||||||
./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS && \
|
|
||||||
make -s clean && \
|
|
||||||
make -s build_generated && \
|
|
||||||
make -s libcrypto.a libssl.a || exit 128
|
|
||||||
}
|
|
||||||
|
|
||||||
for build_target in $BUILD_TARGETS
|
|
||||||
do
|
|
||||||
echo "Building $build_target"
|
|
||||||
pushd $WORK_DIR || exit 128
|
|
||||||
|
|
||||||
case $build_target in
|
|
||||||
mingw64)
|
|
||||||
OPTIONS="--cross-compile-prefix=x86_64-w64-mingw32-"
|
|
||||||
DESTDIR="/tmp/$BUILD_DIR/mingw64"
|
|
||||||
SSL_TARGET="mingw64"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
rm -rf $DESTDIR
|
|
||||||
build_the_thing
|
|
||||||
popd
|
|
||||||
echo WORK_DIR=$WORK_DIR
|
|
||||||
rm -rf out/openssl/$build_target/
|
|
||||||
mkdir -p out/openssl/$build_target/usr/local/include/
|
|
||||||
mkdir -p out/openssl/$build_target/usr/local/lib/
|
|
||||||
cp -R $WORK_DIR/include/* out/openssl/$build_target/usr/local/include/
|
|
||||||
cp $WORK_DIR/*.a out/openssl/$build_target/usr/local/lib/
|
|
||||||
done
|
|
||||||
|
|
||||||
echo Success
|
|
Loading…
x
Reference in New Issue
Block a user