This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathBUILD
81 lines (73 loc) · 1.81 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
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache 2.0
exports_files(["LICENSE"])
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test")
OBJC_COPTS = [
"-Werror",
"-Wextra",
"-Wall",
"-Wstrict-prototypes",
"-Wdocumentation",
]
objc_library(
name = "UIImage_FBLAdditions",
srcs = glob([
"Sources/UIImage+FBLAdditions/*.m",
]),
hdrs = glob([
"Sources/UIImage+FBLAdditions/include/*.h",
]) + [
"UIImage+FBLAdditions.h",
],
copts = OBJC_COPTS,
includes = [
"Sources/UIImage+FBLAdditions/include",
],
module_map = "Sources/UIImage+FBLAdditions/include/module.modulemap",
)
objc_library(
name = "UIImage_FBLAdditionsTestHelpers",
testonly = 1,
srcs = glob([
"Sources/UIImage+FBLAdditionsTestHelpers/*.m",
]),
hdrs = glob([
"Sources/UIImage+FBLAdditionsTestHelpers/include/*.h",
]),
copts = OBJC_COPTS,
includes = [
"Sources/UIImage+FBLAdditionsTestHelpers/include",
],
module_map = "Sources/UIImage+FBLAdditionsTestHelpers/include/module.modulemap",
deps = [
":UIImage_FBLAdditions",
],
)
ios_unit_test(
name = "Tests",
minimum_os_version = "9.0",
test_host = "@build_bazel_rules_apple//apple/testing/default_host/ios",
deps = [
":UIImage_FBLAdditionsTests",
],
)
objc_library(
name = "UIImage_FBLAdditionsTests",
testonly = 1,
srcs = glob([
"Tests/UIImage+FBLAdditionsTests/*.m",
]),
copts = OBJC_COPTS,
resources = glob([
"Resources/UIImage+FBLAdditionsTests/*",
]),
sdk_frameworks = [
"CoreGraphics",
"CoreImage",
"UIKit",
],
deps = [
":UIImage_FBLAdditions",
":UIImage_FBLAdditionsTestHelpers",
],
)