From b9c674f74f1e2344401bf5fcda9df06ec4cb20d2 Mon Sep 17 00:00:00 2001 From: Alexander David Frick Date: Fri, 14 Oct 2022 23:39:51 -0500 Subject: [PATCH] Update setup.sh --- setup.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/setup.sh b/setup.sh index 24fd8ec0..9d9c07a4 100755 --- a/setup.sh +++ b/setup.sh @@ -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" &&