@@ -109,7 +109,6 @@ declare_package libxml2 "libxml2" "MIT" \
109
109
declare_package curl " curl" " MIT" " https://curl.se"
110
110
declare_package boringssl " boringssl" " OpenSSL AND ISC AND MIT" \
111
111
" https://boringssl.googlesource.com/boringssl/"
112
- declare_package zlib " zlib" " Zlib" " https://zlib.net"
113
112
114
113
# Parse command line arguments
115
114
android_sdk_version=0.1
@@ -201,8 +200,6 @@ curl_version=${curl_desc#curl-}
201
200
202
201
boringssl_version=$( describe ${source_dir} /boringssl)
203
202
204
- zlib_version=$( versionFromTag ${source_dir} /zlib)
205
-
206
203
function quiet_pushd {
207
204
pushd " $1 " > /dev/null 2>&1
208
205
}
@@ -232,7 +229,6 @@ echo " - Swift ${swift_version}"
232
229
echo " - libxml2 ${libxml2_version} "
233
230
echo " - curl ${curl_version} "
234
231
echo " - BoringSSL ${boringssl_version} "
235
- echo " - zlib ${zlib_version} "
236
232
237
233
function run() {
238
234
echo " $@ "
@@ -241,7 +237,7 @@ function run() {
241
237
242
238
header " Patching Sources"
243
239
244
- quiet_pushd ${source_dir}
240
+ quiet_pushd ${source_dir} /swift-project
245
241
patch=" ${patches_dir} /swift-android.patch"
246
242
247
243
# patch the patch, which seems to only be needed for an API less than 28
@@ -251,9 +247,9 @@ quiet_pushd ${source_dir}
251
247
# remove the need to link in android-execinfo
252
248
perl -pi -e ' s/dispatch android-execinfo/dispatch/g' $patch
253
249
254
- if git apply --reverse --check " $patch " > /dev/null 2>&1 ; then
250
+ if git apply --reverse --check " $patch " ; then
255
251
echo " already patched"
256
- elif git apply " $patch " > /dev/null 2>&1 ; then
252
+ elif git apply " $patch " ; then
257
253
echo " done"
258
254
else
259
255
echo " failed"
@@ -266,9 +262,9 @@ quiet_pushd ${source_dir}
266
262
testing_patch=" ${patches_dir} /swift-android-testing-except-release.patch"
267
263
fi
268
264
269
- if git apply --reverse --check " $testing_patch " > /dev/null 2>&1 ; then
265
+ if git apply --reverse --check " $testing_patch " ; then
270
266
echo " already patched"
271
- elif git apply " $testing_patch " > /dev/null 2>&1 ; then
267
+ elif git apply " $testing_patch " ; then
272
268
echo " done"
273
269
else
274
270
echo " failed"
0 commit comments