Created
August 16, 2021 11:57
-
-
Save kfitfk/7ab3aa2d33e92abfe9853682f91544c6 to your computer and use it in GitHub Desktop.
Revisions
-
kfitfk created this gist
Aug 16, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ # 下载安装 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