-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathBUILD
88 lines (83 loc) · 1.88 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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 = "AnimationCompressionMetalResources",
srcs = glob([
"Resources/**/*.metal",
]),
visibility = ["//visibility:public"],
)
plist_fragment(
name = "AnimationCompressionBundleInfoPlist",
extension = "plist",
template =
"""
<key>CFBundleIdentifier</key>
<string>org.telegram.AnimationCompression</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleName</key>
<string>AnimationCompression</string>
"""
)
apple_resource_bundle(
name = "AnimationCompressionBundle",
infoplists = [
":AnimationCompressionBundleInfoPlist",
],
resources = [
":AnimationCompressionMetalResources",
],
)
swift_library(
name = "AnimationCompression",
module_name = "AnimationCompression",
srcs = glob([
"Sources/**/*.swift",
]),
copts = [
"-warnings-as-errors",
],
data = [
":AnimationCompressionBundle",
],
deps = [
":DctHuffman",
"//submodules/Components/MetalImageView:MetalImageView",
],
visibility = [
"//visibility:public",
],
)
objc_library(
name = "DctHuffman",
enable_modules = True,
module_name = "DctHuffman",
srcs = glob([
"DctHuffman/Sources/**/*.m",
"DctHuffman/Sources/**/*.mm",
"DctHuffman/Sources/**/*.h",
]),
copts = [],
hdrs = glob([
"DctHuffman/PublicHeaders/**/*.h",
]),
includes = [
"DctHuffman/PublicHeaders",
],
deps = [
],
sdk_frameworks = [
"Foundation",
],
visibility = [
"//visibility:public",
],
)