forked from uber/ios-snapshot-test-case
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
29 lines (27 loc) · 856 Bytes
/
BUILD.bazel
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
load(
"@build_bazel_rules_swift//swift:swift.bzl",
"swift_library",
)
objc_library(
name = "iOSSnapshotTestCaseCore",
module_name = "iOSSnapshotTestCaseCore",
srcs = glob(["src/iOSSnapshotTestCaseCore/*.m", "src/iOSSnapshotTestCaseCore/Categories/*.h", "src/iOSSnapshotTestCaseCore/Categories/*.m"], allow_empty = False),
hdrs = glob(["src/iOSSnapshotTestCaseCore/Public/*.h"], allow_empty = False),
defines = [
"SWIFT_PACKAGE"
],
copts = [
"-Wno-deprecated-declarations"
],
sdk_frameworks = ["XCTest"],
visibility = ["//visibility:public"]
)
swift_library(
name = "iOSSnapshotTestCase",
module_name = "iOSSnapshotTestCase",
srcs = ["src/iOSSnapshotTestCase/SwiftSupport.swift"],
deps = [
":iOSSnapshotTestCaseCore"
],
visibility = ["//visibility:public"]
)