devops: support --full argument for chromium compilation (#9965)
Like our other browser build scripts, chromium build now supports `--full` flag to install all the required dependencies.
This commit is contained in:
Родитель
d91d58cbec
Коммит
3b545b86bc
|
@ -78,34 +78,34 @@ elif [[ "$BUILD_FLAVOR" == "ffmpeg-cross-compile-win64" ]]; then
|
|||
# ===========================
|
||||
elif [[ "$BUILD_FLAVOR" == "chromium-win64" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
EXTRA_BUILD_ARGS="--compile-win64"
|
||||
EXTRA_BUILD_ARGS="--compile-win64 --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-win64"
|
||||
EXPECTED_HOST_OS="MINGW"
|
||||
BUILD_BLOB_NAME="chromium-win64.zip"
|
||||
elif [[ "$BUILD_FLAVOR" == "chromium-mac" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
EXTRA_BUILD_ARGS="--compile-mac"
|
||||
EXTRA_BUILD_ARGS="--compile-mac --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-mac"
|
||||
EXPECTED_HOST_OS="Darwin"
|
||||
EXPECTED_HOST_OS_VERSION="10.15"
|
||||
BUILD_BLOB_NAME="chromium-mac.zip"
|
||||
elif [[ "$BUILD_FLAVOR" == "chromium-mac-arm64" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
EXTRA_BUILD_ARGS="--compile-mac-arm64"
|
||||
EXTRA_BUILD_ARGS="--compile-mac-arm64 --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-mac-arm64"
|
||||
EXPECTED_HOST_OS="Darwin"
|
||||
EXPECTED_HOST_OS_VERSION="10.15"
|
||||
BUILD_BLOB_NAME="chromium-mac-arm64.zip"
|
||||
elif [[ "$BUILD_FLAVOR" == "chromium-linux" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
EXTRA_BUILD_ARGS="--compile-linux"
|
||||
EXTRA_BUILD_ARGS="--compile-linux --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-linux"
|
||||
EXPECTED_HOST_OS="Ubuntu"
|
||||
EXPECTED_HOST_OS_VERSION="18.04"
|
||||
BUILD_BLOB_NAME="chromium-linux.zip"
|
||||
elif [[ "$BUILD_FLAVOR" == "chromium-linux-arm64" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
EXTRA_BUILD_ARGS="--compile-linux-arm64"
|
||||
EXTRA_BUILD_ARGS="--compile-linux-arm64 --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-linux-arm64"
|
||||
EXPECTED_HOST_OS="Ubuntu"
|
||||
EXPECTED_HOST_OS_VERSION="20.04"
|
||||
|
@ -117,7 +117,7 @@ elif [[ "$BUILD_FLAVOR" == "chromium-linux-arm64" ]]; then
|
|||
elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-win64" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
BROWSER_DISPLAY_NAME="chromium-with-symbols"
|
||||
EXTRA_BUILD_ARGS="--compile-win64 --symbols"
|
||||
EXTRA_BUILD_ARGS="--compile-win64 --symbols --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-win64"
|
||||
EXPECTED_HOST_OS="MINGW"
|
||||
BUILD_BLOB_NAME="chromium-with-symbols-win64.zip"
|
||||
|
@ -125,7 +125,7 @@ elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-win64" ]]; then
|
|||
elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-mac" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
BROWSER_DISPLAY_NAME="chromium-with-symbols"
|
||||
EXTRA_BUILD_ARGS="--compile-mac --symbols"
|
||||
EXTRA_BUILD_ARGS="--compile-mac --symbols --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-mac"
|
||||
EXPECTED_HOST_OS="Darwin"
|
||||
EXPECTED_HOST_OS_VERSION="10.15"
|
||||
|
@ -134,7 +134,7 @@ elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-mac" ]]; then
|
|||
elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-mac-arm64" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
BROWSER_DISPLAY_NAME="chromium-with-symbols"
|
||||
EXTRA_BUILD_ARGS="--compile-mac-arm64 --symbols"
|
||||
EXTRA_BUILD_ARGS="--compile-mac-arm64 --symbols --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-mac-arm64"
|
||||
EXPECTED_HOST_OS="Darwin"
|
||||
EXPECTED_HOST_OS_VERSION="10.15"
|
||||
|
@ -143,7 +143,7 @@ elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-mac-arm64" ]]; then
|
|||
elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-linux" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
BROWSER_DISPLAY_NAME="chromium-with-symbols"
|
||||
EXTRA_BUILD_ARGS="--compile-linux --symbols"
|
||||
EXTRA_BUILD_ARGS="--compile-linux --symbols --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-linux"
|
||||
EXPECTED_HOST_OS="Ubuntu"
|
||||
EXPECTED_HOST_OS_VERSION="18.04"
|
||||
|
@ -152,7 +152,7 @@ elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-linux" ]]; then
|
|||
elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-linux-arm64" ]]; then
|
||||
BROWSER_NAME="chromium"
|
||||
BROWSER_DISPLAY_NAME="chromium-with-symbols-arm64"
|
||||
EXTRA_BUILD_ARGS="--compile-linux-arm64 --symbols"
|
||||
EXTRA_BUILD_ARGS="--compile-linux-arm64 --symbols --full"
|
||||
EXTRA_ARCHIVE_ARGS="--compile-linux-arm64"
|
||||
EXPECTED_HOST_OS="Ubuntu"
|
||||
EXPECTED_HOST_OS_VERSION="20.04"
|
||||
|
|
|
@ -6,7 +6,7 @@ trap "cd $(pwd -P)" EXIT
|
|||
cd "$(dirname "$0")"
|
||||
|
||||
USAGE=$(cat<<EOF
|
||||
usage: $(basename "$0") [--mirror|--mirror-linux|--mirror-win64|--mirror-mac|--compile-mac-arm64|--compile-linux|--compile-linux-arm64|--compile-win64|--compile-mac]
|
||||
usage: $(basename "$0") [--mirror|--mirror-linux|--mirror-win64|--mirror-mac|--compile-mac-arm64|--compile-linux|--compile-linux-arm64|--compile-win64|--compile-mac] [--symbols] [--full]
|
||||
|
||||
Either compiles chromium or mirrors it from Chromium Continuous Builds CDN.
|
||||
EOF
|
||||
|
@ -22,7 +22,7 @@ main() {
|
|||
elif [[ $1 == "--mirror"* ]]; then
|
||||
mirror_chromium "$1"
|
||||
elif [[ $1 == "--compile"* ]]; then
|
||||
compile_chromium "$1"
|
||||
compile_chromium "$1" "$2" "$3"
|
||||
else
|
||||
echo "ERROR: unknown first argument. Use --help for details."
|
||||
exit 1
|
||||
|
@ -59,7 +59,7 @@ compile_chromium() {
|
|||
mkdir -p "./out/Default"
|
||||
echo "is_debug = false" > ./out/Default/args.gn
|
||||
echo "dcheck_always_on = false" >> ./out/Default/args.gn
|
||||
if [[ $2 == "--symbols" ]]; then
|
||||
if [[ $2 == "--symbols" || $3 == "--symbols" ]]; then
|
||||
echo "symbol_level = 1" >> ./out/Default/args.gn
|
||||
else
|
||||
echo "symbol_level = 0" >> ./out/Default/args.gn
|
||||
|
@ -84,9 +84,14 @@ compile_chromium() {
|
|||
cat ./out/Default/args.gn
|
||||
echo "===== ======= ====="
|
||||
|
||||
if [[ $1 == "--compile-linux-arm64" ]]; then
|
||||
# Install sysroot image, see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/linux/chromium_arm.md
|
||||
./build/linux/sysroot_scripts/install-sysroot.py --arch=arm
|
||||
if [[ $2 == "--full" || $3 == "--full" ]]; then
|
||||
if [[ $(uname) == "--compile-linux" ]]; then
|
||||
./build/install-build-deps.sh
|
||||
elif [[ $1 == "--compile-linux-arm64" ]]; then
|
||||
./build/install-build-deps.sh --arm
|
||||
# Install sysroot image, see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/linux/chromium_arm.md
|
||||
./build/linux/sysroot_scripts/install-sysroot.py --arch=arm
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $1 == "--compile-win"* ]]; then
|
||||
|
|
|
@ -52,7 +52,7 @@ function prepare_chromium_checkout {
|
|||
fetch --nohooks chromium
|
||||
cd src
|
||||
if [[ $(uname) == "Linux" ]]; then
|
||||
./build/install-build-deps.sh --arm
|
||||
./build/install-build-deps.sh
|
||||
fi
|
||||
gclient runhooks
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче