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