-
Notifications
You must be signed in to change notification settings - Fork 13
/
BUILD
75 lines (73 loc) · 1.79 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
filegroup(
name = "testdata",
srcs = glob([
"testdata/*.proto",
"testdata/*.rules",
]),
)
py_test(
name = "integration_test",
size = "small",
srcs = ["integration_test.py"],
args = [
"$(location //firebase_rules_generator:protoc-gen-firebase_rules)",
"$(location @com_google_protobuf//:protoc)",
"$(location //proto:firebase_rules_options_proto_file)",
"$(location @com_google_protobuf//:descriptor_proto)",
"$(location //example:example.rules)",
"$(location //example/testdata:golden.rules)",
"$(locations :testdata)",
],
data = [
"//example/testdata:golden.rules",
"//example:example.rules",
":testdata",
"//firebase_rules_generator:protoc-gen-firebase_rules",
"//proto:firebase_rules_options_proto_file",
"@com_google_protobuf//:descriptor_proto",
"@com_google_protobuf//:protoc",
"@com_google_protobuf//:timestamp_proto",
],
)
platform(
name = "windows-amd64",
constraint_values = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
)
platform(
name = "windows-arm64",
constraint_values = [
"@platforms//os:windows",
"@platforms//cpu:arm64",
],
)
platform(
name = "darwin-amd64",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:x86_64",
],
)
platform(
name = "darwin-arm64",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:arm64",
],
)
platform(
name = "linux-amd64",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
)
platform(
name = "linux-arm64",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:arm64",
],
)