blob: bce030a761c4594b67d95bef6882c563c0de6638 [file] [log] [blame]
Jisi Liud19604f2015-06-17 17:37:58 -07001# Bazel (http://bazel.io/) BUILD file for Protobuf.
2
3licenses(["notice"])
4
Jorge Canizalesd5d7bb32015-06-28 15:23:02 -07005################################################################################
6# Protobuf Runtime Library
7################################################################################
8
Jisi Liud19604f2015-06-17 17:37:58 -07009COPTS = [
10 "-DHAVE_PTHREAD",
11 "-Wall",
12 "-Wwrite-strings",
13 "-Woverloaded-virtual",
14 "-Wno-sign-compare",
15 "-Wno-error=unused-function",
16]
17
18# Bazel should provide portable link_opts for pthread.
19LINK_OPTS = ["-lpthread"]
20
Jisi Liu39362b32015-10-14 17:12:11 -070021load("protobuf", "cc_proto_library")
22
Jisi Liud19604f2015-06-17 17:37:58 -070023cc_library(
24 name = "protobuf_lite",
25 srcs = [
26 # AUTOGEN(protobuf_lite_srcs)
27 "src/google/protobuf/arena.cc",
28 "src/google/protobuf/arenastring.cc",
29 "src/google/protobuf/extension_set.cc",
30 "src/google/protobuf/generated_message_util.cc",
31 "src/google/protobuf/io/coded_stream.cc",
32 "src/google/protobuf/io/zero_copy_stream.cc",
33 "src/google/protobuf/io/zero_copy_stream_impl_lite.cc",
34 "src/google/protobuf/message_lite.cc",
35 "src/google/protobuf/repeated_field.cc",
36 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc",
37 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc",
Jisi Liuaf3eafd2015-06-18 13:38:36 -070038 "src/google/protobuf/stubs/bytestream.cc",
Jisi Liud19604f2015-06-17 17:37:58 -070039 "src/google/protobuf/stubs/common.cc",
Jisi Liub90f9f82015-08-25 17:06:33 -070040 "src/google/protobuf/stubs/int128.cc",
Jisi Liud19604f2015-06-17 17:37:58 -070041 "src/google/protobuf/stubs/once.cc",
Jisi Liuaf3eafd2015-06-18 13:38:36 -070042 "src/google/protobuf/stubs/status.cc",
43 "src/google/protobuf/stubs/statusor.cc",
44 "src/google/protobuf/stubs/stringpiece.cc",
Jisi Liud19604f2015-06-17 17:37:58 -070045 "src/google/protobuf/stubs/stringprintf.cc",
Jisi Liub90f9f82015-08-25 17:06:33 -070046 "src/google/protobuf/stubs/structurally_valid.cc",
Jisi Liuaf3eafd2015-06-18 13:38:36 -070047 "src/google/protobuf/stubs/strutil.cc",
48 "src/google/protobuf/stubs/time.cc",
Jisi Liud19604f2015-06-17 17:37:58 -070049 "src/google/protobuf/wire_format_lite.cc",
50 ],
51 copts = COPTS,
52 includes = ["src/"],
53 linkopts = LINK_OPTS,
54 visibility = ["//visibility:public"],
55)
56
57cc_library(
58 name = "protobuf",
59 srcs = [
60 # AUTOGEN(protobuf_srcs)
61 "src/google/protobuf/any.cc",
62 "src/google/protobuf/any.pb.cc",
63 "src/google/protobuf/api.pb.cc",
64 "src/google/protobuf/compiler/importer.cc",
65 "src/google/protobuf/compiler/parser.cc",
66 "src/google/protobuf/descriptor.cc",
67 "src/google/protobuf/descriptor.pb.cc",
68 "src/google/protobuf/descriptor_database.cc",
69 "src/google/protobuf/duration.pb.cc",
70 "src/google/protobuf/dynamic_message.cc",
71 "src/google/protobuf/empty.pb.cc",
72 "src/google/protobuf/extension_set_heavy.cc",
73 "src/google/protobuf/field_mask.pb.cc",
74 "src/google/protobuf/generated_message_reflection.cc",
75 "src/google/protobuf/io/gzip_stream.cc",
76 "src/google/protobuf/io/printer.cc",
77 "src/google/protobuf/io/strtod.cc",
78 "src/google/protobuf/io/tokenizer.cc",
79 "src/google/protobuf/io/zero_copy_stream_impl.cc",
80 "src/google/protobuf/map_field.cc",
81 "src/google/protobuf/message.cc",
82 "src/google/protobuf/reflection_ops.cc",
83 "src/google/protobuf/service.cc",
84 "src/google/protobuf/source_context.pb.cc",
85 "src/google/protobuf/struct.pb.cc",
Jisi Liuaf3eafd2015-06-18 13:38:36 -070086 "src/google/protobuf/stubs/mathlimits.cc",
Jisi Liud19604f2015-06-17 17:37:58 -070087 "src/google/protobuf/stubs/substitute.cc",
88 "src/google/protobuf/text_format.cc",
89 "src/google/protobuf/timestamp.pb.cc",
90 "src/google/protobuf/type.pb.cc",
91 "src/google/protobuf/unknown_field_set.cc",
Jisi Liuaf3eafd2015-06-18 13:38:36 -070092 "src/google/protobuf/util/field_comparator.cc",
Jisi Liub90f9f82015-08-25 17:06:33 -070093 "src/google/protobuf/util/field_mask_util.cc",
Jisi Liuaf3eafd2015-06-18 13:38:36 -070094 "src/google/protobuf/util/internal/datapiece.cc",
95 "src/google/protobuf/util/internal/default_value_objectwriter.cc",
96 "src/google/protobuf/util/internal/error_listener.cc",
97 "src/google/protobuf/util/internal/field_mask_utility.cc",
98 "src/google/protobuf/util/internal/json_escaping.cc",
99 "src/google/protobuf/util/internal/json_objectwriter.cc",
100 "src/google/protobuf/util/internal/json_stream_parser.cc",
101 "src/google/protobuf/util/internal/object_writer.cc",
102 "src/google/protobuf/util/internal/protostream_objectsource.cc",
103 "src/google/protobuf/util/internal/protostream_objectwriter.cc",
104 "src/google/protobuf/util/internal/type_info.cc",
105 "src/google/protobuf/util/internal/type_info_test_helper.cc",
106 "src/google/protobuf/util/internal/utility.cc",
107 "src/google/protobuf/util/json_util.cc",
108 "src/google/protobuf/util/message_differencer.cc",
Jisi Liub90f9f82015-08-25 17:06:33 -0700109 "src/google/protobuf/util/time_util.cc",
Jisi Liuaf3eafd2015-06-18 13:38:36 -0700110 "src/google/protobuf/util/type_resolver_util.cc",
Jisi Liud19604f2015-06-17 17:37:58 -0700111 "src/google/protobuf/wire_format.cc",
112 "src/google/protobuf/wrappers.pb.cc",
113 ],
114 copts = COPTS,
115 includes = ["src/"],
116 linkopts = LINK_OPTS,
117 visibility = ["//visibility:public"],
118 deps = [":protobuf_lite"],
119)
120
Jorge Canizalesd5d7bb32015-06-28 15:23:02 -0700121objc_library(
122 name = "protobuf_objc",
123 hdrs = ["objectivec/GPBProtocolBuffers.h"],
124 includes = ["objectivec"],
125 non_arc_srcs = ["objectivec/GPBProtocolBuffers.m"],
126 visibility = ["//visibility:public"],
127)
128
129WELL_KNOWN_PROTOS = [
130 # AUTOGEN(well_known_protos)
131 "google/protobuf/any.proto",
132 "google/protobuf/api.proto",
133 "google/protobuf/compiler/plugin.proto",
134 "google/protobuf/descriptor.proto",
135 "google/protobuf/duration.proto",
136 "google/protobuf/empty.proto",
137 "google/protobuf/field_mask.proto",
138 "google/protobuf/source_context.proto",
139 "google/protobuf/struct.proto",
140 "google/protobuf/timestamp.proto",
141 "google/protobuf/type.proto",
142 "google/protobuf/wrappers.proto",
143]
144
Jisi Liu39362b32015-10-14 17:12:11 -0700145cc_proto_library(
146 name = "cc_wkt_protos",
147 srcs = ["src/" + s for s in WELL_KNOWN_PROTOS],
148 internal_bootstrap_hack = 1,
149 prefix = "src",
Jisi Liud8701b52015-10-16 11:44:21 -0700150 cc_libs = [":protobuf"],
Jisi Liu39362b32015-10-14 17:12:11 -0700151)
152
Jorge Canizalesd5d7bb32015-06-28 15:23:02 -0700153################################################################################
154# Protocol Buffers Compiler
155################################################################################
156
Jisi Liud19604f2015-06-17 17:37:58 -0700157cc_library(
158 name = "protoc_lib",
159 srcs = [
160 # AUTOGEN(protoc_lib_srcs)
161 "src/google/protobuf/compiler/code_generator.cc",
162 "src/google/protobuf/compiler/command_line_interface.cc",
163 "src/google/protobuf/compiler/cpp/cpp_enum.cc",
164 "src/google/protobuf/compiler/cpp/cpp_enum_field.cc",
165 "src/google/protobuf/compiler/cpp/cpp_extension.cc",
166 "src/google/protobuf/compiler/cpp/cpp_field.cc",
167 "src/google/protobuf/compiler/cpp/cpp_file.cc",
168 "src/google/protobuf/compiler/cpp/cpp_generator.cc",
169 "src/google/protobuf/compiler/cpp/cpp_helpers.cc",
170 "src/google/protobuf/compiler/cpp/cpp_map_field.cc",
171 "src/google/protobuf/compiler/cpp/cpp_message.cc",
172 "src/google/protobuf/compiler/cpp/cpp_message_field.cc",
173 "src/google/protobuf/compiler/cpp/cpp_primitive_field.cc",
174 "src/google/protobuf/compiler/cpp/cpp_service.cc",
175 "src/google/protobuf/compiler/cpp/cpp_string_field.cc",
Ming Zhao5cdd9362015-10-05 14:37:21 -0700176 "src/google/protobuf/compiler/csharp/csharp_doc_comment.cc",
Jisi Liud19604f2015-06-17 17:37:58 -0700177 "src/google/protobuf/compiler/csharp/csharp_enum.cc",
178 "src/google/protobuf/compiler/csharp/csharp_enum_field.cc",
Jisi Liud19604f2015-06-17 17:37:58 -0700179 "src/google/protobuf/compiler/csharp/csharp_field_base.cc",
180 "src/google/protobuf/compiler/csharp/csharp_generator.cc",
181 "src/google/protobuf/compiler/csharp/csharp_helpers.cc",
Jon Skeetb2ac8682015-07-15 13:17:42 +0100182 "src/google/protobuf/compiler/csharp/csharp_map_field.cc",
Jisi Liud19604f2015-06-17 17:37:58 -0700183 "src/google/protobuf/compiler/csharp/csharp_message.cc",
184 "src/google/protobuf/compiler/csharp/csharp_message_field.cc",
185 "src/google/protobuf/compiler/csharp/csharp_primitive_field.cc",
186 "src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc",
187 "src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc",
188 "src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc",
189 "src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc",
190 "src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc",
Jon Skeetb2ac8682015-07-15 13:17:42 +0100191 "src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc",
Jisi Liud19604f2015-06-17 17:37:58 -0700192 "src/google/protobuf/compiler/java/java_context.cc",
193 "src/google/protobuf/compiler/java/java_doc_comment.cc",
194 "src/google/protobuf/compiler/java/java_enum.cc",
195 "src/google/protobuf/compiler/java/java_enum_field.cc",
196 "src/google/protobuf/compiler/java/java_enum_field_lite.cc",
Jisi Liub90f9f82015-08-25 17:06:33 -0700197 "src/google/protobuf/compiler/java/java_enum_lite.cc",
Jisi Liud19604f2015-06-17 17:37:58 -0700198 "src/google/protobuf/compiler/java/java_extension.cc",
199 "src/google/protobuf/compiler/java/java_field.cc",
200 "src/google/protobuf/compiler/java/java_file.cc",
201 "src/google/protobuf/compiler/java/java_generator.cc",
202 "src/google/protobuf/compiler/java/java_generator_factory.cc",
203 "src/google/protobuf/compiler/java/java_helpers.cc",
204 "src/google/protobuf/compiler/java/java_lazy_message_field.cc",
205 "src/google/protobuf/compiler/java/java_lazy_message_field_lite.cc",
206 "src/google/protobuf/compiler/java/java_map_field.cc",
207 "src/google/protobuf/compiler/java/java_map_field_lite.cc",
208 "src/google/protobuf/compiler/java/java_message.cc",
209 "src/google/protobuf/compiler/java/java_message_builder.cc",
210 "src/google/protobuf/compiler/java/java_message_builder_lite.cc",
211 "src/google/protobuf/compiler/java/java_message_field.cc",
212 "src/google/protobuf/compiler/java/java_message_field_lite.cc",
213 "src/google/protobuf/compiler/java/java_message_lite.cc",
214 "src/google/protobuf/compiler/java/java_name_resolver.cc",
215 "src/google/protobuf/compiler/java/java_primitive_field.cc",
216 "src/google/protobuf/compiler/java/java_primitive_field_lite.cc",
217 "src/google/protobuf/compiler/java/java_service.cc",
218 "src/google/protobuf/compiler/java/java_shared_code_generator.cc",
219 "src/google/protobuf/compiler/java/java_string_field.cc",
220 "src/google/protobuf/compiler/java/java_string_field_lite.cc",
221 "src/google/protobuf/compiler/javanano/javanano_enum.cc",
222 "src/google/protobuf/compiler/javanano/javanano_enum_field.cc",
223 "src/google/protobuf/compiler/javanano/javanano_extension.cc",
224 "src/google/protobuf/compiler/javanano/javanano_field.cc",
225 "src/google/protobuf/compiler/javanano/javanano_file.cc",
226 "src/google/protobuf/compiler/javanano/javanano_generator.cc",
227 "src/google/protobuf/compiler/javanano/javanano_helpers.cc",
228 "src/google/protobuf/compiler/javanano/javanano_map_field.cc",
229 "src/google/protobuf/compiler/javanano/javanano_message.cc",
230 "src/google/protobuf/compiler/javanano/javanano_message_field.cc",
231 "src/google/protobuf/compiler/javanano/javanano_primitive_field.cc",
232 "src/google/protobuf/compiler/objectivec/objectivec_enum.cc",
233 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc",
234 "src/google/protobuf/compiler/objectivec/objectivec_extension.cc",
235 "src/google/protobuf/compiler/objectivec/objectivec_field.cc",
236 "src/google/protobuf/compiler/objectivec/objectivec_file.cc",
237 "src/google/protobuf/compiler/objectivec/objectivec_generator.cc",
238 "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc",
239 "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc",
240 "src/google/protobuf/compiler/objectivec/objectivec_message.cc",
241 "src/google/protobuf/compiler/objectivec/objectivec_message_field.cc",
242 "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc",
243 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc",
244 "src/google/protobuf/compiler/plugin.cc",
245 "src/google/protobuf/compiler/plugin.pb.cc",
246 "src/google/protobuf/compiler/python/python_generator.cc",
247 "src/google/protobuf/compiler/ruby/ruby_generator.cc",
248 "src/google/protobuf/compiler/subprocess.cc",
249 "src/google/protobuf/compiler/zip_writer.cc",
250 ],
251 copts = COPTS,
252 includes = ["src/"],
253 linkopts = LINK_OPTS,
254 visibility = ["//visibility:public"],
255 deps = [":protobuf"],
256)
257
258cc_binary(
259 name = "protoc",
260 srcs = ["src/google/protobuf/compiler/main.cc"],
Jisi Liud19604f2015-06-17 17:37:58 -0700261 linkopts = LINK_OPTS,
262 visibility = ["//visibility:public"],
263 deps = [":protoc_lib"],
264)
265
Jisi Liud19604f2015-06-17 17:37:58 -0700266################################################################################
Ming Zhao60880a72015-09-29 13:21:44 -0700267# Java support
268################################################################################
269genrule(
270 name = "generate_java_descriptor_proto",
Jisi Liu39362b32015-10-14 17:12:11 -0700271 srcs = ["src/google/protobuf/descriptor.proto"],
272 outs = ["com/google/protobuf/DescriptorProtos.java"],
Ming Zhao60880a72015-09-29 13:21:44 -0700273 cmd = "$(location :protoc) --java_out=$(@D)/../../.. $<",
Jisi Liu39362b32015-10-14 17:12:11 -0700274 tools = [":protoc"],
Ming Zhao60880a72015-09-29 13:21:44 -0700275)
276
277java_library(
278 name = "java_proto",
Ming Zhao60880a72015-09-29 13:21:44 -0700279 srcs = glob([
Jisi Liu39362b32015-10-14 17:12:11 -0700280 "java/src/main/java/com/google/protobuf/*.java",
Ming Zhao60880a72015-09-29 13:21:44 -0700281 ]) + [
Jisi Liu39362b32015-10-14 17:12:11 -0700282 ":generate_java_descriptor_proto",
283 ],
284 visibility = ["//visibility:public"],
Ming Zhao60880a72015-09-29 13:21:44 -0700285)
286
Ming Zhao60880a72015-09-29 13:21:44 -0700287################################################################################
Jisi Liud19604f2015-06-17 17:37:58 -0700288# Tests
289################################################################################
290
291LITE_TEST_PROTOS = [
292 # AUTOGEN(lite_test_protos)
293 "google/protobuf/map_lite_unittest.proto",
294 "google/protobuf/unittest_import_lite.proto",
295 "google/protobuf/unittest_import_public_lite.proto",
296 "google/protobuf/unittest_lite.proto",
Jisi Liub90f9f82015-08-25 17:06:33 -0700297 "google/protobuf/unittest_no_arena_lite.proto",
Jisi Liud19604f2015-06-17 17:37:58 -0700298]
299
Jisi Liud19604f2015-06-17 17:37:58 -0700300TEST_PROTOS = [
301 # AUTOGEN(test_protos)
302 "google/protobuf/any_test.proto",
303 "google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto",
304 "google/protobuf/compiler/cpp/cpp_test_large_enum_value.proto",
305 "google/protobuf/map_proto2_unittest.proto",
306 "google/protobuf/map_unittest.proto",
307 "google/protobuf/unittest.proto",
308 "google/protobuf/unittest_arena.proto",
309 "google/protobuf/unittest_custom_options.proto",
310 "google/protobuf/unittest_drop_unknown_fields.proto",
311 "google/protobuf/unittest_embed_optimize_for.proto",
312 "google/protobuf/unittest_empty.proto",
313 "google/protobuf/unittest_enormous_descriptor.proto",
314 "google/protobuf/unittest_import.proto",
315 "google/protobuf/unittest_import_public.proto",
316 "google/protobuf/unittest_lite_imports_nonlite.proto",
317 "google/protobuf/unittest_mset.proto",
Jisi Liub90f9f82015-08-25 17:06:33 -0700318 "google/protobuf/unittest_mset_wire_format.proto",
Jisi Liud19604f2015-06-17 17:37:58 -0700319 "google/protobuf/unittest_no_arena.proto",
320 "google/protobuf/unittest_no_arena_import.proto",
321 "google/protobuf/unittest_no_field_presence.proto",
322 "google/protobuf/unittest_no_generic_services.proto",
323 "google/protobuf/unittest_optimize_for.proto",
324 "google/protobuf/unittest_preserve_unknown_enum.proto",
325 "google/protobuf/unittest_preserve_unknown_enum2.proto",
326 "google/protobuf/unittest_proto3_arena.proto",
327 "google/protobuf/unittest_well_known_types.proto",
Jisi Liuaf3eafd2015-06-18 13:38:36 -0700328 "google/protobuf/util/internal/testdata/anys.proto",
329 "google/protobuf/util/internal/testdata/books.proto",
330 "google/protobuf/util/internal/testdata/default_value.proto",
331 "google/protobuf/util/internal/testdata/default_value_test.proto",
332 "google/protobuf/util/internal/testdata/field_mask.proto",
333 "google/protobuf/util/internal/testdata/maps.proto",
Jisi Liub90f9f82015-08-25 17:06:33 -0700334 "google/protobuf/util/internal/testdata/oneofs.proto",
Jisi Liuaf3eafd2015-06-18 13:38:36 -0700335 "google/protobuf/util/internal/testdata/struct.proto",
336 "google/protobuf/util/internal/testdata/timestamp_duration.proto",
337 "google/protobuf/util/json_format_proto3.proto",
Jisi Liud19604f2015-06-17 17:37:58 -0700338]
339
Jisi Liu39362b32015-10-14 17:12:11 -0700340cc_proto_library(
341 name = "cc_test_protos",
342 srcs = ["src/" + s for s in (LITE_TEST_PROTOS + TEST_PROTOS)],
343 prefix = "src",
Jisi Liud8701b52015-10-16 11:44:21 -0700344 deps = [":cc_wkt_protos"],
Jisi Liud19604f2015-06-17 17:37:58 -0700345)
346
347COMMON_TEST_SRCS = [
348 # AUTOGEN(common_test_srcs)
349 "src/google/protobuf/arena_test_util.cc",
350 "src/google/protobuf/map_test_util.cc",
351 "src/google/protobuf/test_util.cc",
352 "src/google/protobuf/testing/file.cc",
353 "src/google/protobuf/testing/googletest.cc",
354]
355
Jisi Liu7a0c4312015-06-18 16:45:27 -0700356cc_binary(
357 name = "test_plugin",
358 srcs = [
359 # AUTOGEN(test_plugin_srcs)
360 "src/google/protobuf/compiler/mock_code_generator.cc",
361 "src/google/protobuf/compiler/test_plugin.cc",
362 "src/google/protobuf/testing/file.cc",
363 ],
364 deps = [
365 ":protobuf",
366 ":protoc_lib",
367 "//external:gtest",
368 ],
369)
370
371cc_test(
372 name = "protobuf_test",
Jisi Liu39362b32015-10-14 17:12:11 -0700373 srcs = COMMON_TEST_SRCS + [
Jisi Liu7a0c4312015-06-18 16:45:27 -0700374 # AUTOGEN(test_srcs)
375 "src/google/protobuf/any_test.cc",
376 "src/google/protobuf/arena_unittest.cc",
377 "src/google/protobuf/arenastring_unittest.cc",
378 "src/google/protobuf/compiler/command_line_interface_unittest.cc",
379 "src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc",
380 "src/google/protobuf/compiler/cpp/cpp_plugin_unittest.cc",
381 "src/google/protobuf/compiler/cpp/cpp_unittest.cc",
382 "src/google/protobuf/compiler/csharp/csharp_generator_unittest.cc",
383 "src/google/protobuf/compiler/importer_unittest.cc",
384 "src/google/protobuf/compiler/java/java_doc_comment_unittest.cc",
385 "src/google/protobuf/compiler/java/java_plugin_unittest.cc",
386 "src/google/protobuf/compiler/mock_code_generator.cc",
387 "src/google/protobuf/compiler/objectivec/objectivec_helpers_unittest.cc",
388 "src/google/protobuf/compiler/parser_unittest.cc",
389 "src/google/protobuf/compiler/python/python_plugin_unittest.cc",
390 "src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc",
391 "src/google/protobuf/descriptor_database_unittest.cc",
392 "src/google/protobuf/descriptor_unittest.cc",
393 "src/google/protobuf/drop_unknown_fields_test.cc",
394 "src/google/protobuf/dynamic_message_unittest.cc",
395 "src/google/protobuf/extension_set_unittest.cc",
396 "src/google/protobuf/generated_message_reflection_unittest.cc",
397 "src/google/protobuf/io/coded_stream_unittest.cc",
398 "src/google/protobuf/io/printer_unittest.cc",
399 "src/google/protobuf/io/tokenizer_unittest.cc",
400 "src/google/protobuf/io/zero_copy_stream_unittest.cc",
401 "src/google/protobuf/map_field_test.cc",
402 "src/google/protobuf/map_test.cc",
403 "src/google/protobuf/message_unittest.cc",
404 "src/google/protobuf/no_field_presence_test.cc",
405 "src/google/protobuf/preserve_unknown_enum_test.cc",
406 "src/google/protobuf/proto3_arena_unittest.cc",
407 "src/google/protobuf/reflection_ops_unittest.cc",
408 "src/google/protobuf/repeated_field_reflection_unittest.cc",
409 "src/google/protobuf/repeated_field_unittest.cc",
410 "src/google/protobuf/stubs/bytestream_unittest.cc",
411 "src/google/protobuf/stubs/common_unittest.cc",
Jisi Liub90f9f82015-08-25 17:06:33 -0700412 "src/google/protobuf/stubs/int128_unittest.cc",
Jisi Liu7a0c4312015-06-18 16:45:27 -0700413 "src/google/protobuf/stubs/once_unittest.cc",
414 "src/google/protobuf/stubs/status_test.cc",
415 "src/google/protobuf/stubs/statusor_test.cc",
416 "src/google/protobuf/stubs/stringpiece_unittest.cc",
417 "src/google/protobuf/stubs/stringprintf_unittest.cc",
418 "src/google/protobuf/stubs/structurally_valid_unittest.cc",
419 "src/google/protobuf/stubs/strutil_unittest.cc",
420 "src/google/protobuf/stubs/template_util_unittest.cc",
421 "src/google/protobuf/stubs/time_test.cc",
422 "src/google/protobuf/stubs/type_traits_unittest.cc",
423 "src/google/protobuf/text_format_unittest.cc",
424 "src/google/protobuf/unknown_field_set_unittest.cc",
425 "src/google/protobuf/util/field_comparator_test.cc",
Jisi Liub90f9f82015-08-25 17:06:33 -0700426 "src/google/protobuf/util/field_mask_util_test.cc",
Jisi Liu7a0c4312015-06-18 16:45:27 -0700427 "src/google/protobuf/util/internal/default_value_objectwriter_test.cc",
428 "src/google/protobuf/util/internal/json_objectwriter_test.cc",
429 "src/google/protobuf/util/internal/json_stream_parser_test.cc",
430 "src/google/protobuf/util/internal/protostream_objectsource_test.cc",
431 "src/google/protobuf/util/internal/protostream_objectwriter_test.cc",
432 "src/google/protobuf/util/internal/type_info_test_helper.cc",
433 "src/google/protobuf/util/json_util_test.cc",
Jisi Liub90f9f82015-08-25 17:06:33 -0700434 "src/google/protobuf/util/time_util_test.cc",
Jisi Liu7a0c4312015-06-18 16:45:27 -0700435 "src/google/protobuf/util/type_resolver_util_test.cc",
436 "src/google/protobuf/well_known_types_unittest.cc",
437 "src/google/protobuf/wire_format_unittest.cc",
438 ],
439 copts = COPTS,
440 data = [
441 ":test_plugin",
442 ],
443 includes = [
444 "src/",
445 ],
446 linkopts = LINK_OPTS,
447 deps = [
448 ":protobuf",
449 ":protoc_lib",
Jisi Liu39362b32015-10-14 17:12:11 -0700450 ":cc_test_protos",
Jisi Liu7a0c4312015-06-18 16:45:27 -0700451 "//external:gtest_main",
452 ],
453)