mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 11:27:32 -03:00
Update setup.sh
This commit is contained in:
parent
0481684870
commit
b9c674f74f
1 changed files with 29 additions and 0 deletions
29
setup.sh
29
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" &&
|
||||
|
||||
|
|
Loading…
Reference in a new issue