File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 6
6
#
7
7
# ===----------------------------------------------------------------------===
8
8
9
+ # default architectures to build for
10
+ TARGET_ARCHS=${TARGET_ARCHS:- aarch64,x86_64,armv7}
11
+
12
+ ANDROID_NDK_VERSION=android-ndk-r27c
13
+ ANDROID_API=28
14
+
9
15
if [[ " $DOCKER " == " " ]]; then
10
16
DOCKER=docker
11
17
fi
26
32
HOST_OS=ubuntu24.04
27
33
source ./scripts/toolchain-vars.sh
28
34
29
- ANDROID_API=28
30
- ANDROID_NDK_VERSION=android-ndk-r27c
31
-
32
35
# Build the Docker image
33
36
$DOCKER build --build-arg OS_ARCH_SUFFIX=$OS_ARCH_SUFFIX --build-arg SWIFT_TOOLCHAIN_URL=$SWIFT_TOOLCHAIN_URL --build-arg ANDROID_NDK_VERSION=$ANDROID_NDK_VERSION -t swift-android .
34
37
35
- # Check-out the sources
38
+ # Check-out and patch the sources
36
39
./scripts/fetch-source.sh --source-dir source --swift-tag ${SWIFT_TAG}
37
-
38
40
./scripts/patch-sources.sh source
39
41
40
42
mkdir -p products
Original file line number Diff line number Diff line change @@ -232,11 +232,6 @@ function run() {
232
232
}
233
233
234
234
for arch in $archs ; do
235
- # enable short-circuiting the individual builds
236
- if [[ ! -z " $SWIFT_ANDROID_ARCHIVEONLY " ]]; then
237
- continue
238
- fi
239
-
240
235
case $arch in
241
236
armv7) target_host=" arm-linux-androideabi" ; compiler_target_host=" armv7a-linux-androideabi$android_api " ; android_abi=" armeabi-v7a" ;;
242
237
aarch64) target_host=" aarch64-linux-android" ; compiler_target_host=" $target_host$android_api " ; android_abi=" arm64-v8a" ;;
@@ -629,13 +624,11 @@ EOF
629
624
630
625
quiet_popd
631
626
632
- if [[ -z " $SWIFT_ANDROID_ARCHIVEONLY " ]]; then
633
- header " Outputting compressed bundle"
627
+ header " Outputting compressed bundle"
634
628
635
- quiet_pushd " ${build_dir} "
636
- mkdir -p " ${products_dir} "
637
- tar czf " ${products_dir} /${bundle} .tar.gz" " ${bundle} "
638
- quiet_popd
639
- fi
629
+ quiet_pushd " ${build_dir} "
630
+ mkdir -p " ${products_dir} "
631
+ tar czf " ${products_dir} /${bundle} .tar.gz" " ${bundle} "
632
+ quiet_popd
640
633
641
634
groupend
You can’t perform that action at this time.
0 commit comments