mirror of https://github.com/BOINC/boinc.git
Define neon test in buildAndroidBOINC-CI.sh
This commit is contained in:
parent
551c40cad3
commit
694202e424
|
@ -190,11 +190,24 @@ export ANDROID_TC=$PREFIX
|
|||
|
||||
export VERBOSE=$verbose
|
||||
|
||||
NeonTest()
|
||||
{
|
||||
list_libs="libcrypto.a libssl.a libcurl.a"
|
||||
|
||||
for i in $list_libs; do
|
||||
if [ $(readelf -A $(find $ANDROID_TC -name "$i") | grep -i neon | head -c1 | wc -c) -ne 0 ]; then
|
||||
echo "$i" is with neon optimization
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
case "$arch" in
|
||||
"arm")
|
||||
./build_openssl_arm.sh
|
||||
./build_curl_arm.sh
|
||||
./build_boinc_arm.sh
|
||||
NeonTest
|
||||
exit 0
|
||||
;;
|
||||
"arm64")
|
||||
|
|
|
@ -17,21 +17,4 @@ cd android/
|
|||
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --arch x86
|
||||
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --arch x86_64
|
||||
|
||||
ANDROID_TC="${ANDROID_TC:-../3rdParty/buildCache/android-tc/arm}"
|
||||
|
||||
if [ ! -d $ANDROID_TC ]; then
|
||||
echo You run this script from diffrent folder: $PWD
|
||||
echo Please run it from boinc/android
|
||||
exit 1
|
||||
fi
|
||||
|
||||
list_libs="libcrypto.a libssl.a libcurl.a"
|
||||
|
||||
for i in $list_libs; do
|
||||
if [ $(readelf -A $(find $ANDROID_TC -name "$i") | grep -i neon | head -c1 | wc -c) -ne 0 ]; then
|
||||
echo "$i" is with neon optimization
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo '===== BOINC for all platforms build done ====='
|
||||
|
|
|
@ -12,21 +12,4 @@ set -e
|
|||
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --silent --ci --arch x86
|
||||
./buildAndroidBOINC-CI.sh --cache_dir "$ANDROID_TC" --build_dir "$BUILD_DIR" --silent --ci --arch x86_64
|
||||
|
||||
ANDROID_TC="${ANDROID_TC:-../3rdParty/buildCache/android-tc/arm}"
|
||||
|
||||
if [ ! -d $ANDROID_TC ]; then
|
||||
echo You run this script from diffrent folder: $PWD
|
||||
echo Please run it from boinc/android
|
||||
exit 1
|
||||
fi
|
||||
|
||||
list_libs="libcrypto.a libssl.a libcurl.a"
|
||||
|
||||
for i in $list_libs; do
|
||||
if [ $(readelf -A $(find $ANDROID_TC -name "$i") | grep -i neon | head -c1 | wc -c) -ne 0 ]; then
|
||||
echo "$i" is with neon optimization
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo '===== BOINC for all platforms build done ====='
|
||||
|
|
Loading…
Reference in New Issue