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