skia2/tools/skottie_ios_app
Kevin Lubick c3a448ec61 [bazel] Put licenses() after legacy_exports
G3 prefers license() first.

This was done mechanically with a big find/replace

Change-Id: I8c33c7bc10a6bec42e966cad81c259954e841811
Bug: skia:13211
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/535898
Reviewed-by: Ben Wagner <bungeman@google.com>
2022-05-02 15:04:33 +00:00
..
BUILD.bazel [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
BUILD.gn
GrContextHolder.h
GrContextHolder.mm
Info.plist
main.mm
README.md
SkiaContext.h
SkiaContext.mm
SkiaGLContext.mm Reland "Reland "[includes] Remove SkColorSpace include from SkImageInfo"" 2022-05-02 13:33:21 +00:00
SkiaMetalContext.mm
SkiaUIContext.mm Reland "[includes] Remove link between SkImage.h and SkImageEncoder.h" 2022-03-10 04:47:51 +00:00
SkiaViewController.h
SkiaViewController.mm
SkMetalViewBridge.h
SkMetalViewBridge.mm [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
SkottieViewController.h
SkottieViewController.mm

Skottie iOS Example App

Metal

How to compile for the Metal backend:

cd $SKIA_ROOT_DIRECTORY

mkdir -p out/ios_arm64_mtl
cat > out/ios_arm64_mtl/args.gn <<EOM
target_os="ios"
target_cpu="arm64"
skia_use_metal=true
skia_use_expat=false
skia_enable_pdf=false
EOM

tools/git-sync-deps
bin/gn gen out/ios_arm64_mtl
ninja -C out/ios_arm64_mtl skottie_example

Then install the out/ios_arm64_mtl/skottie_example.app bundle.

CPU

How to compile for the CPU backend:

cd $SKIA_ROOT_DIRECTORY

mkdir -p out/ios_arm64_cpu
cat > out/ios_arm64_cpu/args.gn <<EOM
target_cpu="arm64"
target_os="ios"
skia_enable_gpu=false
skia_enable_pdf=false
skia_use_expat=false
EOM

tools/git-sync-deps
bin/gn gen out/ios_arm64_cpu
ninja -C out/ios_arm64_cpu skottie_example

Then install the out/ios_arm64_cpu/skottie_example.app bundle.

OpenGL

How to compile for the OpenGL backend:

cd $SKIA_ROOT_DIRECTORY

mkdir -p out/ios_arm64_gl
cat > out/ios_arm64_gl/args.gn <<EOM
target_cpu="arm64"
target_os="ios"
skia_enable_gpu=true
skia_use_metal=false
skia_enable_pdf=false
skia_use_expat=false
EOM

tools/git-sync-deps
bin/gn gen out/ios_arm64_gl
ninja -C out/ios_arm64_gl skottie_example

Then install the out/ios_arm64_gl/skottie_example.app bundle.