efb4ed86cf
Also: mv experimental/skottie_ios tools/skottie_ios_app Motivation: make using SkMetalViewBridge that much easier for clients. Change-Id: I985930ae0751d218e89c48c57b69d85ad7a1e703 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259279 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
# Copyright 2019 Google LLC.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("../../gn/ios.gni")
|
|
|
|
if (is_ios) {
|
|
group("skottie_ios_app") {
|
|
deps = [
|
|
":skottie_example",
|
|
]
|
|
}
|
|
ios_app_bundle("skottie_example") {
|
|
sources = [
|
|
"SkAnimationDraw.h",
|
|
"SkTimeKeeper.h",
|
|
"main.mm",
|
|
]
|
|
if (skia_use_metal) {
|
|
sources += [
|
|
"SkMetalViewBridge.h",
|
|
"SkMetalViewBridge.mm",
|
|
"SkottieMtkView.h",
|
|
"SkottieMtkView.mm",
|
|
]
|
|
} else {
|
|
sources += [
|
|
"SkottieUIView.h",
|
|
"SkottieUIView.mm",
|
|
]
|
|
}
|
|
data_sources = [
|
|
"../../resources/skottie/skottie-3d-rotation-order.json",
|
|
"../../resources/skottie/skottie-camera-parent-3.json",
|
|
"../../resources/skottie/skottie-gradient-ramp.json",
|
|
"../../resources/skottie/skottie-linear-wipe-effect.json",
|
|
"../../resources/skottie/skottie-text-animator-1.json",
|
|
"../../resources/skottie/skottie-text-animator-2.json",
|
|
"../../resources/skottie/skottie-text-animator-3.json",
|
|
"../../resources/skottie/skottie-text-animator-4.json",
|
|
"../../resources/skottie/skottie-text-animator-5.json",
|
|
"../../resources/skottie/skottie-text-animator-8.json",
|
|
"../../resources/skottie/skottie-transform-effect.json",
|
|
"../../resources/skottie/skottie_sample_2.json",
|
|
]
|
|
deps = [
|
|
"../..:skia",
|
|
"../../modules/skottie",
|
|
]
|
|
cflags_objcc = [
|
|
"-std=c++14",
|
|
"-w",
|
|
]
|
|
libs = [
|
|
"UIKit.framework",
|
|
"Foundation.framework",
|
|
]
|
|
if (skia_use_metal) {
|
|
libs += [
|
|
"Metal.framework",
|
|
"MetalKit.framework",
|
|
]
|
|
}
|
|
launchscreen = "../../platform_tools/ios/app/LaunchScreen.storyboard"
|
|
}
|
|
}
|