blob: 544885e0f10eb1717403a82d3dc88c64ed7efc1a [file] [log] [blame]
Austin Schuh272c6132020-11-14 16:37:52 -08001load("@rules_cc//cc:defs.bzl", "cc_library")
2
3package(
4 default_visibility = ["//visibility:public"],
5)
6
7filegroup(
8 name = "common_headers",
9 srcs = [
Austin Schuh272c6132020-11-14 16:37:52 -080010 "schema_interface.h",
11 ],
12)
13
14cc_library(
15 name = "cpp_generator",
16 srcs = [
17 "cpp_generator.cc",
18 ],
19 hdrs = [
20 "cpp_generator.h",
21 ":common_headers",
22 ],
23 include_prefix = "src/compiler",
24 strip_include_prefix = "/grpc/src/compiler",
25 deps = [
26 "//:flatbuffers",
27 ],
28)
29
30cc_library(
31 name = "go_generator",
32 srcs = [
33 "go_generator.cc",
34 ],
35 hdrs = [
36 "go_generator.h",
37 ":common_headers",
38 ],
39 include_prefix = "src/compiler",
40 strip_include_prefix = "/grpc/src/compiler",
41 deps = [
42 "//:flatbuffers",
43 ],
44)
45
46cc_library(
47 name = "java_generator",
48 srcs = [
49 "java_generator.cc",
50 ],
51 hdrs = [
52 "java_generator.h",
53 ":common_headers",
54 ],
55 include_prefix = "src/compiler",
56 strip_include_prefix = "/grpc/src/compiler",
57 deps = [
58 "//:flatbuffers",
59 ],
60)
61
62cc_library(
63 name = "python_generator",
64 hdrs = [
65 "python_generator.h",
66 ],
67 include_prefix = "src/compiler",
68 strip_include_prefix = "/grpc/src/compiler",
69 deps = [
70 ":python_generator_private",
71 ],
72)
73
74cc_library(
75 name = "python_generator_private",
76 srcs = [
77 "python_generator.cc",
78 ],
79 hdrs = [
80 "python_generator.h",
Austin Schuh272c6132020-11-14 16:37:52 -080081 ":common_headers",
82 ],
83 include_prefix = "src/compiler",
84 strip_include_prefix = "/grpc/src/compiler",
85 visibility = ["//visibility:private"],
86 deps = [
87 "//:flatbuffers",
88 ],
89)
90
91cc_library(
92 name = "swift_generator",
93 srcs = [
94 "swift_generator.cc",
95 ],
96 hdrs = [
97 "swift_generator.h",
98 ":common_headers",
99 ],
100 include_prefix = "src/compiler",
101 strip_include_prefix = "/grpc/src/compiler",
102 deps = [
103 "//:flatbuffers",
104 ],
105)
106
107cc_library(
108 name = "ts_generator",
109 srcs = [
110 "ts_generator.cc",
111 ],
112 hdrs = [
113 "ts_generator.h",
114 ":common_headers",
115 ],
116 include_prefix = "src/compiler",
117 strip_include_prefix = "/grpc/src/compiler",
118 deps = [
119 "//:flatbuffers",
120 ],
James Kuszmaul8e62b022022-03-22 09:33:25 -0700121)