Update setup.sh

This commit is contained in:
Alexander David Frick 2022-10-14 23:39:51 -05:00 committed by GitHub
parent 0481684870
commit b9c674f74f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,10 @@ displayHelp () {
printf "${bold}${YEL}Use the --mac flag for MacOS builds.${c0}\n" &&
printf "${bold}${YEL}Use the --raspi flag for Raspberry Pi builds.${c0}\n" &&
printf "${bold}${YEL}Use the --woa flag for Windows on ARM builds.${c0}\n" &&
printf "${bold}${YEL}Use the --avx2 flag for AVX2 Builds.${c0}\n" &&
printf "${bold}${YEL}Use the --sse3 flag for SSE3 Builds.${c0}\n" &&
printf "${bold}${YEL}IMPORTANT: For Polly builds, first run build_polly.sh in Thorium/infra, then use the setup_polly.sh${c0}\n" &&
printf "${bold}${YEL}script in Thorium/other/Polly. Both of these actions should be taken AFTER running this script!${c0}\n" &&
printf "\n"
}
@ -110,6 +114,31 @@ case $1 in
--woa) copyWOA;
esac
# Copy AVX2 files
copyAVX2 () {
printf "\n" &&
printf "${YEL}Copying AVX2 build files...${c0}\n" &&
cp -r -v other/AVX2/build/config/* $HOME/chromium/src/build/config/ &&
cp -r -v other/AVX2/third_party/opus/src/* $HOME/chromium/src/third_party/opus/src/ &&
printf "\n"
}
case $1 in
--avx2) copyAVX2;
esac
# Copy SSE3 files
copySSE3 () {
printf "\n" &&
printf "${YEL}Copying SSE3 build files...${c0}\n" &&
cp -r -v other/SSE3/build/config/* $HOME/chromium/src/build/config/ &&
printf "\n"
}
case $1 in
--sse3) copySSE3;
esac
printf "${GRE}Done!\n" &&
printf "\n" &&