๐Ÿ‘ป OS & Tools/Ubuntu

build Chromium in Ubuntu

๋ณต๋งŒ 2019. 12. 30. 22:44

1. depot_tools ์„ค์น˜

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH="$PATH:/path/to/depot_tools"

 

2. ์ฝ”๋“œ ๋‹ค์šด๋กœ๋“œ, additional build dependency ์„ค์น˜, chromium-specific hooks ์„ค์น˜

mkdir chromium
cd chromium
fetch --nohooks chromium # ์•ฝ 1์‹œ๊ฐ„ ์†Œ์š”
cd src
./build/install-build-deps.sh
gclient runhooks

 

3. ๋นŒ๋“œ ์„ค์ •

#Default

gn args out/Default
# ๋‹ค์Œ ๋‚ด์šฉ๋“ค์„ ์ถ”๊ฐ€
is_debug = true
is_component = true
blink_symbol_level = 0

 

4. ๋นŒ๋“œ

ninja -C out/Default chrome

 

5. ์‹คํ–‰

./out/Default/chrome
๋ฐ˜์‘ํ˜•