chromium 编译 - housekeeper-software/tech GitHub Wiki
我们只编译 base库
75.0.3770.100这个版本之后的版本,md5将转为boringssl,另外,80版本之后,将使用absl作为基础库,
所以,我们选择满足条件的最后一个75版本作为分支.
https://chromium.googlesource.com/chromium/src/+/75.0.3770.100
以下的ge gen配置并无实际意义,只是为了让编译系统生产合适的buildflags文件,并且可以在linux环境下编译成功。
目前这个版本不能在rv1109工具链下编译成功,只能用源码自行编译。主要是涉及到libnss3库的问题
mkdir ~/chromium && cd ~/chromium
fetch --nohooks chromium
git checkout 75.0.3770.100 -b v-75.0.3770.100
gclient sync --with_branch_heads
gn gen out/Debug --args='target_os="linux"
target_cpu="x64"
is_debug=true
is_clang=false
is_official_build=false
enable_nacl=false
treat_warnings_as_errors=false
is_component_build=true
use_cups=false
use_custom_libcxx=false
use_rtti=false
use_custom_libcxx_for_host=false
use_glib=false
use_aura=false
use_dbus=false
use_gold=true
use_goma=false
use_lld=false
use_udev=false
linux_use_bundled_binutils=true
use_ozone=true
ozone_platform="headless"
ozone_auto_platforms=true
ozone_platform_x11=false
ozone_platform_wayland=false
ozone_platform_headless=true'
autoninja -C out/Debug base
编译 88.0.4324.182
gn gen out/Debug --args='target_os="linux"
target_cpu="x64"
is_debug=true
is_clang=false
is_official_build=false
enable_nacl=false
treat_warnings_as_errors=false
is_component_build=true
use_cups=false
use_custom_libcxx=false
use_rtti=false
use_custom_libcxx_for_host=false
use_partition_alloc=true
use_allocator_shim=false
use_allocator="none"
use_glib=false
use_dbus=false
use_gold=true
use_goma=false
use_lld=false
use_udev=false'