Update build_debug.sh
This commit is contained in:
parent
9b0d74323e
commit
23b5ea65cb
1 changed files with 39 additions and 5 deletions
|
@ -17,7 +17,7 @@ try() { "$@" || die "${RED}Failed $*"; }
|
||||||
# --help
|
# --help
|
||||||
displayHelp () {
|
displayHelp () {
|
||||||
printf "\n" &&
|
printf "\n" &&
|
||||||
printf "${bold}${YEL}Script to build Thorium on Linux.${c0}\n" &&
|
printf "${bold}${YEL}Script to build Thorium UI Debug Shell (views_examples_with_content).${c0}\n" &&
|
||||||
printf "${underline}Usage${c0}: build.sh # (where # is number of jobs)\n" &&
|
printf "${underline}Usage${c0}: build.sh # (where # is number of jobs)\n" &&
|
||||||
printf "\n"
|
printf "\n"
|
||||||
}
|
}
|
||||||
|
@ -27,13 +27,47 @@ case $1 in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
printf "\n" &&
|
printf "\n" &&
|
||||||
printf "${YEL}Building Thorium DEBUG for Linux...\n" &&
|
printf "${YEL}Building Thorium UI Debug Shell...\n" &&
|
||||||
printf "${GRE}\n" &&
|
printf "${GRE}\n" &&
|
||||||
|
|
||||||
# Build Thorium
|
# Build Thorium UI Debug Shell
|
||||||
export NINJA_SUMMARIZE_BUILD=1 &&
|
export NINJA_SUMMARIZE_BUILD=1 &&
|
||||||
|
|
||||||
../../infra/autoninja -C ~/chromium/src/out/thorium chrome chrome_sandbox chromedriver thorium_shell views_examples_with_content -j$@ &&
|
../../infra/autoninja -C ~/chromium/src/out/thorium views_examples_with_content -j$@ &&
|
||||||
|
|
||||||
printf "${GRE}Debugging Build Completed.\n" &&
|
mkdir -v ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell &&
|
||||||
|
mkdir -v ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/lib &&
|
||||||
|
|
||||||
|
cp -r -f -v icon_256.png ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell &&
|
||||||
|
cp -r -f -v thorium_debug_shell.ico ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell &&
|
||||||
|
cp -r -f -v Thorium_Debug_Shell.sh ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell &&
|
||||||
|
cp -r -f -v DEBUG_SHELL_README.md ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/README.md &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/locales ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/test_fonts ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/ui ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/libffmpeg.so ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/lib &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/libblink_test_plugin.so ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/blink_test_plugin.dll ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/icudtl.dat ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/content_resources.pak ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/libEGL.so ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/libGLESv2.so ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/libEGL.dll ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/libGLESv2.dll ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/libvk_swiftshader.so ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/vk_swiftshader.dll ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/libvulkan.so.1 ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/vulkan-1.dll ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/vk_swiftshader_icd.json ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/v8_context_snapshot.bin ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/v8_context_snapshot_generator ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/ui_resources_100_percent.pak ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/ui_test.pak ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/ui_test_200_percent.pak ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/views_examples_resources.pak ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/ &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/views_examples_with_content ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/thorium_debug_shell &&
|
||||||
|
cp -r -f -v ~/chromium/src/out/thorium/views_examples_with_content.exe ~/chromium/src/out/thorium/Thorium_UI_Debug_Shell/thorium_debug_shell.exe &&
|
||||||
|
|
||||||
|
|
||||||
|
printf "${GRE}Thorium UI Debug Shell Build Completed.\n" &&
|
||||||
tput sgr0
|
tput sgr0
|
||||||
|
|
Loading…
Reference in a new issue