c++ - 如何编译iOS版本Skia ?

浏览:31日期:2023-03-24

问题描述

如果编译 iOS的版本的 Skia。官网没有提供编译方法。

问题解答

回答1:

官网明明有方法……

参见:Skia / build

iOS Run GN to generate your build files. Set target_os='ios' to buildfor iOS. This defaults to target_cpu='arm64'.

bin/gn gen out/ios64 --args=’target_os='ios'’ bin/gn gen out/ios32--args=’target_os='ios' target_cpu='arm'’ Googlers who want to sign and run iOS test binaries can do so by running something like

python gn/package_ios.py out/Debug/dm python gn/package_ios.pyout/Release/nanobench These commands will create and sign dm.app ornanobench.app packages you can push to iOS devices registered forGoogle development. ios-deploy makes installing and running thesepackages easy:

ios-deploy -b out/Debug/dm.app -d --args '--match foo' If you findyourself missing a Google signing identity or provisioning profile,you’ll want to have a read through go/appledev.

相关文章: