Home  >  Q&A  >  body text

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

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

高洛峰高洛峰2765 days ago620

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 15:36:58

    官网明明有方法……

    参见:Skia / build

    iOS Run GN to generate your build files. Set target_os="ios" to build
    for 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.py
    out/Release/nanobench These commands will create and sign dm.app or
    nanobench.app packages you can push to iOS devices registered for
    Google development. ios-deploy makes installing and running these
    packages easy:

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

    reply
    0
  • Cancelreply