@@ -5,9 +5,9 @@ XERCES_DIR=xerces-c-3.2.4
5
5
XALAN_DIR=xalan_c-1.12
6
6
XMLSEC_DIR=xml-security-c-2.0.4
7
7
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
11
11
FREETYPE_DIR=freetype-2.10.1
12
12
FONTCONFIG_DIR=fontconfig-2.13.1
13
13
PODOFO_DIR=podofo-0.9.4
@@ -18,22 +18,17 @@ case "$@" in
18
18
case " $@ " in
19
19
* x86_64* )
20
20
ARCH=x86_64
21
- ARCH_ABI=" x86_64"
21
+ ARCH_ABI=x86_64
22
22
CROSS_COMPILE=x86_64-linux-android
23
23
;;
24
- * x86* )
25
- ARCH=x86
26
- ARCH_ABI=" x86"
27
- CROSS_COMPILE=i686-linux-android
28
- ;;
29
24
* arm64* )
30
25
ARCH=arm64
31
- ARCH_ABI=" arm64-v8a"
26
+ ARCH_ABI=arm64-v8a
32
27
CROSS_COMPILE=aarch64-linux-android
33
28
;;
34
29
* )
35
30
ARCH=arm
36
- ARCH_ABI=" armeabi-v7a"
31
+ ARCH_ABI=armeabi-v7a
37
32
CROSS_COMPILE=armv7a-linux-androideabi
38
33
;;
39
34
esac
@@ -64,7 +59,7 @@ case "$@" in
64
59
* simulator* )
65
60
echo " Building for iOS Simulator"
66
61
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"
68
63
SYSROOT=$( xcrun -sdk iphonesimulator --show-sdk-path)
69
64
: ${ARCHS:= " arm64 x86_64" }
70
65
: ${IPHONEOS_DEPLOYMENT_TARGET:= " 12.0" }
@@ -74,7 +69,7 @@ case "$@" in
74
69
* ioscatalyst* )
75
70
echo " Building for iOS macOS Catalyst"
76
71
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"
78
73
SYSROOT=$( xcrun -sdk macosx --show-sdk-path)
79
74
: ${ARCHS:= " arm64 x86_64" }
80
75
: ${IPHONEOS_DEPLOYMENT_TARGET:= " 12.0" }
@@ -84,7 +79,7 @@ case "$@" in
84
79
* ios* )
85
80
echo " Building for iOS"
86
81
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"
88
83
SYSROOT=$( xcrun -sdk iphoneos --show-sdk-path)
89
84
: ${ARCHS:= " arm64" }
90
85
: ${IPHONEOS_DEPLOYMENT_TARGET:= " 12.0" }
@@ -253,22 +248,11 @@ function openssl {
253
248
* )
254
249
for ARCH in ${ARCHS}
255
250
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
272
256
esac
273
257
make -s > /dev/null
274
258
if [[ ${ARCHS} == ${ARCH} * ]]; then
@@ -420,7 +404,7 @@ case "$@" in
420
404
* )
421
405
echo " Usage:"
422
406
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"
424
408
echo " tasks: xerces, xalan, openssl, xmlsec, xsd, all, help"
425
409
echo " To control iOS, macOS builds set environment variables:"
426
410
echo " minimum deployment target"
0 commit comments