Browse Source

Remove commented code

pull/2/head
Hussein Kasem 2 years ago
parent
commit
2c4d160b59
1 changed files with 0 additions and 19 deletions
  1. +0
    -19
      build-android/build.sh

+ 0
- 19
build-android/build.sh View File

@ -2,8 +2,6 @@
build_version=1
ANDROID_PLATFORM=android-18
# openssl_build_version=1
# cyrus_sasl_build_version=1
archs="armeabi armeabi-v7a arm64-v8a x86 x86_64"
package_name=libetpan-android
@ -14,27 +12,12 @@ if test "x$ANDROID_NDK" = x ; then
exit 1
fi
# if test ! -f "$current_dir/dependencies/openssl/openssl-android-$openssl_build_version.zip" ; then
# echo Building OpenSSL first
# cd "$current_dir/dependencies/openssl"
# ./build.sh
# fi
# if test ! -f "$current_dir/dependencies/cyrus-sasl/cyrus-sasl-android-$cyrus_sasl_build_version.zip" ; then
# echo Building Cyrus SASL first
# cd "$current_dir/dependencies/cyrus-sasl"
# ./build.sh
# fi
function build {
rm -rf "$current_dir/obj"
cd "$current_dir/jni"
$ANDROID_NDK/ndk-build TARGET_PLATFORM=$ANDROID_PLATFORM TARGET_ARCH_ABI=$TARGET_ARCH_ABI \
ICONV_PATH=$ICONV_PREFIX
# \
# OPENSSL_PATH="$current_dir/third-party/openssl-android-$openssl_build_version" \
# CYRUS_SASL_PATH="$current_dir/third-party/cyrus-sasl-android-$cyrus_sasl_build_version"
mkdir -p "$current_dir/$package_name-$build_version/libs/$TARGET_ARCH_ABI"
cp "$current_dir/obj/local/$TARGET_ARCH_ABI/libetpan.a" "$current_dir/$package_name-$build_version/libs/$TARGET_ARCH_ABI"
@ -43,8 +26,6 @@ function build {
mkdir -p "$current_dir/third-party"
cd "$current_dir/third-party"
# unzip -qo "$current_dir/dependencies/openssl/openssl-android-$openssl_build_version.zip"
# unzip -qo "$current_dir/dependencies/cyrus-sasl/cyrus-sasl-android-$cyrus_sasl_build_version.zip"
cd "$current_dir/.."
tar xzf "$current_dir/../build-mac/autogen-result.tar.gz"


Loading…
Cancel
Save