Created
August 16, 2021 11:57
-
-
Save kfitfk/7ab3aa2d33e92abfe9853682f91544c6 to your computer and use it in GitHub Desktop.
build skia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 下载安装 depot_tools | |
git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' | |
export PATH="${PWD}/depot_tools:${PATH}" | |
# 下载 skia | |
git clone https://skia.googlesource.com/skia.git | |
cd skia | |
python2 tools/git-sync-deps | |
# 编译 skia | |
# 遇到 libjpeg 相关的报错,检查一下系统里是否有多个 libjpeg 版本,可以增加 `skia_use_libjpeg_turbo_decode=false skia_use_libjpeg_turbo_encode=false` 选项 | |
# 遇到 fatal error: 'unicode/unistr.h' file not found,增加 `skia_use_system_icu=false` 选项 | |
bin/gn gen out/Static --args="is_official_build=true skia_use_system_icu=false skia_use_harfbuzz=false skia_use_libjpeg_turbo_decode=false skia_use_libjpeg_turbo_encode=false skia_use_ffmpeg=true extra_cflags_cc=[\"-frtti\"]" | |
ninja -C out/Static skia | |
# 更新 skia | |
git pull | |
python tools/git-sync-deps | |
ninja -C out/Static skia | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment