skia2/tools/skottie_ios_app
Mike Klein 4f4c064d5b roll gn to latest
Nice periodically, and this version also has a Mac arm64 binary.

Refine a few visibility rules from ":*" (any target in this file)
to "./*" (any target in any .gn file anywhere under this directory).

Use frameworks over libs where now required.

Change-Id: Ic19e1533e2810d18ae4684645d8555b422320b7f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/354536
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2021-01-15 15:34:00 +00:00
..
BUILD.gn roll gn to latest 2021-01-15 15:34:00 +00:00
GrContextHolder.h Reland "Migrate metal tools away from GrContext" 2020-09-23 19:11:07 +00:00
GrContextHolder.mm Reland "Migrate metal tools away from GrContext" 2020-09-23 19:11:07 +00:00
Info.plist
main.mm
README.md
SkiaContext.h
SkiaContext.mm
SkiaGLContext.mm Reland "Remove use of legacy display globals." 2020-10-05 19:13:58 +00:00
SkiaMetalContext.mm
SkiaUIContext.mm
SkiaViewController.h
SkiaViewController.mm
SkMetalViewBridge.h Reland "Migrate metal tools away from GrContext" 2020-09-23 19:11:07 +00:00
SkMetalViewBridge.mm Reland "Remove use of legacy display globals." 2020-10-05 19:13:58 +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.