more android fixes

This commit is contained in:
Alexander Frick 2023-10-14 08:42:59 -05:00
parent dab59a8500
commit 664f52a658
3 changed files with 3 additions and 21 deletions

View File

@ -2218,7 +2218,7 @@ if (is_win) {
}
if (current_cpu == "arm64") {
common_optimize_on_cflags += [ "-march=armv8-a+simd", ]
common_optimize_on_cflags += [ "-march=armv8-a", ]
}
common_optimize_on_cflags += [

View File

@ -20,7 +20,6 @@ displayHelp () {
printf "\n" &&
printf "${bold}${GRE}Script to build Thorium for Android.${c0}\n" &&
printf "${underline}${YEL}Usage:${c0} build.sh # (where # is number of jobs)${c0}\n" &&
printf "${YEL}Use the --arm32 flag to make an ARM32 Build.${c0}\n" &&
printf "${YEL}Use the --help flag to show this help.${c0}\n" &&
printf "\n"
}
@ -58,22 +57,5 @@ cat ~/thorium/logos/thorium_logo_ascii_art.txt &&
printf "${GRE}${bold}Build Completed. ${YEL}${bold}You can copy the .apk(s) to your device or use ADB to install it.\n" &&
printf "${GRE}${bold}They are located in \'//chromium/src/out/thorium/apks/\'\n" &&
tput sgr0
}
case $1 in
--arm32) buildARM32; exit 0;;
esac
# Build Thorium for ARM64
export NINJA_SUMMARIZE_BUILD=1 &&
export NINJA_STATUS="[%r processes, %f/%t @ %o/s | %e sec. ] " &&
cd ${CR_SRC_DIR} &&
autoninja -C out/thorium chrome_public_apk content_shell_apk system_webview_apk -j$@ &&
cat ~/thorium/logos/thorium_logo_ascii_art.txt &&
printf "${GRE}${bold}Build Completed. ${YEL}${bold}You can copy the .apk(s) to your device or use ADB to install it.\n" &&
printf "${GRE}${bold}They are located in \'//chromium/src/out/thorium/apks/\'\n" &&
tput sgr0 &&
exit 0

View File

@ -71,8 +71,8 @@ config("compiler") {
ldflags += [ "--target=$android_abi_target$compile_api_level" ]
if (current_cpu == "arm64") {
cflags += [ "-march=armv8-a+simd" ]
ldflags += [ "-march=armv8-a+simd" ]
cflags += [ "-march=armv8-a" ]
ldflags += [ "-march=armv8-a" ]
}
if (current_cpu == "arm") {