如何为iOS构建Skia

如何为iOS构建Skia

问题描述:

我尝试在ios上创建skia,然后下载它,然后在mac os上运行SampleApp.因此,我想在ios上使用它.但是当我打开xcodeproj时,项目中有很多文件退出!那么我该怎么办以及如何为iOS构建Skia? 谢谢你的进步!

I try to bulid skia on ios.And I down load it then run SampleApp on the mac os.So I want to use it on ios.But when I open the xcodeproj,there are so many files unexits in the project!So what can I do with it and How to build skia for ios?? Thank you for Advance!!

下面的命令对我有用,这个技巧是为了指示(好奇的)构建过程不要在构建计算机上寻找依赖项:

The commands below worked for me, this trick is to instruct the (curious) build process not to look for dependencies on the build machine:

[ -d depot_tools ] || git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
[ -d skia ] || git clone https://skia.googlesource.com/skia.git

export PATH="${PWD}/depot_tools:${PATH}"
cd skia
python tools/git-sync-deps
gn gen out/Release --args="is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_libwebp=false extra_cflags_cc=[\"-frtti\"]"
ninja -C out/Release skia