Skip to content

Commit

Permalink
Add symlinks to no-asm dir and to include dir in each ABI (KDAB#57)
Browse files Browse the repository at this point in the history
* Add symlinks to no-asm libraries
* Create symlinks to include dir
* Added symlinks to include dir
  • Loading branch information
bernedom authored Mar 24, 2024
1 parent 8cd5e08 commit 57056d6
Show file tree
Hide file tree
Showing 33 changed files with 39 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build_ssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ build_ssl_1_1() {
cp libcrypto.a libssl.a "../$version_out_dir/$qt_arch" || exit 1
ln -s "../$version_out_dir/$qt_arch/libcrypto_1_1.so" "../$version_out_dir/$qt_arch/libcrypto.so"
ln -s "../$version_out_dir/$qt_arch/libssl_1_1.so" "../$version_out_dir/$qt_arch/libssl.so"
ln -s "../$version_out_dir/include" "../$version_out_dir/$qt_arch/include"
}

build_ssl_3() {
Expand All @@ -118,6 +119,7 @@ build_ssl_3() {
cp libssl.so "${out_path}/libssl_3.so" || exit 1
ln -s "${out_path}/libcrypto_3.so" "${out_path}/libcrypto.so"
ln -s "${out_path}/libssl_3.so" "${out_path}/libssl.so"
ln -s "../$version_out_dir/include" "../$version_out_dir/$qt_arch/include"

pushd ${out_path} || exit 1
patchelf --set-soname libcrypto_3.so libcrypto_3.so || exit 1
Expand Down Expand Up @@ -149,6 +151,10 @@ for param in "${params[@]}"; do
ndk="${ssl_versions_ndk[$ssl_version]}"
configure_ssl "${ndk}" "${param}" ${ssl_version} ${version_out_dir} ${arch} ${log_file}

if [ "$arch" == "arm64" ] && [ ! -d "../$version_out_dir/include/openssl" ]; then
cp -a include "../$version_out_dir" || exit 1
fi

case $version_out_dir in
ssl_1.1)
build_ssl_1_1 ${version_out_dir} ${qt_arch} ${log_file}
Expand All @@ -162,9 +168,7 @@ for param in "${params[@]}"; do
;;
esac

if [ "$arch" == "arm64" ] && [ ! -d "../$version_out_dir/include/openssl" ]; then
cp -a include "../$version_out_dir" || exit 1
fi

popd
done
done
Expand Down
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/arm64-v8a/include
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/arm64-v8a/libcrypto.so
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/arm64-v8a/libssl.so
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/armeabi-v7a/include
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/armeabi-v7a/libcrypto.so
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/armeabi-v7a/libssl.so
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/x86/include
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/x86/libcrypto.so
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/x86/libssl.so
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/x86_64/include
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/x86_64/libcrypto.so
1 change: 1 addition & 0 deletions no-asm/ssl_1.1/x86_64/libssl.so
1 change: 1 addition & 0 deletions no-asm/ssl_3/arm64-v8a/include
1 change: 1 addition & 0 deletions no-asm/ssl_3/arm64-v8a/libcrypto.so
1 change: 1 addition & 0 deletions no-asm/ssl_3/arm64-v8a/libssl.so
1 change: 1 addition & 0 deletions no-asm/ssl_3/armeabi-v7a/include
1 change: 1 addition & 0 deletions no-asm/ssl_3/armeabi-v7a/libcrypto.so
1 change: 1 addition & 0 deletions no-asm/ssl_3/armeabi-v7a/libssl.so
1 change: 1 addition & 0 deletions no-asm/ssl_3/x86/include
1 change: 1 addition & 0 deletions no-asm/ssl_3/x86/libcrypto.so
1 change: 1 addition & 0 deletions no-asm/ssl_3/x86/libssl.so
1 change: 1 addition & 0 deletions no-asm/ssl_3/x86_64/include
1 change: 1 addition & 0 deletions no-asm/ssl_3/x86_64/libcrypto.so
1 change: 1 addition & 0 deletions no-asm/ssl_3/x86_64/libssl.so
1 change: 1 addition & 0 deletions ssl_1.1/arm64-v8a/include
1 change: 1 addition & 0 deletions ssl_1.1/armeabi-v7a/include
1 change: 1 addition & 0 deletions ssl_1.1/x86/include
1 change: 1 addition & 0 deletions ssl_1.1/x86_64/include
1 change: 1 addition & 0 deletions ssl_3/arm64-v8a/include
1 change: 1 addition & 0 deletions ssl_3/armeabi-v7a/include
1 change: 1 addition & 0 deletions ssl_3/x86/include
1 change: 1 addition & 0 deletions ssl_3/x86_64/include

0 comments on commit 57056d6

Please sign in to comment.