1## Process this file with automake to produce Makefile.in 2 3if HAVE_ZLIB 4GZCHECKPROGRAMS = zcgzip zcgunzip 5GZHEADERS = google/protobuf/io/gzip_stream.h 6GZTESTS = google/protobuf/io/gzip_stream_unittest.sh 7ZLIB_DEF = -DHAVE_ZLIB=1 8else 9GZCHECKPROGRAMS = 10GZHEADERS = 11GZTESTS = 12ZLIB_DEF = 13endif 14 15if HAVE_PTHREAD 16PTHREAD_DEF = -DHAVE_PTHREAD=1 17else 18PTHREAD_DEF = 19endif 20 21PROTOBUF_VERSION = 20:1:0 22 23if GCC 24# Turn on all warnings except for sign comparison (we ignore sign comparison 25# in Google so our code base have tons of such warnings). 26NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_DEF) $(ZLIB_DEF) -Wall -Wno-sign-compare 27else 28NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_DEF) $(ZLIB_DEF) 29endif 30 31AM_CXXFLAGS = $(NO_OPT_CXXFLAGS) $(PROTOBUF_OPT_FLAG) 32 33AM_LDFLAGS = $(PTHREAD_CFLAGS) 34 35# If I say "dist_include_DATA", automake complains that $(includedir) is not 36# a "legitimate" directory for DATA. Screw you, automake. 37protodir = $(includedir) 38 39# If you are adding new files here, also remember to change the build files for 40# all other languages, //protoc-artifacts/build-zip.sh and run 41# //update_file_list.sh for bazel. 42nobase_dist_proto_DATA = google/protobuf/descriptor.proto \ 43 google/protobuf/any.proto \ 44 google/protobuf/api.proto \ 45 google/protobuf/duration.proto \ 46 google/protobuf/empty.proto \ 47 google/protobuf/field_mask.proto \ 48 google/protobuf/source_context.proto \ 49 google/protobuf/struct.proto \ 50 google/protobuf/timestamp.proto \ 51 google/protobuf/type.proto \ 52 google/protobuf/wrappers.proto \ 53 google/protobuf/compiler/plugin.proto 54 55# Not sure why these don't get cleaned automatically. 56clean-local: 57 rm -f *.loT 58 59CLEANFILES = $(protoc_outputs) unittest_proto_middleman \ 60 testzip.jar testzip.list testzip.proto testzip.zip \ 61 no_warning_test.cc 62 63MAINTAINERCLEANFILES = \ 64 Makefile.in 65 66nobase_include_HEADERS = \ 67 google/protobuf/stubs/callback.h \ 68 google/protobuf/stubs/bytestream.h \ 69 google/protobuf/stubs/casts.h \ 70 google/protobuf/stubs/common.h \ 71 google/protobuf/stubs/fastmem.h \ 72 google/protobuf/stubs/hash.h \ 73 google/protobuf/stubs/logging.h \ 74 google/protobuf/stubs/macros.h \ 75 google/protobuf/stubs/map_util.h \ 76 google/protobuf/stubs/mutex.h \ 77 google/protobuf/stubs/once.h \ 78 google/protobuf/stubs/platform_macros.h \ 79 google/protobuf/stubs/port.h \ 80 google/protobuf/stubs/status.h \ 81 google/protobuf/stubs/stl_util.h \ 82 google/protobuf/stubs/stringpiece.h \ 83 google/protobuf/stubs/strutil.h \ 84 google/protobuf/stubs/template_util.h \ 85 google/protobuf/any.pb.h \ 86 google/protobuf/api.pb.h \ 87 google/protobuf/any.h \ 88 google/protobuf/arena.h \ 89 google/protobuf/arena_impl.h \ 90 google/protobuf/arenastring.h \ 91 google/protobuf/descriptor_database.h \ 92 google/protobuf/descriptor.h \ 93 google/protobuf/descriptor.pb.h \ 94 google/protobuf/duration.pb.h \ 95 google/protobuf/dynamic_message.h \ 96 google/protobuf/empty.pb.h \ 97 google/protobuf/extension_set.h \ 98 google/protobuf/extension_set_inl.h \ 99 google/protobuf/field_mask.pb.h \ 100 google/protobuf/generated_enum_reflection.h \ 101 google/protobuf/generated_enum_util.h \ 102 google/protobuf/generated_message_reflection.h \ 103 google/protobuf/generated_message_table_driven.h \ 104 google/protobuf/generated_message_util.h \ 105 google/protobuf/has_bits.h \ 106 google/protobuf/implicit_weak_message.h \ 107 google/protobuf/inlined_string_field.h \ 108 google/protobuf/map_entry.h \ 109 google/protobuf/map_entry_lite.h \ 110 google/protobuf/map_field.h \ 111 google/protobuf/map_field_inl.h \ 112 google/protobuf/map_field_lite.h \ 113 google/protobuf/map.h \ 114 google/protobuf/map_type_handler.h \ 115 google/protobuf/message.h \ 116 google/protobuf/message_lite.h \ 117 google/protobuf/metadata.h \ 118 google/protobuf/metadata_lite.h \ 119 google/protobuf/parse_context.h \ 120 google/protobuf/port.h \ 121 google/protobuf/port_def.inc \ 122 google/protobuf/port_undef.inc \ 123 google/protobuf/reflection.h \ 124 google/protobuf/reflection_ops.h \ 125 google/protobuf/repeated_field.h \ 126 google/protobuf/service.h \ 127 google/protobuf/source_context.pb.h \ 128 google/protobuf/struct.pb.h \ 129 google/protobuf/text_format.h \ 130 google/protobuf/timestamp.pb.h \ 131 google/protobuf/type.pb.h \ 132 google/protobuf/unknown_field_set.h \ 133 google/protobuf/wire_format.h \ 134 google/protobuf/wire_format_lite.h \ 135 google/protobuf/wrappers.pb.h \ 136 google/protobuf/io/coded_stream.h \ 137 $(GZHEADERS) \ 138 google/protobuf/io/printer.h \ 139 google/protobuf/io/strtod.h \ 140 google/protobuf/io/tokenizer.h \ 141 google/protobuf/io/zero_copy_stream.h \ 142 google/protobuf/io/zero_copy_stream_impl.h \ 143 google/protobuf/io/zero_copy_stream_impl_lite.h \ 144 google/protobuf/compiler/code_generator.h \ 145 google/protobuf/compiler/command_line_interface.h \ 146 google/protobuf/compiler/importer.h \ 147 google/protobuf/compiler/parser.h \ 148 google/protobuf/compiler/plugin.h \ 149 google/protobuf/compiler/plugin.pb.h \ 150 google/protobuf/compiler/cpp/cpp_generator.h \ 151 google/protobuf/compiler/csharp/csharp_generator.h \ 152 google/protobuf/compiler/csharp/csharp_names.h \ 153 google/protobuf/compiler/java/java_generator.h \ 154 google/protobuf/compiler/java/java_names.h \ 155 google/protobuf/compiler/js/js_generator.h \ 156 google/protobuf/compiler/js/well_known_types_embed.h \ 157 google/protobuf/compiler/objectivec/objectivec_generator.h \ 158 google/protobuf/compiler/objectivec/objectivec_helpers.h \ 159 google/protobuf/compiler/php/php_generator.h \ 160 google/protobuf/compiler/python/python_generator.h \ 161 google/protobuf/compiler/ruby/ruby_generator.h \ 162 google/protobuf/util/type_resolver.h \ 163 google/protobuf/util/delimited_message_util.h \ 164 google/protobuf/util/field_comparator.h \ 165 google/protobuf/util/field_mask_util.h \ 166 google/protobuf/util/json_util.h \ 167 google/protobuf/util/time_util.h \ 168 google/protobuf/util/type_resolver_util.h \ 169 google/protobuf/util/message_differencer.h 170 171lib_LTLIBRARIES = libprotobuf-lite.la libprotobuf.la libprotoc.la 172 173libprotobuf_lite_la_LIBADD = $(PTHREAD_LIBS) $(LIBATOMIC_LIBS) 174libprotobuf_lite_la_LDFLAGS = -version-info $(PROTOBUF_VERSION) -export-dynamic -no-undefined 175if HAVE_LD_VERSION_SCRIPT 176libprotobuf_lite_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotobuf-lite.map 177EXTRA_libprotobuf_lite_la_DEPENDENCIES = libprotobuf-lite.map 178endif 179libprotobuf_lite_la_SOURCES = \ 180 google/protobuf/stubs/bytestream.cc \ 181 google/protobuf/stubs/bytestream.h \ 182 google/protobuf/stubs/common.cc \ 183 google/protobuf/stubs/hash.h \ 184 google/protobuf/stubs/int128.cc \ 185 google/protobuf/stubs/int128.h \ 186 google/protobuf/io/io_win32.cc \ 187 google/protobuf/io/io_win32.h \ 188 google/protobuf/stubs/map_util.h \ 189 google/protobuf/stubs/mathutil.h \ 190 google/protobuf/stubs/status.cc \ 191 google/protobuf/stubs/status.h \ 192 google/protobuf/stubs/status_macros.h \ 193 google/protobuf/stubs/statusor.cc \ 194 google/protobuf/stubs/statusor.h \ 195 google/protobuf/stubs/stringpiece.cc \ 196 google/protobuf/stubs/stringpiece.h \ 197 google/protobuf/stubs/stringprintf.cc \ 198 google/protobuf/stubs/stringprintf.h \ 199 google/protobuf/stubs/structurally_valid.cc \ 200 google/protobuf/stubs/strutil.cc \ 201 google/protobuf/stubs/time.cc \ 202 google/protobuf/stubs/time.h \ 203 google/protobuf/any_lite.cc \ 204 google/protobuf/arena.cc \ 205 google/protobuf/extension_set.cc \ 206 google/protobuf/generated_enum_util.cc \ 207 google/protobuf/generated_message_util.cc \ 208 google/protobuf/generated_message_table_driven_lite.h \ 209 google/protobuf/generated_message_table_driven_lite.cc \ 210 google/protobuf/implicit_weak_message.cc \ 211 google/protobuf/message_lite.cc \ 212 google/protobuf/parse_context.cc \ 213 google/protobuf/repeated_field.cc \ 214 google/protobuf/wire_format_lite.cc \ 215 google/protobuf/io/coded_stream.cc \ 216 google/protobuf/io/coded_stream_inl.h \ 217 google/protobuf/io/strtod.cc \ 218 google/protobuf/io/zero_copy_stream.cc \ 219 google/protobuf/io/zero_copy_stream_impl.cc \ 220 google/protobuf/io/zero_copy_stream_impl_lite.cc 221 222libprotobuf_la_LIBADD = $(PTHREAD_LIBS) $(LIBATOMIC_LIBS) 223libprotobuf_la_LDFLAGS = -version-info $(PROTOBUF_VERSION) -export-dynamic -no-undefined 224if HAVE_LD_VERSION_SCRIPT 225libprotobuf_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotobuf.map 226EXTRA_libprotobuf_la_DEPENDENCIES = libprotobuf.map 227endif 228libprotobuf_la_SOURCES = \ 229 $(libprotobuf_lite_la_SOURCES) \ 230 google/protobuf/any.pb.cc \ 231 google/protobuf/api.pb.cc \ 232 google/protobuf/stubs/mathlimits.cc \ 233 google/protobuf/stubs/mathlimits.h \ 234 google/protobuf/any.cc \ 235 google/protobuf/descriptor.cc \ 236 google/protobuf/descriptor_database.cc \ 237 google/protobuf/descriptor.pb.cc \ 238 google/protobuf/duration.pb.cc \ 239 google/protobuf/dynamic_message.cc \ 240 google/protobuf/empty.pb.cc \ 241 google/protobuf/extension_set_heavy.cc \ 242 google/protobuf/field_mask.pb.cc \ 243 google/protobuf/generated_message_reflection.cc \ 244 google/protobuf/generated_message_table_driven_lite.h \ 245 google/protobuf/generated_message_table_driven.cc \ 246 google/protobuf/map_field.cc \ 247 google/protobuf/message.cc \ 248 google/protobuf/reflection_internal.h \ 249 google/protobuf/reflection_ops.cc \ 250 google/protobuf/service.cc \ 251 google/protobuf/source_context.pb.cc \ 252 google/protobuf/struct.pb.cc \ 253 google/protobuf/stubs/substitute.cc \ 254 google/protobuf/stubs/substitute.h \ 255 google/protobuf/text_format.cc \ 256 google/protobuf/timestamp.pb.cc \ 257 google/protobuf/type.pb.cc \ 258 google/protobuf/unknown_field_set.cc \ 259 google/protobuf/wire_format.cc \ 260 google/protobuf/wrappers.pb.cc \ 261 google/protobuf/io/gzip_stream.cc \ 262 google/protobuf/io/printer.cc \ 263 google/protobuf/io/tokenizer.cc \ 264 google/protobuf/compiler/importer.cc \ 265 google/protobuf/compiler/parser.cc \ 266 google/protobuf/util/delimited_message_util.cc \ 267 google/protobuf/util/field_comparator.cc \ 268 google/protobuf/util/field_mask_util.cc \ 269 google/protobuf/util/internal/constants.h \ 270 google/protobuf/util/internal/datapiece.cc \ 271 google/protobuf/util/internal/datapiece.h \ 272 google/protobuf/util/internal/default_value_objectwriter.cc \ 273 google/protobuf/util/internal/default_value_objectwriter.h \ 274 google/protobuf/util/internal/error_listener.cc \ 275 google/protobuf/util/internal/error_listener.h \ 276 google/protobuf/util/internal/expecting_objectwriter.h \ 277 google/protobuf/util/internal/field_mask_utility.cc \ 278 google/protobuf/util/internal/field_mask_utility.h \ 279 google/protobuf/util/internal/json_escaping.cc \ 280 google/protobuf/util/internal/json_escaping.h \ 281 google/protobuf/util/internal/json_objectwriter.cc \ 282 google/protobuf/util/internal/json_objectwriter.h \ 283 google/protobuf/util/internal/json_stream_parser.cc \ 284 google/protobuf/util/internal/json_stream_parser.h \ 285 google/protobuf/util/internal/location_tracker.h \ 286 google/protobuf/util/internal/mock_error_listener.h \ 287 google/protobuf/util/internal/object_location_tracker.h \ 288 google/protobuf/util/internal/object_source.h \ 289 google/protobuf/util/internal/object_writer.cc \ 290 google/protobuf/util/internal/object_writer.h \ 291 google/protobuf/util/internal/protostream_objectsource.cc \ 292 google/protobuf/util/internal/protostream_objectsource.h \ 293 google/protobuf/util/internal/protostream_objectwriter.cc \ 294 google/protobuf/util/internal/protostream_objectwriter.h \ 295 google/protobuf/util/internal/proto_writer.cc \ 296 google/protobuf/util/internal/proto_writer.h \ 297 google/protobuf/util/internal/structured_objectwriter.h \ 298 google/protobuf/util/internal/type_info.cc \ 299 google/protobuf/util/internal/type_info.h \ 300 google/protobuf/util/internal/type_info_test_helper.cc \ 301 google/protobuf/util/internal/type_info_test_helper.h \ 302 google/protobuf/util/internal/utility.cc \ 303 google/protobuf/util/internal/utility.h \ 304 google/protobuf/util/json_util.cc \ 305 google/protobuf/util/message_differencer.cc \ 306 google/protobuf/util/time_util.cc \ 307 google/protobuf/util/type_resolver_util.cc 308 309nodist_libprotobuf_la_SOURCES = $(nodist_libprotobuf_lite_la_SOURCES) 310 311libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la 312libprotoc_la_LDFLAGS = -version-info $(PROTOBUF_VERSION) -export-dynamic -no-undefined 313if HAVE_LD_VERSION_SCRIPT 314libprotoc_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotoc.map 315EXTRA_libprotoc_la_DEPENDENCIES = libprotoc.map 316endif 317libprotoc_la_SOURCES = \ 318 google/protobuf/compiler/code_generator.cc \ 319 google/protobuf/compiler/command_line_interface.cc \ 320 google/protobuf/compiler/plugin.cc \ 321 google/protobuf/compiler/plugin.pb.cc \ 322 google/protobuf/compiler/scc.h \ 323 google/protobuf/compiler/subprocess.cc \ 324 google/protobuf/compiler/subprocess.h \ 325 google/protobuf/compiler/zip_writer.cc \ 326 google/protobuf/compiler/zip_writer.h \ 327 google/protobuf/compiler/cpp/cpp_enum.cc \ 328 google/protobuf/compiler/cpp/cpp_enum.h \ 329 google/protobuf/compiler/cpp/cpp_enum_field.cc \ 330 google/protobuf/compiler/cpp/cpp_enum_field.h \ 331 google/protobuf/compiler/cpp/cpp_extension.cc \ 332 google/protobuf/compiler/cpp/cpp_extension.h \ 333 google/protobuf/compiler/cpp/cpp_field.cc \ 334 google/protobuf/compiler/cpp/cpp_field.h \ 335 google/protobuf/compiler/cpp/cpp_file.cc \ 336 google/protobuf/compiler/cpp/cpp_file.h \ 337 google/protobuf/compiler/cpp/cpp_generator.cc \ 338 google/protobuf/compiler/cpp/cpp_helpers.cc \ 339 google/protobuf/compiler/cpp/cpp_helpers.h \ 340 google/protobuf/compiler/cpp/cpp_map_field.cc \ 341 google/protobuf/compiler/cpp/cpp_map_field.h \ 342 google/protobuf/compiler/cpp/cpp_message.cc \ 343 google/protobuf/compiler/cpp/cpp_message.h \ 344 google/protobuf/compiler/cpp/cpp_message_field.cc \ 345 google/protobuf/compiler/cpp/cpp_message_field.h \ 346 google/protobuf/compiler/cpp/cpp_message_layout_helper.h \ 347 google/protobuf/compiler/cpp/cpp_options.h \ 348 google/protobuf/compiler/cpp/cpp_padding_optimizer.cc \ 349 google/protobuf/compiler/cpp/cpp_padding_optimizer.h \ 350 google/protobuf/compiler/cpp/cpp_primitive_field.cc \ 351 google/protobuf/compiler/cpp/cpp_primitive_field.h \ 352 google/protobuf/compiler/cpp/cpp_service.cc \ 353 google/protobuf/compiler/cpp/cpp_service.h \ 354 google/protobuf/compiler/cpp/cpp_string_field.cc \ 355 google/protobuf/compiler/cpp/cpp_string_field.h \ 356 google/protobuf/compiler/java/java_context.cc \ 357 google/protobuf/compiler/java/java_context.h \ 358 google/protobuf/compiler/java/java_enum.cc \ 359 google/protobuf/compiler/java/java_enum_lite.cc \ 360 google/protobuf/compiler/java/java_enum_field.cc \ 361 google/protobuf/compiler/java/java_enum_field.h \ 362 google/protobuf/compiler/java/java_enum_field_lite.cc \ 363 google/protobuf/compiler/java/java_enum_field_lite.h \ 364 google/protobuf/compiler/java/java_enum.h \ 365 google/protobuf/compiler/java/java_enum_lite.h \ 366 google/protobuf/compiler/java/java_extension.cc \ 367 google/protobuf/compiler/java/java_extension.h \ 368 google/protobuf/compiler/java/java_extension_lite.cc \ 369 google/protobuf/compiler/java/java_extension_lite.h \ 370 google/protobuf/compiler/java/java_field.cc \ 371 google/protobuf/compiler/java/java_field.h \ 372 google/protobuf/compiler/java/java_file.cc \ 373 google/protobuf/compiler/java/java_file.h \ 374 google/protobuf/compiler/java/java_generator.cc \ 375 google/protobuf/compiler/java/java_generator_factory.cc \ 376 google/protobuf/compiler/java/java_generator_factory.h \ 377 google/protobuf/compiler/java/java_helpers.cc \ 378 google/protobuf/compiler/java/java_helpers.h \ 379 google/protobuf/compiler/java/java_map_field.cc \ 380 google/protobuf/compiler/java/java_map_field.h \ 381 google/protobuf/compiler/java/java_map_field_lite.cc \ 382 google/protobuf/compiler/java/java_map_field_lite.h \ 383 google/protobuf/compiler/java/java_message.cc \ 384 google/protobuf/compiler/java/java_message_lite.cc \ 385 google/protobuf/compiler/java/java_message_builder.cc \ 386 google/protobuf/compiler/java/java_message_builder_lite.cc \ 387 google/protobuf/compiler/java/java_message_field.cc \ 388 google/protobuf/compiler/java/java_message_field.h \ 389 google/protobuf/compiler/java/java_message_field_lite.cc \ 390 google/protobuf/compiler/java/java_message_field_lite.h \ 391 google/protobuf/compiler/java/java_message.h \ 392 google/protobuf/compiler/java/java_message_lite.h \ 393 google/protobuf/compiler/java/java_message_builder.h \ 394 google/protobuf/compiler/java/java_message_builder_lite.h \ 395 google/protobuf/compiler/java/java_name_resolver.cc \ 396 google/protobuf/compiler/java/java_name_resolver.h \ 397 google/protobuf/compiler/java/java_options.h \ 398 google/protobuf/compiler/java/java_primitive_field.cc \ 399 google/protobuf/compiler/java/java_primitive_field.h \ 400 google/protobuf/compiler/java/java_primitive_field_lite.cc \ 401 google/protobuf/compiler/java/java_primitive_field_lite.h \ 402 google/protobuf/compiler/java/java_shared_code_generator.cc \ 403 google/protobuf/compiler/java/java_shared_code_generator.h \ 404 google/protobuf/compiler/java/java_service.cc \ 405 google/protobuf/compiler/java/java_service.h \ 406 google/protobuf/compiler/java/java_string_field.cc \ 407 google/protobuf/compiler/java/java_string_field.h \ 408 google/protobuf/compiler/java/java_string_field_lite.cc \ 409 google/protobuf/compiler/java/java_string_field_lite.h \ 410 google/protobuf/compiler/java/java_doc_comment.cc \ 411 google/protobuf/compiler/java/java_doc_comment.h \ 412 google/protobuf/compiler/js/js_generator.cc \ 413 google/protobuf/compiler/js/well_known_types_embed.cc \ 414 google/protobuf/compiler/objectivec/objectivec_enum.cc \ 415 google/protobuf/compiler/objectivec/objectivec_enum.h \ 416 google/protobuf/compiler/objectivec/objectivec_enum_field.cc \ 417 google/protobuf/compiler/objectivec/objectivec_enum_field.h \ 418 google/protobuf/compiler/objectivec/objectivec_extension.cc \ 419 google/protobuf/compiler/objectivec/objectivec_extension.h \ 420 google/protobuf/compiler/objectivec/objectivec_field.cc \ 421 google/protobuf/compiler/objectivec/objectivec_field.h \ 422 google/protobuf/compiler/objectivec/objectivec_file.cc \ 423 google/protobuf/compiler/objectivec/objectivec_file.h \ 424 google/protobuf/compiler/objectivec/objectivec_generator.cc \ 425 google/protobuf/compiler/objectivec/objectivec_helpers.cc \ 426 google/protobuf/compiler/objectivec/objectivec_helpers.h \ 427 google/protobuf/compiler/objectivec/objectivec_map_field.cc \ 428 google/protobuf/compiler/objectivec/objectivec_map_field.h \ 429 google/protobuf/compiler/objectivec/objectivec_message.cc \ 430 google/protobuf/compiler/objectivec/objectivec_message.h \ 431 google/protobuf/compiler/objectivec/objectivec_message_field.cc \ 432 google/protobuf/compiler/objectivec/objectivec_message_field.h \ 433 google/protobuf/compiler/objectivec/objectivec_nsobject_methods.h \ 434 google/protobuf/compiler/objectivec/objectivec_oneof.cc \ 435 google/protobuf/compiler/objectivec/objectivec_oneof.h \ 436 google/protobuf/compiler/objectivec/objectivec_primitive_field.cc \ 437 google/protobuf/compiler/objectivec/objectivec_primitive_field.h \ 438 google/protobuf/compiler/php/php_generator.cc \ 439 google/protobuf/compiler/python/python_generator.cc \ 440 google/protobuf/compiler/ruby/ruby_generator.cc \ 441 google/protobuf/compiler/csharp/csharp_doc_comment.cc \ 442 google/protobuf/compiler/csharp/csharp_doc_comment.h \ 443 google/protobuf/compiler/csharp/csharp_enum.cc \ 444 google/protobuf/compiler/csharp/csharp_enum.h \ 445 google/protobuf/compiler/csharp/csharp_enum_field.cc \ 446 google/protobuf/compiler/csharp/csharp_enum_field.h \ 447 google/protobuf/compiler/csharp/csharp_field_base.cc \ 448 google/protobuf/compiler/csharp/csharp_field_base.h \ 449 google/protobuf/compiler/csharp/csharp_generator.cc \ 450 google/protobuf/compiler/csharp/csharp_helpers.cc \ 451 google/protobuf/compiler/csharp/csharp_helpers.h \ 452 google/protobuf/compiler/csharp/csharp_map_field.cc \ 453 google/protobuf/compiler/csharp/csharp_map_field.h \ 454 google/protobuf/compiler/csharp/csharp_message.cc \ 455 google/protobuf/compiler/csharp/csharp_message.h \ 456 google/protobuf/compiler/csharp/csharp_message_field.cc \ 457 google/protobuf/compiler/csharp/csharp_message_field.h \ 458 google/protobuf/compiler/csharp/csharp_options.h \ 459 google/protobuf/compiler/csharp/csharp_primitive_field.cc \ 460 google/protobuf/compiler/csharp/csharp_primitive_field.h \ 461 google/protobuf/compiler/csharp/csharp_reflection_class.cc \ 462 google/protobuf/compiler/csharp/csharp_reflection_class.h \ 463 google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc \ 464 google/protobuf/compiler/csharp/csharp_repeated_enum_field.h \ 465 google/protobuf/compiler/csharp/csharp_repeated_message_field.cc \ 466 google/protobuf/compiler/csharp/csharp_repeated_message_field.h \ 467 google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc \ 468 google/protobuf/compiler/csharp/csharp_repeated_primitive_field.h \ 469 google/protobuf/compiler/csharp/csharp_source_generator_base.cc \ 470 google/protobuf/compiler/csharp/csharp_source_generator_base.h \ 471 google/protobuf/compiler/csharp/csharp_wrapper_field.cc \ 472 google/protobuf/compiler/csharp/csharp_wrapper_field.h 473 474bin_PROGRAMS = protoc 475protoc_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la 476protoc_SOURCES = google/protobuf/compiler/main.cc 477 478# Tests ============================================================== 479 480protoc_inputs = \ 481 google/protobuf/any_test.proto \ 482 google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto \ 483 google/protobuf/map_lite_unittest.proto \ 484 google/protobuf/map_proto2_unittest.proto \ 485 google/protobuf/map_unittest.proto \ 486 google/protobuf/unittest_arena.proto \ 487 google/protobuf/unittest_custom_options.proto \ 488 google/protobuf/unittest_drop_unknown_fields.proto \ 489 google/protobuf/unittest_embed_optimize_for.proto \ 490 google/protobuf/unittest_empty.proto \ 491 google/protobuf/unittest_enormous_descriptor.proto \ 492 google/protobuf/unittest_import_lite.proto \ 493 google/protobuf/unittest_import.proto \ 494 google/protobuf/unittest_import_public_lite.proto \ 495 google/protobuf/unittest_import_public.proto \ 496 google/protobuf/unittest_lazy_dependencies.proto \ 497 google/protobuf/unittest_lazy_dependencies_custom_option.proto \ 498 google/protobuf/unittest_lazy_dependencies_enum.proto \ 499 google/protobuf/unittest_lite_imports_nonlite.proto \ 500 google/protobuf/unittest_lite.proto \ 501 google/protobuf/unittest_mset.proto \ 502 google/protobuf/unittest_mset_wire_format.proto \ 503 google/protobuf/unittest_no_arena_lite.proto \ 504 google/protobuf/unittest_no_arena_import.proto \ 505 google/protobuf/unittest_no_arena.proto \ 506 google/protobuf/unittest_no_field_presence.proto \ 507 google/protobuf/unittest_no_generic_services.proto \ 508 google/protobuf/unittest_optimize_for.proto \ 509 google/protobuf/unittest_preserve_unknown_enum2.proto \ 510 google/protobuf/unittest_preserve_unknown_enum.proto \ 511 google/protobuf/unittest.proto \ 512 google/protobuf/unittest_proto3.proto \ 513 google/protobuf/unittest_proto3_arena.proto \ 514 google/protobuf/unittest_proto3_arena_lite.proto \ 515 google/protobuf/unittest_proto3_lite.proto \ 516 google/protobuf/unittest_well_known_types.proto \ 517 google/protobuf/util/internal/testdata/anys.proto \ 518 google/protobuf/util/internal/testdata/books.proto \ 519 google/protobuf/util/internal/testdata/default_value.proto \ 520 google/protobuf/util/internal/testdata/default_value_test.proto \ 521 google/protobuf/util/internal/testdata/field_mask.proto \ 522 google/protobuf/util/internal/testdata/maps.proto \ 523 google/protobuf/util/internal/testdata/oneofs.proto \ 524 google/protobuf/util/internal/testdata/proto3.proto \ 525 google/protobuf/util/internal/testdata/struct.proto \ 526 google/protobuf/util/internal/testdata/timestamp_duration.proto \ 527 google/protobuf/util/internal/testdata/wrappers.proto \ 528 google/protobuf/util/json_format.proto \ 529 google/protobuf/util/json_format_proto3.proto \ 530 google/protobuf/util/message_differencer_unittest.proto \ 531 google/protobuf/compiler/cpp/cpp_test_large_enum_value.proto 532 533EXTRA_DIST = \ 534 $(protoc_inputs) \ 535 solaris/libstdc++.la \ 536 google/protobuf/test_messages_proto3.proto \ 537 google/protobuf/test_messages_proto2.proto \ 538 google/protobuf/io/gzip_stream.h \ 539 google/protobuf/io/gzip_stream_unittest.sh \ 540 google/protobuf/testdata/golden_message \ 541 google/protobuf/testdata/golden_message_maps \ 542 google/protobuf/testdata/golden_message_oneof_implemented \ 543 google/protobuf/testdata/golden_message_proto3 \ 544 google/protobuf/testdata/golden_packed_fields_message \ 545 google/protobuf/testdata/bad_utf8_string \ 546 google/protobuf/testdata/map_test_data.txt \ 547 google/protobuf/testdata/text_format_unittest_data.txt \ 548 google/protobuf/testdata/text_format_unittest_data_oneof_implemented.txt \ 549 google/protobuf/testdata/text_format_unittest_data_pointy.txt \ 550 google/protobuf/testdata/text_format_unittest_data_pointy_oneof.txt \ 551 google/protobuf/testdata/text_format_unittest_extensions_data.txt \ 552 google/protobuf/testdata/text_format_unittest_extensions_data_pointy.txt \ 553 google/protobuf/package_info.h \ 554 google/protobuf/io/package_info.h \ 555 google/protobuf/util/package_info.h \ 556 google/protobuf/compiler/ruby/ruby_generated_code.proto \ 557 google/protobuf/compiler/ruby/ruby_generated_code_pb.rb \ 558 google/protobuf/compiler/ruby/ruby_generated_code_proto2.proto \ 559 google/protobuf/compiler/ruby/ruby_generated_code_proto2_pb.rb \ 560 google/protobuf/compiler/ruby/ruby_generated_pkg_explicit.proto \ 561 google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy.proto \ 562 google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy_pb.rb \ 563 google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_pb.rb \ 564 google/protobuf/compiler/ruby/ruby_generated_pkg_implicit.proto \ 565 google/protobuf/compiler/ruby/ruby_generated_pkg_implicit_pb.rb \ 566 google/protobuf/compiler/package_info.h \ 567 google/protobuf/compiler/zip_output_unittest.sh \ 568 libprotobuf-lite.map \ 569 libprotobuf.map \ 570 libprotoc.map \ 571 README.md 572 573protoc_lite_outputs = \ 574 google/protobuf/map_lite_unittest.pb.cc \ 575 google/protobuf/map_lite_unittest.pb.h \ 576 google/protobuf/unittest_lite.pb.cc \ 577 google/protobuf/unittest_lite.pb.h \ 578 google/protobuf/unittest_no_arena_lite.pb.cc \ 579 google/protobuf/unittest_no_arena_lite.pb.h \ 580 google/protobuf/unittest_import_lite.pb.cc \ 581 google/protobuf/unittest_import_lite.pb.h \ 582 google/protobuf/unittest_import_public_lite.pb.cc \ 583 google/protobuf/unittest_import_public_lite.pb.h 584 585protoc_outputs = \ 586 $(protoc_lite_outputs) \ 587 google/protobuf/any_test.pb.cc \ 588 google/protobuf/any_test.pb.h \ 589 google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.cc \ 590 google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h \ 591 google/protobuf/compiler/cpp/cpp_test_large_enum_value.pb.cc \ 592 google/protobuf/compiler/cpp/cpp_test_large_enum_value.pb.h \ 593 google/protobuf/map_proto2_unittest.pb.cc \ 594 google/protobuf/map_proto2_unittest.pb.h \ 595 google/protobuf/map_unittest.pb.cc \ 596 google/protobuf/map_unittest.pb.h \ 597 google/protobuf/unittest_arena.pb.cc \ 598 google/protobuf/unittest_arena.pb.h \ 599 google/protobuf/unittest_custom_options.pb.cc \ 600 google/protobuf/unittest_custom_options.pb.h \ 601 google/protobuf/unittest_drop_unknown_fields.pb.cc \ 602 google/protobuf/unittest_drop_unknown_fields.pb.h \ 603 google/protobuf/unittest_embed_optimize_for.pb.cc \ 604 google/protobuf/unittest_embed_optimize_for.pb.h \ 605 google/protobuf/unittest_empty.pb.cc \ 606 google/protobuf/unittest_empty.pb.h \ 607 google/protobuf/unittest_enormous_descriptor.pb.cc \ 608 google/protobuf/unittest_enormous_descriptor.pb.h \ 609 google/protobuf/unittest_import.pb.cc \ 610 google/protobuf/unittest_import.pb.h \ 611 google/protobuf/unittest_import_public.pb.cc \ 612 google/protobuf/unittest_import_public.pb.h \ 613 google/protobuf/unittest_lazy_dependencies.pb.cc \ 614 google/protobuf/unittest_lazy_dependencies.pb.h \ 615 google/protobuf/unittest_lazy_dependencies_custom_option.pb.cc \ 616 google/protobuf/unittest_lazy_dependencies_custom_option.pb.h \ 617 google/protobuf/unittest_lazy_dependencies_enum.pb.cc \ 618 google/protobuf/unittest_lazy_dependencies_enum.pb.h \ 619 google/protobuf/unittest_lite_imports_nonlite.pb.cc \ 620 google/protobuf/unittest_lite_imports_nonlite.pb.h \ 621 google/protobuf/unittest_mset.pb.cc \ 622 google/protobuf/unittest_mset.pb.h \ 623 google/protobuf/unittest_mset_wire_format.pb.cc \ 624 google/protobuf/unittest_mset_wire_format.pb.h \ 625 google/protobuf/unittest_no_arena_import.pb.cc \ 626 google/protobuf/unittest_no_arena_import.pb.h \ 627 google/protobuf/unittest_no_arena.pb.cc \ 628 google/protobuf/unittest_no_arena.pb.h \ 629 google/protobuf/unittest_no_field_presence.pb.cc \ 630 google/protobuf/unittest_no_field_presence.pb.h \ 631 google/protobuf/unittest_no_generic_services.pb.cc \ 632 google/protobuf/unittest_no_generic_services.pb.h \ 633 google/protobuf/unittest_optimize_for.pb.cc \ 634 google/protobuf/unittest_optimize_for.pb.h \ 635 google/protobuf/unittest.pb.cc \ 636 google/protobuf/unittest.pb.h \ 637 google/protobuf/unittest_preserve_unknown_enum2.pb.cc \ 638 google/protobuf/unittest_preserve_unknown_enum2.pb.h \ 639 google/protobuf/unittest_preserve_unknown_enum.pb.cc \ 640 google/protobuf/unittest_preserve_unknown_enum.pb.h \ 641 google/protobuf/unittest_proto3.pb.cc \ 642 google/protobuf/unittest_proto3.pb.h \ 643 google/protobuf/unittest_proto3_arena.pb.cc \ 644 google/protobuf/unittest_proto3_arena.pb.h \ 645 google/protobuf/unittest_proto3_arena_lite.pb.cc \ 646 google/protobuf/unittest_proto3_arena_lite.pb.h \ 647 google/protobuf/unittest_proto3_lite.pb.cc \ 648 google/protobuf/unittest_proto3_lite.pb.h \ 649 google/protobuf/unittest_well_known_types.pb.cc \ 650 google/protobuf/unittest_well_known_types.pb.h \ 651 google/protobuf/util/internal/testdata/anys.pb.cc \ 652 google/protobuf/util/internal/testdata/anys.pb.h \ 653 google/protobuf/util/internal/testdata/books.pb.cc \ 654 google/protobuf/util/internal/testdata/books.pb.h \ 655 google/protobuf/util/internal/testdata/default_value.pb.cc \ 656 google/protobuf/util/internal/testdata/default_value.pb.h \ 657 google/protobuf/util/internal/testdata/default_value_test.pb.cc \ 658 google/protobuf/util/internal/testdata/default_value_test.pb.h \ 659 google/protobuf/util/internal/testdata/field_mask.pb.cc \ 660 google/protobuf/util/internal/testdata/field_mask.pb.h \ 661 google/protobuf/util/internal/testdata/maps.pb.cc \ 662 google/protobuf/util/internal/testdata/maps.pb.h \ 663 google/protobuf/util/internal/testdata/oneofs.pb.cc \ 664 google/protobuf/util/internal/testdata/oneofs.pb.h \ 665 google/protobuf/util/internal/testdata/proto3.pb.cc \ 666 google/protobuf/util/internal/testdata/proto3.pb.h \ 667 google/protobuf/util/internal/testdata/struct.pb.cc \ 668 google/protobuf/util/internal/testdata/struct.pb.h \ 669 google/protobuf/util/internal/testdata/timestamp_duration.pb.cc \ 670 google/protobuf/util/internal/testdata/timestamp_duration.pb.h \ 671 google/protobuf/util/internal/testdata/wrappers.pb.cc \ 672 google/protobuf/util/internal/testdata/wrappers.pb.h \ 673 google/protobuf/util/json_format.pb.cc \ 674 google/protobuf/util/json_format.pb.h \ 675 google/protobuf/util/json_format_proto3.pb.cc \ 676 google/protobuf/util/json_format_proto3.pb.h \ 677 google/protobuf/util/message_differencer_unittest.pb.cc \ 678 google/protobuf/util/message_differencer_unittest.pb.h 679 680if USE_EXTERNAL_PROTOC 681 682unittest_proto_middleman: $(protoc_inputs) 683 $(PROTOC) -I$(srcdir) --cpp_out=. $^ 684 touch unittest_proto_middleman 685 686else 687 688# We have to cd to $(srcdir) before executing protoc because $(protoc_inputs) is 689# relative to srcdir, which may not be the same as the current directory when 690# building out-of-tree. 691unittest_proto_middleman: protoc$(EXEEXT) $(protoc_inputs) 692 oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/protoc$(EXEEXT) -I. --cpp_out=$$oldpwd $(protoc_inputs) ) 693 touch unittest_proto_middleman 694 695endif 696 697$(protoc_outputs): unittest_proto_middleman 698 699COMMON_TEST_SOURCES = \ 700 google/protobuf/arena_test_util.cc \ 701 google/protobuf/arena_test_util.h \ 702 google/protobuf/map_test_util.cc \ 703 google/protobuf/map_test_util.h \ 704 google/protobuf/map_test_util_impl.h \ 705 google/protobuf/test_util.cc \ 706 google/protobuf/test_util.h \ 707 google/protobuf/test_util.inc \ 708 google/protobuf/test_util2.h \ 709 google/protobuf/testing/googletest.cc \ 710 google/protobuf/testing/googletest.h \ 711 google/protobuf/testing/file.cc \ 712 google/protobuf/testing/file.h 713 714GOOGLETEST_BUILD_DIR=../third_party/googletest/googletest 715GOOGLEMOCK_BUILD_DIR=../third_party/googletest/googlemock 716GOOGLETEST_SRC_DIR=$(srcdir)/../third_party/googletest/googletest 717GOOGLEMOCK_SRC_DIR=$(srcdir)/../third_party/googletest/googlemock 718check_PROGRAMS = protoc protobuf-test protobuf-lazy-descriptor-test \ 719 protobuf-lite-test test_plugin protobuf-lite-arena-test \ 720 no-warning-test $(GZCHECKPROGRAMS) 721protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \ 722 $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \ 723 $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \ 724 $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la 725protobuf_test_CPPFLAGS = -I$(GOOGLETEST_SRC_DIR)/include \ 726 -I$(GOOGLEMOCK_SRC_DIR)/include 727# Disable optimization for tests unless the user explicitly asked for it, 728# since test_util.cc takes forever to compile with optimization (with GCC). 729# See configure.ac for more info. 730protobuf_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) 731protobuf_test_SOURCES = \ 732 google/protobuf/stubs/bytestream_unittest.cc \ 733 google/protobuf/stubs/common_unittest.cc \ 734 google/protobuf/stubs/int128_unittest.cc \ 735 google/protobuf/io/io_win32_unittest.cc \ 736 google/protobuf/stubs/statusor_test.cc \ 737 google/protobuf/stubs/status_test.cc \ 738 google/protobuf/stubs/stringpiece_unittest.cc \ 739 google/protobuf/stubs/stringprintf_unittest.cc \ 740 google/protobuf/stubs/structurally_valid_unittest.cc \ 741 google/protobuf/stubs/strutil_unittest.cc \ 742 google/protobuf/stubs/template_util_unittest.cc \ 743 google/protobuf/stubs/time_test.cc \ 744 google/protobuf/any_test.cc \ 745 google/protobuf/arenastring_unittest.cc \ 746 google/protobuf/arena_unittest.cc \ 747 google/protobuf/descriptor_database_unittest.cc \ 748 google/protobuf/descriptor_unittest.cc \ 749 google/protobuf/drop_unknown_fields_test.cc \ 750 google/protobuf/dynamic_message_unittest.cc \ 751 google/protobuf/extension_set_unittest.cc \ 752 google/protobuf/generated_message_reflection_unittest.cc \ 753 google/protobuf/map_field_test.cc \ 754 google/protobuf/map_test.cc \ 755 google/protobuf/message_unittest.cc \ 756 google/protobuf/message_unittest.inc \ 757 google/protobuf/no_field_presence_test.cc \ 758 google/protobuf/preserve_unknown_enum_test.cc \ 759 google/protobuf/proto3_arena_lite_unittest.cc \ 760 google/protobuf/proto3_arena_unittest.cc \ 761 google/protobuf/proto3_lite_unittest.cc \ 762 google/protobuf/proto3_lite_unittest.inc \ 763 google/protobuf/reflection_ops_unittest.cc \ 764 google/protobuf/repeated_field_reflection_unittest.cc \ 765 google/protobuf/repeated_field_unittest.cc \ 766 google/protobuf/text_format_unittest.cc \ 767 google/protobuf/unknown_field_set_unittest.cc \ 768 google/protobuf/well_known_types_unittest.cc \ 769 google/protobuf/wire_format_unittest.cc \ 770 google/protobuf/io/coded_stream_unittest.cc \ 771 google/protobuf/io/printer_unittest.cc \ 772 google/protobuf/io/tokenizer_unittest.cc \ 773 google/protobuf/io/zero_copy_stream_unittest.cc \ 774 google/protobuf/compiler/annotation_test_util.h \ 775 google/protobuf/compiler/annotation_test_util.cc \ 776 google/protobuf/compiler/command_line_interface_unittest.cc \ 777 google/protobuf/compiler/importer_unittest.cc \ 778 google/protobuf/compiler/mock_code_generator.cc \ 779 google/protobuf/compiler/mock_code_generator.h \ 780 google/protobuf/compiler/parser_unittest.cc \ 781 google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc \ 782 google/protobuf/compiler/cpp/cpp_move_unittest.cc \ 783 google/protobuf/compiler/cpp/cpp_unittest.h \ 784 google/protobuf/compiler/cpp/cpp_unittest.cc \ 785 google/protobuf/compiler/cpp/cpp_unittest.inc \ 786 google/protobuf/compiler/cpp/cpp_plugin_unittest.cc \ 787 google/protobuf/compiler/cpp/metadata_test.cc \ 788 google/protobuf/compiler/java/java_plugin_unittest.cc \ 789 google/protobuf/compiler/java/java_doc_comment_unittest.cc \ 790 google/protobuf/compiler/objectivec/objectivec_helpers_unittest.cc \ 791 google/protobuf/compiler/python/python_plugin_unittest.cc \ 792 google/protobuf/compiler/ruby/ruby_generator_unittest.cc \ 793 google/protobuf/compiler/csharp/csharp_bootstrap_unittest.cc \ 794 google/protobuf/compiler/csharp/csharp_generator_unittest.cc \ 795 google/protobuf/util/delimited_message_util_test.cc \ 796 google/protobuf/util/field_comparator_test.cc \ 797 google/protobuf/util/field_mask_util_test.cc \ 798 google/protobuf/util/internal/default_value_objectwriter_test.cc \ 799 google/protobuf/util/internal/json_objectwriter_test.cc \ 800 google/protobuf/util/internal/json_stream_parser_test.cc \ 801 google/protobuf/util/internal/protostream_objectsource_test.cc \ 802 google/protobuf/util/internal/protostream_objectwriter_test.cc \ 803 google/protobuf/util/internal/type_info_test_helper.cc \ 804 google/protobuf/util/json_util_test.cc \ 805 google/protobuf/util/message_differencer_unittest.cc \ 806 google/protobuf/util/time_util_test.cc \ 807 google/protobuf/util/type_resolver_util_test.cc \ 808 $(COMMON_TEST_SOURCES) 809nodist_protobuf_test_SOURCES = $(protoc_outputs) 810$(am_protobuf_test_OBJECTS): unittest_proto_middleman 811 812# Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined. 813protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \ 814 libprotoc.la \ 815 $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \ 816 $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \ 817 $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la 818protobuf_lazy_descriptor_test_CPPFLAGS = -I$(GOOGLEMOCK_SRC_DIR)/include \ 819 -I$(GOOGLETEST_SRC_DIR)/include \ 820 -DPROTOBUF_TEST_NO_DESCRIPTORS 821protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) 822protobuf_lazy_descriptor_test_SOURCES = \ 823 google/protobuf/compiler/cpp/cpp_unittest.cc \ 824 $(COMMON_TEST_SOURCES) 825nodist_protobuf_lazy_descriptor_test_SOURCES = $(protoc_outputs) 826$(am_protobuf_lazy_descriptor_test_OBJECTS): unittest_proto_middleman 827 828COMMON_LITE_TEST_SOURCES = \ 829 google/protobuf/arena_test_util.cc \ 830 google/protobuf/arena_test_util.h \ 831 google/protobuf/map_lite_test_util.cc \ 832 google/protobuf/map_lite_test_util.h \ 833 google/protobuf/test_util_lite.cc \ 834 google/protobuf/test_util_lite.h 835 836# Build lite_unittest separately, since it doesn't use gtest. It can't 837# depend on gtest because our internal version of gtest depend on proto 838# full runtime and we want to make sure this test builds without full 839# runtime. 840protobuf_lite_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \ 841 $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \ 842 $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \ 843 $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la 844protobuf_lite_test_CPPFLAGS= -I$(GOOGLEMOCK_SRC_DIR)/include \ 845 -I$(GOOGLETEST_SRC_DIR)/include 846protobuf_lite_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) 847protobuf_lite_test_SOURCES = \ 848 google/protobuf/lite_unittest.cc \ 849 $(COMMON_LITE_TEST_SOURCES) 850nodist_protobuf_lite_test_SOURCES = $(protoc_lite_outputs) 851$(am_protobuf_lite_test_OBJECTS): unittest_proto_middleman 852 853# lite_arena_unittest depends on gtest because teboring@ found that without 854# gtest when building the test internally our memory sanitizer doesn't detect 855# memory leaks (don't know why). 856protobuf_lite_arena_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \ 857 $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la \ 858 $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock.la \ 859 $(GOOGLEMOCK_BUILD_DIR)/lib/libgmock_main.la 860protobuf_lite_arena_test_CPPFLAGS = -I$(GOOGLEMOCK_SRC_DIR)/include \ 861 -I$(GOOGLETEST_SRC_DIR)/include 862protobuf_lite_arena_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) 863protobuf_lite_arena_test_SOURCES = \ 864 google/protobuf/lite_arena_unittest.cc \ 865 $(COMMON_LITE_TEST_SOURCES) 866nodist_protobuf_lite_arena_test_SOURCES = $(protoc_lite_outputs) 867$(am_protobuf_lite_arena_test_OBJECTS): unittest_proto_middleman 868 869# Test plugin binary. 870test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \ 871 $(GOOGLETEST_BUILD_DIR)/lib/libgtest.la 872test_plugin_CPPFLAGS = -I$(GOOGLETEST_SRC_DIR)/include 873test_plugin_SOURCES = \ 874 google/protobuf/compiler/mock_code_generator.cc \ 875 google/protobuf/testing/file.cc \ 876 google/protobuf/testing/file.h \ 877 google/protobuf/compiler/test_plugin.cc 878 879if HAVE_ZLIB 880zcgzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la 881zcgzip_SOURCES = google/protobuf/testing/zcgzip.cc 882 883zcgunzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la 884zcgunzip_SOURCES = google/protobuf/testing/zcgunzip.cc 885endif 886 887# This test target is to ensure all our public header files and generated 888# code is free from warnings. We have to be more pedantic about these 889# files because they are compiled by users with different compiler flags. 890no_warning_test.cc: 891 echo "// Generated from Makefile.am" > no_warning_test.cc 892 for FILE in $(nobase_include_HEADERS); do \ 893 echo "#include <$${FILE}>" >> no_warning_test.cc; \ 894 done 895 echo "int main(int, char**) { return 0; }" >> no_warning_test.cc 896 897no_warning_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la 898no_warning_test_CXXFLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_DEF) $(ZLIB_DEF) \ 899 -Wall -Wextra -Werror -Wno-unused-parameter 900nodist_no_warning_test_SOURCES = no_warning_test.cc $(protoc_outputs) 901 902TESTS = protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test \ 903 google/protobuf/compiler/zip_output_unittest.sh $(GZTESTS) \ 904 protobuf-lite-arena-test no-warning-test 905