mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
70 lines
1.6 KiB
Python
70 lines
1.6 KiB
Python
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
|
|
|
load(
|
|
"@build_bazel_rules_apple//apple:resources.bzl",
|
|
"apple_resource_bundle",
|
|
"apple_resource_group",
|
|
)
|
|
load("//build-system/bazel-utils:plist_fragment.bzl",
|
|
"plist_fragment",
|
|
)
|
|
|
|
filegroup(
|
|
name = "LottieMetalSources",
|
|
srcs = glob([
|
|
"Metal/**/*.metal",
|
|
]),
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
plist_fragment(
|
|
name = "LottieMetalSourcesBundleInfoPlist",
|
|
extension = "plist",
|
|
template =
|
|
"""
|
|
<key>CFBundleIdentifier</key>
|
|
<string>org.telegram.LottieMetalSources</string>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>en</string>
|
|
<key>CFBundleName</key>
|
|
<string>LottieMetal</string>
|
|
"""
|
|
)
|
|
|
|
apple_resource_bundle(
|
|
name = "LottieMetalSourcesBundle",
|
|
infoplists = [
|
|
":LottieMetalSourcesBundleInfoPlist",
|
|
],
|
|
resources = [
|
|
":LottieMetalSources",
|
|
],
|
|
)
|
|
|
|
swift_library(
|
|
name = "LottieMetal",
|
|
module_name = "LottieMetal",
|
|
srcs = glob([
|
|
"Sources/**/*.swift",
|
|
]),
|
|
copts = [
|
|
"-warnings-as-errors",
|
|
],
|
|
data = [
|
|
":LottieMetalSourcesBundle",
|
|
],
|
|
deps = [
|
|
"//submodules/SSignalKit/SwiftSignalKit",
|
|
"//submodules/AsyncDisplayKit",
|
|
"//submodules/Display",
|
|
"//submodules/AnimatedStickerNode",
|
|
"//submodules/GZip",
|
|
"//submodules/MetalEngine",
|
|
"//submodules/TelegramUI/Components/LottieCpp",
|
|
"//submodules/Components/HierarchyTrackingLayer",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|