Build Skia & libyuv

Skia

export HTTPS_PROXY=<YOUR_HTTP_PROXY>
export PATH="${DEPOT_TOOLS_DIR}:${PATH}"
git clone https://skia.googlesource.com/skia.git
cd skia
python tools/git-sync-deps
bin/gn gen out/Static --args='is_official_build=true skia_enable_gpu=false skia_enable_pdf=false skia_enable_discrete_gpu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false'
ninja -C out/Static

libyuv

export HTTPS_PROXY=<YOUR_HTTP_PROXY>
export PATH="${DEPOT_TOOLS_DIR}:${PATH}"
gclient config --name src https://chromium.googlesource.com/libyuv/libyuv
mkdir -p cache
sed -i 's/cache_dir = None/cache_dir = \"cache\"/g' .gclient
gclient sync
cd src
gn gen out/Release "--args=is_debug=false"
ninja -C out/Release

注:在梯子不稳定的情况下,启用cache_dir能解决git clone third_party中断的问题。

 

Leave a Reply

Your email address will not be published. Required fields are marked *