Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteriskZuo committed Jun 3, 2020
1 parent 6927ea6 commit ed7e0da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions script/android-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export ANDROID_TRIPLES=("arm-linux-androideabi" "aarch64-linux-android" "i686-li
export ANDROID_API=23

# for test
ANDROID_ARCHS=("armeabi-v7a")
ANDROID_TRIPLES=("arm-linux-androideabi")
ANDROID_API=23
# ANDROID_ARCHS=("armeabi-v7a")
# ANDROID_TRIPLES=("arm-linux-androideabi")
# ANDROID_API=23

echo "###############################################################################" >/dev/null
echo "#### Function Partition #####" >/dev/null
Expand Down
8 changes: 6 additions & 2 deletions script/android-protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,20 @@ function android_protobuf_build_config_make() {
pushd .
cd "$protobuf_zip_file_no_suffix_path"

# git submodule update --init --recursive
if [[ "${library_arch}" == "x86-64" ]]; then

./configure --host=$(android_get_build_host "${library_arch}") --prefix="${library_arch_path}" --with-protoc=protobuf_command >"${library_arch_path}/log/output.log" 2>&1 || common_die "configure error!"
# scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto , so use --disable-shared
./configure --host=$(android_get_build_host "${library_arch}") --prefix="${library_arch_path}" --disable-shared --with-protoc=protobuf_command >"${library_arch_path}/log/output.log" 2>&1 || common_die "configure error!"

elif [[ "${library_arch}" == "x86" ]]; then

./configure --host=$(android_get_build_host "${library_arch}") --prefix="${library_arch_path}" --with-protoc=protobuf_command >"${library_arch_path}/log/output.log" 2>&1 || common_die "configure error!"
# scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto , so use --disable-shared
./configure --host=$(android_get_build_host "${library_arch}") --prefix="${library_arch_path}" --disable-shared --with-protoc=protobuf_command >"${library_arch_path}/log/output.log" 2>&1 || common_die "configure error!"

elif [[ "${library_arch}" == "armeabi-v7a" ]]; then

# scc_info_FileDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto , so use --disable-shared
./configure --host=$(android_get_build_host "${library_arch}") --prefix="${library_arch_path}" --disable-shared --with-protoc=protobuf_command >"${library_arch_path}/log/output.log" 2>&1 || common_die "configure error!"

elif [[ "${library_arch}" == "arm64-v8a" ]]; then
Expand Down

0 comments on commit ed7e0da

Please sign in to comment.