Skip to content

Commit b9f448b

Browse files
author
az
committed
fix bug for dir on android
1 parent 5256bb6 commit b9f448b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

script/android-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ echo "##########################################################################
2323
echo "#### Global Variable Partition #####" >/dev/null
2424
echo "###############################################################################" >/dev/null
2525

26-
export COMMON_PLATFORM_TYPE="Android"
26+
export COMMON_PLATFORM_TYPE="android"
2727
export ANDROID_ARCHS=("armeabi-v7a" "arm64-v8a" "x86" "x86-64")
2828
export ANDROID_TRIPLES=("arm-linux-androideabi" "aarch64-linux-android" "i686-linux-android" "x86_64-linux-android")
2929
export ANDROID_API=23

script/android-curl.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ function android_curl_printf_variable() {
4141

4242
function android_curl_pre_tool_check() {
4343

44-
openssl_output_dir="${COMMON_OUTPUT_DIR}/$(common_get_library_name_from_id 1)"
44+
openssl_output_dir="${COMMON_OUTPUT_DIR}/${COMMON_PLATFORM_TYPE}/$(common_get_library_name_from_id 1)"
4545
if [ ! -d "${openssl_output_dir}" ]; then
4646
common_die "Please build the openssl library first!"
4747
fi
48-
nghttp2_output_dir="${COMMON_OUTPUT_DIR}/$(common_get_library_name_from_id 2)"
48+
nghttp2_output_dir="${COMMON_OUTPUT_DIR}/${COMMON_PLATFORM_TYPE}/$(common_get_library_name_from_id 2)"
4949
if [ ! -d "${nghttp2_output_dir}" ]; then
5050
common_die "Please build the nghttp2 library first!"
5151
fi
5252

5353
curl_input_dir="${COMMON_INPUT_DIR}/${COMMON_LIBRARY_NAME}"
54-
curl_output_dir="${COMMON_OUTPUT_DIR}/${COMMON_LIBRARY_NAME}"
54+
curl_output_dir="${COMMON_OUTPUT_DIR}/${COMMON_PLATFORM_TYPE}/${COMMON_LIBRARY_NAME}"
5555

5656
curl_zip_file="${COMMON_DOWNLOAD_ADRESS##*/}"
5757
curl_zip_file_no_suffix=${curl_zip_file%.tar.gz}

script/android-nghttp2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function android_nghttp2_printf_variable() {
3838
function android_nghttp2_pre_tool_check() {
3939

4040
nghttp2_input_dir="${COMMON_INPUT_DIR}/${COMMON_LIBRARY_NAME}"
41-
nghttp2_output_dir="${COMMON_OUTPUT_DIR}/${COMMON_LIBRARY_NAME}"
41+
nghttp2_output_dir="${COMMON_OUTPUT_DIR}/${COMMON_PLATFORM_TYPE}/${COMMON_LIBRARY_NAME}"
4242

4343
nghttp2_zip_file="${COMMON_DOWNLOAD_ADRESS##*/}"
4444
nghttp2_zip_file_no_suffix=${nghttp2_zip_file%.tar.gz}

script/android-openssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function android_openssl_printf_variable() {
3838
function android_openssl_pre_tool_check() {
3939

4040
openssl_input_dir="${COMMON_INPUT_DIR}/${COMMON_LIBRARY_NAME}"
41-
openssl_output_dir="${COMMON_OUTPUT_DIR}/${COMMON_LIBRARY_NAME}"
41+
openssl_output_dir="${COMMON_OUTPUT_DIR}/${COMMON_PLATFORM_TYPE}/${COMMON_LIBRARY_NAME}"
4242

4343
openssl_zip_file="${COMMON_DOWNLOAD_ADRESS##*/}"
4444
openssl_zip_file_no_suffix=${openssl_zip_file%.tar.gz}

0 commit comments

Comments
 (0)