forked from dduan/TOMLDecoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
58 lines (51 loc) · 1.45 KB
/
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
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
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library", "swift_test", "swift_binary")
load("@bazel_skylib//rules:copy_directory.bzl", "copy_directory")
swift_binary(
name = "compliance",
srcs = ["Sources/compliance/main.swift"],
deps = [
":TOMLDecoder",
],
visibility = ["//visibility:public"],
)
swift_library(
name = "TOMLDecoder",
srcs = glob(["Sources/TOMLDecoder/**/*.swift"]),
deps = [
":Deserializer",
],
visibility = ["//visibility:public"],
)
swift_library(
name = "Deserializer",
srcs = glob(["Sources/Deserializer/**/*.swift"]),
visibility = ["//visibility:private"],
)
swift_test(
name = "TOMLDecoderTests",
srcs = glob(["Tests/TOMLDecoderTests/**/*.swift"]),
deps = [":TOMLDecoder"],
visibility = ["//visibility:private"],
)
swift_test(
name = "DeserializerTests",
srcs = glob(["Tests/DeserializerTests/**/*.swift"]),
deps = [":Deserializer"],
data = [
":valid_fixtures",
":invalid_fixtures",
],
visibility = ["//visibility:private"],
)
copy_directory(
name = "valid_fixtures",
src = "Tests/DeserializerTests/valid_fixtures",
out = "Tests/DeserializerTests/valid_fixtures",
visibility = ["//visibility:private"],
)
copy_directory(
name = "invalid_fixtures",
src = "Tests/DeserializerTests/invalid_fixtures",
out = "Tests/DeserializerTests/invalid_fixtures",
visibility = ["//visibility:private"],
)