This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
forked from stackb/rules_proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com_github_dcarp_protobuf_d.BUILD.bazel
73 lines (69 loc) · 2.17 KB
/
com_github_dcarp_protobuf_d.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
load("@io_bazel_rules_d//d:d.bzl", "d_library", "d_binary", "d_source_library")
d_binary(
name = "protoc-gen-d",
srcs = [
"protoc_gen_d/protoc-gen-d.d",
] + glob(["protoc_gen_d/google/**/*"]),
deps = [
":protobuf",
":compiler",
],
visibility = ["//visibility:public"],
)
d_library(
name = "compiler",
srcs = [
"protoc_gen_d/google/protobuf/descriptor.d",
"protoc_gen_d/google/protobuf/compiler/plugin.d",
],
imports = [
"$PWD/external/com_github_dcarp_protobuf_d/src",
],
deps = [":protobuf"],
)
d_library(
name = "protobuf",
srcs = [
"src/google/protobuf/any.d",
"src/google/protobuf/api.d",
"src/google/protobuf/common.d",
"src/google/protobuf/decoding.d",
"src/google/protobuf/duration.d",
"src/google/protobuf/empty.d",
"src/google/protobuf/encoding.d",
"src/google/protobuf/field_mask.d",
"src/google/protobuf/internal.d",
"src/google/protobuf/json_decoding.d",
"src/google/protobuf/json_encoding.d",
"src/google/protobuf/package.d",
"src/google/protobuf/source_context.d",
"src/google/protobuf/struct_.d",
"src/google/protobuf/timestamp.d",
"src/google/protobuf/type.d",
"src/google/protobuf/wrappers.d",
],
visibility = ["//visibility:public"],
)
d_source_library(
name = "protosrc",
srcs = [
"src/google/protobuf/any.d",
"src/google/protobuf/api.d",
"src/google/protobuf/common.d",
"src/google/protobuf/decoding.d",
"src/google/protobuf/duration.d",
"src/google/protobuf/empty.d",
"src/google/protobuf/encoding.d",
"src/google/protobuf/field_mask.d",
"src/google/protobuf/internal.d",
"src/google/protobuf/json_decoding.d",
"src/google/protobuf/json_encoding.d",
"src/google/protobuf/package.d",
"src/google/protobuf/source_context.d",
"src/google/protobuf/struct_.d",
"src/google/protobuf/timestamp.d",
"src/google/protobuf/type.d",
"src/google/protobuf/wrappers.d",
],
visibility = ["//visibility:public"],
)