mirror of https://github.com/BOINC/boinc.git
Merge pull request #4364 from talregev/TalR_armv6_vcpkg
[Android][Scripts] Compile armv6 with vcpkg
This commit is contained in:
commit
4a684c3ea3
|
@ -8,11 +8,13 @@ if (VCPKG_TARGET_TRIPLET MATCHES "^arm64-android")
|
|||
set(ANDROID_ABI arm64-v8a CACHE STRING "")
|
||||
elseif(VCPKG_TARGET_TRIPLET MATCHES "^armv6-android")
|
||||
set(ANDROID_ABI armeabi CACHE STRING "")
|
||||
set(ANDROID_ARM_MODE arm CACHE STRING "")
|
||||
elseif(VCPKG_TARGET_TRIPLET MATCHES "^arm-neon-android")
|
||||
set(ANDROID_ABI armeabi-v7a CACHE STRING "")
|
||||
set(ANDROID_ARM_NEON ON CACHE BOOL "")
|
||||
elseif(VCPKG_TARGET_TRIPLET MATCHES "^arm-android")
|
||||
set(ANDROID_ABI armeabi-v7a CACHE STRING "")
|
||||
if(DEFINED ENV{ANDROID_ARM_NEON})
|
||||
set(ANDROID_ARM_NEON $ENV{ANDROID_ARM_NEON} CACHE STRING "")
|
||||
endif()
|
||||
set(ANDROID_ARM_NEON OFF CACHE BOOL "")
|
||||
elseif(VCPKG_TARGET_TRIPLET MATCHES "^x64-android")
|
||||
set(ANDROID_ABI x86_64 CACHE STRING "")
|
||||
elseif(VCPKG_TARGET_TRIPLET MATCHES "^x86-android")
|
||||
|
@ -62,4 +64,3 @@ if(NOT _VCPKG_ANDROID_TOOLCHAIN)
|
|||
string(APPEND CMAKE_EXE_LINKER_FLAGS_RELEASE " ${VCPKG_LINKER_FLAGS_RELEASE} ")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
@ -3,5 +3,4 @@ set(VCPKG_CRT_LINKAGE static)
|
|||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
set(VCPKG_CMAKE_SYSTEM_NAME Android)
|
||||
set(VCPKG_CMAKE_SYSTEM_VERSION 16)
|
||||
set(ENV{ANDROID_ARM_NEON} FALSE)
|
||||
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/../../toolchains/android.cmake")
|
||||
|
|
|
@ -3,5 +3,4 @@ set(VCPKG_CRT_LINKAGE static)
|
|||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
set(VCPKG_CMAKE_SYSTEM_NAME Android)
|
||||
set(VCPKG_CMAKE_SYSTEM_VERSION 16)
|
||||
set(ENV{ANDROID_ARM_NEON} TRUE)
|
||||
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/../../toolchains/android.cmake")
|
|
@ -145,10 +145,6 @@ if [ "${silent}" = "yes" ]; then
|
|||
export STDOUT_TARGET="/dev/null"
|
||||
fi
|
||||
|
||||
if [ $arch = "armv6" ]; then
|
||||
build_with_vcpkg="no"
|
||||
fi
|
||||
|
||||
export NDK_FLAGFILE="$PREFIX/NDK-${NDK_VERSION}-${REV}_done"
|
||||
export NDK_ARMV6_FLAGFILE="$PREFIX/NDK-${NDK_ARMV6_VERSION}-armv6-${ARMV6_REV}_done"
|
||||
export NDK_ROOT=$BUILD_DIR/android-ndk-r${NDK_VERSION}
|
||||
|
@ -249,7 +245,7 @@ packegesList()
|
|||
list_pkgs="$list_pkgs $1:arm-android"
|
||||
fi
|
||||
if [ $arch = "neon" ]; then
|
||||
list_pkgs="$list_pkgs $1:arm-android-neon"
|
||||
list_pkgs="$list_pkgs $1:arm-neon-android"
|
||||
fi
|
||||
if [ $arch = "arm64" ]; then
|
||||
list_pkgs="$list_pkgs $1:arm64-android"
|
||||
|
|
|
@ -44,7 +44,6 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL
|
|||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -D__ANDROID_API__=16"
|
||||
export LDFLAGS="$CONFIG_LDFLAGS -llog -fPIE -pie -latomic -static-libstdc++ -march=armv7-a -Wl,--fix-cortex-a8"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
||||
MAKE_FLAGS=""
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -DDECLARE_TIMEZONE -W
|
|||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export LDFLAGS="$CONFIG_LDFLAGS -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
||||
MAKE_FLAGS=""
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL
|
|||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -march=armv6 -mfloat-abi=softfp -mfpu=vfp -D__ANDROID_API__=16 -DARMV6"
|
||||
export LDFLAGS="$CONFIG_LDFLAGS -L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++ -march=armv6"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
||||
# Prepare android toolchain and environment
|
||||
./build_androidtc_armv6.sh
|
||||
|
|
|
@ -44,7 +44,6 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCL
|
|||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=16"
|
||||
export LDFLAGS="$CONFIG_LDFLAGS -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
||||
MAKE_FLAGS=""
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@ export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -DDECLARE_TIMEZONE -W
|
|||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export LDFLAGS="$CONFIG_LDFLAGS -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
||||
MAKE_FLAGS=""
|
||||
|
||||
|
|
Loading…
Reference in New Issue