Skip to content

Commit 749e10d

Browse files
authored
Upgrade OpenSSL 3.0.11 and Android NDK r26 (#558)
IB-7835, IB-7836 Signed-off-by: Raul Metsma <[email protected]>
1 parent 0cafa3f commit 749e10d

File tree

9 files changed

+26
-46
lines changed

9 files changed

+26
-46
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
env:
150150
MAKEFLAGS: ""
151151
VER_SUFFIX: .VS${{ matrix.toolset }}
152-
VERSION: 3.16.0.${{ github.run_number }}
152+
VERSION: 3.17.0.${{ github.run_number }}
153153
steps:
154154
- name: Checkout
155155
uses: actions/checkout@v3
@@ -165,7 +165,7 @@ jobs:
165165
- name: Prepare vcpkg X64
166166
uses: lukka/run-vcpkg@v11
167167
with:
168-
vcpkgGitCommitId: 4a8d11802f0a9ffbe5c68f6143d61d469d800a7d
168+
vcpkgGitCommitId: 6a349fe1fbea1e5fcda2e0775f555d829a5e82df
169169
vcpkgJsonGlob: ${{ steps.path.outputs.value }}/vcpkg.json
170170
runVcpkgInstall: true
171171
runVcpkgFormatString: "[`install`, `--recurse`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `tests`]"
@@ -175,7 +175,7 @@ jobs:
175175
- name: Prepare vcpkg X86
176176
uses: lukka/run-vcpkg@v11
177177
with:
178-
vcpkgGitCommitId: 4a8d11802f0a9ffbe5c68f6143d61d469d800a7d
178+
vcpkgGitCommitId: 6a349fe1fbea1e5fcda2e0775f555d829a5e82df
179179
vcpkgJsonGlob: ${{ steps.path.outputs.value }}/vcpkg.json
180180
runVcpkgInstall: true
181181
runVcpkgFormatString: "[`install`, `--recurse`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `tests`]"

build-library.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
if [ "$#" -eq 0 ]; then
66
echo "Usage:"
77
echo " $0 target [maketask]"
8-
echo " target: osx ios iossimulator ioscatalyst androidarm androidarm64 androidx86 androidx86_64"
8+
echo " target: osx ios iossimulator ioscatalyst androidarm androidarm64 androidx86_64"
99
echo "To control iOS, macOS builds set environment variables:"
1010
echo " minimum deployment target"
1111
echo " - MACOSX_DEPLOYMENT_TARGET=10.15"
@@ -24,10 +24,6 @@ case "$@" in
2424
TARGET=androidx86_64
2525
ARCH="x86_64"
2626
;;
27-
*x86*)
28-
TARGET=androidx86
29-
ARCH="x86"
30-
;;
3127
*arm64*)
3228
TARGET=androidarm64
3329
ARCH="arm64-v8a"

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ param(
55
[string]$vcpkg_dir = (split-path -parent $vcpkg),
66
[string]$vcpkg_installed = $libdigidocpp,
77
[string]$buildver = "0",
8-
[string]$msiversion = "3.16.0.$buildver",
8+
[string]$msiversion = "3.17.0.$buildver",
99
[string]$msi_name = "libdigidocpp-$msiversion$env:VER_SUFFIX.msi",
1010
[string]$cmake = "cmake.exe",
1111
[string]$generator = "NMake Makefiles",

cmake

Submodule cmake updated from 6089630 to cb04528

examples/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
mavenCentral()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:8.1.0'
8+
classpath 'com.android.tools.build:gradle:8.1.1'
99
}
1010
}
1111

patches/vcpkg-ports/openssl/portfile.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ vcpkg_from_github(
1919
OUT_SOURCE_PATH SOURCE_PATH
2020
REPO openssl/openssl
2121
REF "openssl-${VERSION}"
22-
SHA512 5c20269f9666eae0111252378baf196d74ae14a68b19cac49703d73fa564f7ae7aaf06209f5a3d7dc48c014ddb2e760bdf765141c14adde63edee552a8de015e
22+
SHA512 4dd485720a335879bd52d0045edf65fd8397b6f6b6afb3e2c756230937304975b3bd95f67933cadde175cae81d420a692fcf7e96b9f9d2b059ea387a8d9ac305
2323
PATCHES
2424
disable-apps.patch
2525
disable-install-docs.patch
@@ -72,4 +72,4 @@ else()
7272
endif()
7373

7474
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
75-
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
75+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")

patches/vcpkg-ports/openssl/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openssl",
3-
"version": "3.0.10",
3+
"version": "3.0.11",
44
"description": "OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.",
55
"homepage": "https://www.openssl.org",
66
"license": "Apache-2.0",

prepare_osx_build_environment.sh

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ XERCES_DIR=xerces-c-3.2.4
55
XALAN_DIR=xalan_c-1.12
66
XMLSEC_DIR=xml-security-c-2.0.4
77
XSD=xsd-4.0.0-i686-macosx
8-
OPENSSL_DIR=openssl-3.0.9
9-
LIBXML2_DIR=libxml2-2.10.3
10-
ANDROID_NDK=android-ndk-r25
8+
OPENSSL_DIR=openssl-3.0.11
9+
LIBXML2_DIR=libxml2-2.11.5
10+
ANDROID_NDK=android-ndk-r26
1111
FREETYPE_DIR=freetype-2.10.1
1212
FONTCONFIG_DIR=fontconfig-2.13.1
1313
PODOFO_DIR=podofo-0.9.4
@@ -18,22 +18,17 @@ case "$@" in
1818
case "$@" in
1919
*x86_64*)
2020
ARCH=x86_64
21-
ARCH_ABI="x86_64"
21+
ARCH_ABI=x86_64
2222
CROSS_COMPILE=x86_64-linux-android
2323
;;
24-
*x86*)
25-
ARCH=x86
26-
ARCH_ABI="x86"
27-
CROSS_COMPILE=i686-linux-android
28-
;;
2924
*arm64*)
3025
ARCH=arm64
31-
ARCH_ABI="arm64-v8a"
26+
ARCH_ABI=arm64-v8a
3227
CROSS_COMPILE=aarch64-linux-android
3328
;;
3429
*)
3530
ARCH=arm
36-
ARCH_ABI="armeabi-v7a"
31+
ARCH_ABI=armeabi-v7a
3732
CROSS_COMPILE=armv7a-linux-androideabi
3833
;;
3934
esac
@@ -64,7 +59,7 @@ case "$@" in
6459
*simulator*)
6560
echo "Building for iOS Simulator"
6661
TARGET_PATH=/Library/libdigidocpp.iphonesimulator
67-
CONFIGURE="--host=arm-apple-darwin --enable-static --disable-shared --disable-dependency-tracking"
62+
CONFIGURE="--host=aarch64-apple-darwin --enable-static --disable-shared --disable-dependency-tracking"
6863
SYSROOT=$(xcrun -sdk iphonesimulator --show-sdk-path)
6964
: ${ARCHS:="arm64 x86_64"}
7065
: ${IPHONEOS_DEPLOYMENT_TARGET:="12.0"}
@@ -74,7 +69,7 @@ case "$@" in
7469
*ioscatalyst*)
7570
echo "Building for iOS macOS Catalyst"
7671
TARGET_PATH=/Library/libdigidocpp.iphonecatalyst
77-
CONFIGURE="--host=x86_64-apple-darwin --enable-static --disable-shared --disable-dependency-tracking"
72+
CONFIGURE="--host=aarch64-apple-darwin --enable-static --disable-shared --disable-dependency-tracking"
7873
SYSROOT=$(xcrun -sdk macosx --show-sdk-path)
7974
: ${ARCHS:="arm64 x86_64"}
8075
: ${IPHONEOS_DEPLOYMENT_TARGET:="12.0"}
@@ -84,7 +79,7 @@ case "$@" in
8479
*ios*)
8580
echo "Building for iOS"
8681
TARGET_PATH=/Library/libdigidocpp.iphoneos
87-
CONFIGURE="--host=arm-apple-darwin --enable-static --disable-shared --disable-dependency-tracking"
82+
CONFIGURE="--host=aarch64-apple-darwin --enable-static --disable-shared --disable-dependency-tracking"
8883
SYSROOT=$(xcrun -sdk iphoneos --show-sdk-path)
8984
: ${ARCHS:="arm64"}
9085
: ${IPHONEOS_DEPLOYMENT_TARGET:="12.0"}
@@ -253,22 +248,11 @@ function openssl {
253248
*)
254249
for ARCH in ${ARCHS}
255250
do
256-
case "${ARCH}" in
257-
*x86_64*)
258-
case "${ARGS}" in
259-
*simulator*) CC="" CFLAGS="-arch x86_64" ./Configure iossimulator-xcrun --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
260-
*catalyst*) CC="" CFLAGS="-target x86_64-apple-ios-macabi" ./Configure darwin64-x86_64 --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
261-
*) CC="" CFLAGS="" ./Configure darwin64-x86_64 --prefix=${TARGET_PATH} shared no-module no-tests enable-ec_nistp_64_gcc_128
262-
esac
263-
;;
264-
*arm64*)
265-
case "${ARGS}" in
266-
*simulator*) CC="" CFLAGS="-arch arm64" ./Configure iossimulator-xcrun --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
267-
*catalyst*) CC="" CFLAGS="-target x86_64-apple-ios-macabi" ./Configure darwin64-arm64 --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
268-
*ios*) CC="" CFLAGS="" ./Configure ios64-xcrun --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
269-
*) CC="" CFLAGS="" ./Configure darwin64-arm64 --prefix=${TARGET_PATH} shared no-module no-tests enable-ec_nistp_64_gcc_128
270-
esac
271-
;;
251+
case "${ARGS}" in
252+
*simulator*) CC="" CFLAGS="-arch ${ARCH}" ./Configure iossimulator-xcrun --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
253+
*catalyst*) CC="" CFLAGS="-target ${ARCH}-apple-ios-macabi" ./Configure darwin64-${ARCH} --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
254+
*ios*) CC="" CFLAGS="" ./Configure ios64-xcrun --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
255+
*) CC="" CFLAGS="" ./Configure darwin64-${ARCH} --prefix=${TARGET_PATH} shared no-module no-tests enable-ec_nistp_64_gcc_128
272256
esac
273257
make -s > /dev/null
274258
if [[ ${ARCHS} == ${ARCH}* ]]; then
@@ -420,7 +404,7 @@ case "$@" in
420404
*)
421405
echo "Usage:"
422406
echo " $0 [target] [task]"
423-
echo " target: osx ios iossimulator ioscatalyst androidarm androidarm64 androidx86 androidx86_64"
407+
echo " target: osx ios iossimulator ioscatalyst androidarm androidarm64 androidx86_64"
424408
echo " tasks: xerces, xalan, openssl, xmlsec, xsd, all, help"
425409
echo "To control iOS, macOS builds set environment variables:"
426410
echo " minimum deployment target"

vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"features": {
99
"tests": { "description": "Build tests", "dependencies": ["boost-test"] }
1010
},
11-
"builtin-baseline": "4a8d11802f0a9ffbe5c68f6143d61d469d800a7d",
11+
"builtin-baseline": "6a349fe1fbea1e5fcda2e0775f555d829a5e82df",
1212
"vcpkg-configuration": {
1313
"overlay-triplets": ["./patches/vcpkg-triplets"],
1414
"overlay-ports": [

0 commit comments

Comments
 (0)