• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("@rules_cc//cc:defs.bzl", "cc_library")
2
3package(
4    default_visibility = ["//visibility:public"],
5)
6
7filegroup(
8    name = "common_headers",
9    srcs = [
10        "config.h",
11        "schema_interface.h",
12    ],
13)
14
15cc_library(
16    name = "cpp_generator",
17    srcs = [
18        "cpp_generator.cc",
19    ],
20    hdrs = [
21        "cpp_generator.h",
22        ":common_headers",
23    ],
24    include_prefix = "src/compiler",
25    strip_include_prefix = "/grpc/src/compiler",
26    deps = [
27        "//:flatbuffers",
28    ],
29)
30
31cc_library(
32    name = "go_generator",
33    srcs = [
34        "go_generator.cc",
35    ],
36    hdrs = [
37        "go_generator.h",
38        ":common_headers",
39    ],
40    include_prefix = "src/compiler",
41    strip_include_prefix = "/grpc/src/compiler",
42    deps = [
43        "//:flatbuffers",
44    ],
45)
46
47cc_library(
48    name = "java_generator",
49    srcs = [
50        "java_generator.cc",
51    ],
52    hdrs = [
53        "java_generator.h",
54        ":common_headers",
55    ],
56    include_prefix = "src/compiler",
57    strip_include_prefix = "/grpc/src/compiler",
58    deps = [
59        "//:flatbuffers",
60    ],
61)
62
63cc_library(
64    name = "python_generator",
65    hdrs = [
66        "python_generator.h",
67    ],
68    include_prefix = "src/compiler",
69    strip_include_prefix = "/grpc/src/compiler",
70    deps = [
71        ":python_generator_private",
72    ],
73)
74
75cc_library(
76    name = "python_generator_private",
77    srcs = [
78        "python_generator.cc",
79    ],
80    hdrs = [
81        "python_generator.h",
82        "python_private_generator.h",
83        ":common_headers",
84    ],
85    include_prefix = "src/compiler",
86    strip_include_prefix = "/grpc/src/compiler",
87    visibility = ["//visibility:private"],
88    deps = [
89        "//:flatbuffers",
90    ],
91)
92
93cc_library(
94    name = "swift_generator",
95    srcs = [
96        "swift_generator.cc",
97    ],
98    hdrs = [
99        "swift_generator.h",
100        ":common_headers",
101    ],
102    include_prefix = "src/compiler",
103    strip_include_prefix = "/grpc/src/compiler",
104    deps = [
105        "//:flatbuffers",
106    ],
107)