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