Skip to content

Commit ca2b1a1

Browse files
committed
1 parent 797c594 commit ca2b1a1

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

swift-ci/sdks/android/build-local

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,5 @@ mkdir -p ${SDKROOT}/products
7171

7272
./scripts/fetch-source.sh --source-dir ${SDKROOT}/src --swift-tag ${SWIFT_TAG}
7373

74-
echo "CHECKING SOURCES: ${SDKROOT}/src"
75-
ls -la ${SDKROOT}/src
76-
7774
./scripts/build.sh --products-dir ${SDKROOT}/products --source-dir ${SDKROOT}/src --build-dir ${SDKROOT}/build --ndk-home ${ANDROID_NDK_HOME} --android-api ${ANDROID_API} --host-toolchain ${HOST_TOOLCHAIN} --archs ${TARGET_ARCHS} ${@}
7875

swift-ci/sdks/android/scripts/build.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ declare_package libxml2 "libxml2" "MIT" \
109109
declare_package curl "curl" "MIT" "https://curl.se"
110110
declare_package boringssl "boringssl" "OpenSSL AND ISC AND MIT" \
111111
"https://boringssl.googlesource.com/boringssl/"
112-
declare_package zlib "zlib" "Zlib" "https://zlib.net"
113112

114113
# Parse command line arguments
115114
android_sdk_version=0.1
@@ -201,8 +200,6 @@ curl_version=${curl_desc#curl-}
201200

202201
boringssl_version=$(describe ${source_dir}/boringssl)
203202

204-
zlib_version=$(versionFromTag ${source_dir}/zlib)
205-
206203
function quiet_pushd {
207204
pushd "$1" >/dev/null 2>&1
208205
}
@@ -232,7 +229,6 @@ echo " - Swift ${swift_version}"
232229
echo " - libxml2 ${libxml2_version}"
233230
echo " - curl ${curl_version}"
234231
echo " - BoringSSL ${boringssl_version}"
235-
echo " - zlib ${zlib_version}"
236232

237233
function run() {
238234
echo "$@"
@@ -241,7 +237,7 @@ function run() {
241237

242238
header "Patching Sources"
243239

244-
quiet_pushd ${source_dir}
240+
quiet_pushd ${source_dir}/swift-project
245241
patch="${patches_dir}/swift-android.patch"
246242

247243
# patch the patch, which seems to only be needed for an API less than 28
@@ -251,9 +247,9 @@ quiet_pushd ${source_dir}
251247
# remove the need to link in android-execinfo
252248
perl -pi -e 's/dispatch android-execinfo/dispatch/g' $patch
253249

254-
if git apply --reverse --check "$patch" >/dev/null 2>&1; then
250+
if git apply --reverse --check "$patch" ; then
255251
echo "already patched"
256-
elif git apply "$patch" >/dev/null 2>&1; then
252+
elif git apply "$patch" ; then
257253
echo "done"
258254
else
259255
echo "failed"
@@ -266,9 +262,9 @@ quiet_pushd ${source_dir}
266262
testing_patch="${patches_dir}/swift-android-testing-except-release.patch"
267263
fi
268264

269-
if git apply --reverse --check "$testing_patch" >/dev/null 2>&1; then
265+
if git apply --reverse --check "$testing_patch" ; then
270266
echo "already patched"
271-
elif git apply "$testing_patch" >/dev/null 2>&1; then
267+
elif git apply "$testing_patch" ; then
272268
echo "done"
273269
else
274270
echo "failed"

0 commit comments

Comments
 (0)