-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.bazel
82 lines (69 loc) · 1.9 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
load("@rules_pact//:defs.bzl", "pact_protobuf_plugin_toolchain", "pact_reference_toolchain")
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
toolchain_type(
name = "pact_protobuf_plugin_toolchain_type",
visibility = ["//visibility:public"],
)
alias(
name = "pact_ffi",
actual = select({
"osx_arm64": "@pact_reference_osx_aarch64_toolchain//:pact_ffi_darwin_arm64",
":macos": "@pact_reference_osx_x86_64_toolchain//:pact_ffi_darwin_amd64",
":linux": "@pact_reference_linux_x86_64_toolchain//:pact_ffi_linux_amd64",
}),
visibility = ["//visibility:public"],
)
config_setting(
name = "osx_arm64",
constraint_values = [
"@platforms//os:osx",
"@platforms//cpu:arm64",
],
)
config_setting(
name = "macos",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:x86_64",
]
)
config_setting(
name = "linux",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
]
)
toolchain_type(
name = "pact_reference_toolchain_type",
visibility = ["//visibility:public"],
)
load("@stardoc//stardoc:stardoc.bzl", "stardoc")
stardoc(
name = "docs",
input = "@rules_pact//:defs.bzl",
out = "docs.md",
deps = [":bzl_lib"]
)
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
bzl_library(
name = "bzl_lib",
srcs = [
"@rules_pact//private:toolchains.bzl",
"@rules_pact//private:provider.bzl",
"@rules_pact//private/pact:pact_test.bzl",
"@rules_pact//private/pact:side_car.bzl",
"@rules_pact//private/pact:consumer.bzl",
"@rules_pact//private/pact:provider.bzl",
],
visibility = ["//visibility:public"],
)
diff_test(
name = "docs_diff_test",
file1 = ":docs",
file2 = ":README.md",
)
exports_files(
glob(["defs.bzl"]),
visibility = ["//visibility:public"],
)