unplugged-system/external/skia/tools/skottie_ios_app
2025-10-06 13:59:42 +00:00
..
BUILD.gn Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
GrContextHolder.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
GrContextHolder.mm Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
Info.plist Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
main.mm Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README.md Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkiaContext.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkiaContext.mm Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkiaGLContext.mm Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkiaMetalContext.mm Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkiaUIContext.mm Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkiaViewController.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkiaViewController.mm Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkMetalViewBridge.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkMetalViewBridge.mm Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkottieViewController.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
SkottieViewController.mm Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

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_ganesh=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_ganesh=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.