blob: 462eb3e1df96ef729fadd59faa43cf3549c6af9c [file] [log] [blame]
temporal40ee5512008-07-10 02:12:20 +00001## Process this file with automake to produce Makefile.in
2
kenton@google.come59427a2009-04-16 22:30:56 +00003if HAVE_ZLIB
4GZCHECKPROGRAMS = zcgzip zcgunzip
5GZHEADERS = google/protobuf/io/gzip_stream.h
6GZTESTS = google/protobuf/io/gzip_stream_unittest.sh
Jisi Liu78d470c2015-06-12 15:49:21 -07007ZLIB_DEF = -DHAVE_ZLIB=1
kenton@google.come59427a2009-04-16 22:30:56 +00008else
9GZCHECKPROGRAMS =
10GZHEADERS =
11GZTESTS =
Jisi Liu78d470c2015-06-12 15:49:21 -070012ZLIB_DEF =
13endif
14
15if HAVE_PTHREAD
16PTHREAD_DEF = -DHAVE_PTHREAD=1
17else
18PTHREAD_DEF =
kenton@google.come59427a2009-04-16 22:30:56 +000019endif
20
temporal40ee5512008-07-10 02:12:20 +000021if GCC
22# These are good warnings to turn on by default
Jisi Liu78d470c2015-06-12 15:49:21 -070023NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_DEF) $(ZLIB_DEF) -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
temporal40ee5512008-07-10 02:12:20 +000024else
Jisi Liu78d470c2015-06-12 15:49:21 -070025NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_DEF) $(ZLIB_DEF)
temporal40ee5512008-07-10 02:12:20 +000026endif
27
kenton@google.com42c81e12009-05-06 01:15:06 +000028AM_CXXFLAGS = $(NO_OPT_CXXFLAGS) $(PROTOBUF_OPT_FLAG)
29
temporal40ee5512008-07-10 02:12:20 +000030AM_LDFLAGS = $(PTHREAD_CFLAGS)
31
32# If I say "dist_include_DATA", automake complains that $(includedir) is not
33# a "legitimate" directory for DATA. Screw you, automake.
34protodir = $(includedir)
Feng Xiao7ddbf872015-04-23 20:23:58 -070035nobase_dist_proto_DATA = google/protobuf/descriptor.proto \
36 google/protobuf/any.proto \
37 google/protobuf/api.proto \
38 google/protobuf/duration.proto \
39 google/protobuf/empty.proto \
40 google/protobuf/field_mask.proto \
41 google/protobuf/source_context.proto \
42 google/protobuf/struct.proto \
43 google/protobuf/timestamp.proto \
44 google/protobuf/type.proto \
45 google/protobuf/wrappers.proto \
kenton@google.comfccb1462009-12-18 02:11:36 +000046 google/protobuf/compiler/plugin.proto
temporal40ee5512008-07-10 02:12:20 +000047
48# Not sure why these don't get cleaned automatically.
49clean-local:
50 rm -f *.loT
51
Jisi Liuf48dca52015-06-12 15:49:21 -070052CLEANFILES = $(protoc_outputs) unittest_proto_middleman \
kenton@google.comd2fcbba2010-01-04 19:47:18 +000053 testzip.jar testzip.list testzip.proto testzip.zip
temporal40ee5512008-07-10 02:12:20 +000054
55MAINTAINERCLEANFILES = \
56 Makefile.in
57
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +000058nobase_include_HEADERS = \
Feng Xiao6ef984a2014-11-10 17:34:54 -080059 google/protobuf/stubs/atomic_sequence_num.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +000060 google/protobuf/stubs/atomicops.h \
Doug Kwan2a50e672015-11-03 14:49:42 -080061 google/protobuf/stubs/atomicops_internals_power.h \
jieluo@google.com4de8f552014-07-18 00:47:59 +000062 google/protobuf/stubs/atomicops_internals_arm64_gcc.h \
Feng Xiao53d202f2014-10-22 11:33:55 -070063 google/protobuf/stubs/atomicops_internals_arm_gcc.h \
liujisi@google.com4d8c2f92013-01-10 21:24:56 +000064 google/protobuf/stubs/atomicops_internals_arm_qnx.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +000065 google/protobuf/stubs/atomicops_internals_atomicword_compat.h \
jieluo@google.com1eba9d92014-08-25 20:17:53 +000066 google/protobuf/stubs/atomicops_internals_generic_gcc.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +000067 google/protobuf/stubs/atomicops_internals_macosx.h \
68 google/protobuf/stubs/atomicops_internals_mips_gcc.h \
liujisi@google.comf5b373d2013-01-10 21:37:04 +000069 google/protobuf/stubs/atomicops_internals_pnacl.h \
Feng Xiao53d202f2014-10-22 11:33:55 -070070 google/protobuf/stubs/atomicops_internals_solaris.h \
jieluo@google.com4de8f552014-07-18 00:47:59 +000071 google/protobuf/stubs/atomicops_internals_tsan.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +000072 google/protobuf/stubs/atomicops_internals_x86_gcc.h \
73 google/protobuf/stubs/atomicops_internals_x86_msvc.h \
Jisi Liu7b216112015-07-17 11:34:33 -070074 google/protobuf/stubs/callback.h \
Rob Earhart2f4fb642015-07-14 17:17:52 -070075 google/protobuf/stubs/bytestream.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -080076 google/protobuf/stubs/casts.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +000077 google/protobuf/stubs/common.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -080078 google/protobuf/stubs/fastmem.h \
Jisi Liudf184fb2015-02-25 15:28:44 -080079 google/protobuf/stubs/hash.h \
Jisi Liu7b216112015-07-17 11:34:33 -070080 google/protobuf/stubs/logging.h \
81 google/protobuf/stubs/macros.h \
82 google/protobuf/stubs/mutex.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +000083 google/protobuf/stubs/once.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -080084 google/protobuf/stubs/platform_macros.h \
Jisi Liu7b216112015-07-17 11:34:33 -070085 google/protobuf/stubs/port.h \
86 google/protobuf/stubs/scoped_ptr.h \
Jisi Liub6709602015-02-25 17:09:55 -080087 google/protobuf/stubs/shared_ptr.h \
Jisi Liudf184fb2015-02-25 15:28:44 -080088 google/protobuf/stubs/singleton.h \
Rob Earhart2f4fb642015-07-14 17:17:52 -070089 google/protobuf/stubs/status.h \
jieluo@google.com1eba9d92014-08-25 20:17:53 +000090 google/protobuf/stubs/stl_util.h \
Rob Earhart2f4fb642015-07-14 17:17:52 -070091 google/protobuf/stubs/stringpiece.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +000092 google/protobuf/stubs/template_util.h \
93 google/protobuf/stubs/type_traits.h \
Feng Xiao33c92802015-05-11 13:47:41 -070094 google/protobuf/any.pb.h \
95 google/protobuf/api.pb.h \
Bo Yang5db21732015-05-21 14:28:59 -070096 google/protobuf/any.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -080097 google/protobuf/arena.h \
98 google/protobuf/arenastring.h \
99 google/protobuf/descriptor_database.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000100 google/protobuf/descriptor.h \
101 google/protobuf/descriptor.pb.h \
Feng Xiao33c92802015-05-11 13:47:41 -0700102 google/protobuf/duration.pb.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000103 google/protobuf/dynamic_message.h \
Feng Xiao33c92802015-05-11 13:47:41 -0700104 google/protobuf/empty.pb.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000105 google/protobuf/extension_set.h \
Feng Xiao33c92802015-05-11 13:47:41 -0700106 google/protobuf/field_mask.pb.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000107 google/protobuf/generated_enum_reflection.h \
Jisi Liu885b6122015-02-28 14:51:22 -0800108 google/protobuf/generated_enum_util.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000109 google/protobuf/generated_message_reflection.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800110 google/protobuf/generated_message_util.h \
Feng Xiaof157a562014-11-14 11:50:31 -0800111 google/protobuf/map_entry.h \
Jisi Liu885b6122015-02-28 14:51:22 -0800112 google/protobuf/map_entry_lite.h \
Feng Xiaof157a562014-11-14 11:50:31 -0800113 google/protobuf/map_field.h \
114 google/protobuf/map_field_inl.h \
Feng Xiao33c92802015-05-11 13:47:41 -0700115 google/protobuf/map_field_lite.h \
Feng Xiaof157a562014-11-14 11:50:31 -0800116 google/protobuf/map.h \
117 google/protobuf/map_type_handler.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000118 google/protobuf/message.h \
119 google/protobuf/message_lite.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800120 google/protobuf/metadata.h \
121 google/protobuf/reflection.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000122 google/protobuf/reflection_ops.h \
123 google/protobuf/repeated_field.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800124 google/protobuf/repeated_field_reflection.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000125 google/protobuf/service.h \
Feng Xiao33c92802015-05-11 13:47:41 -0700126 google/protobuf/source_context.pb.h \
127 google/protobuf/struct.pb.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000128 google/protobuf/text_format.h \
Feng Xiao33c92802015-05-11 13:47:41 -0700129 google/protobuf/timestamp.pb.h \
130 google/protobuf/type.pb.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000131 google/protobuf/unknown_field_set.h \
132 google/protobuf/wire_format.h \
133 google/protobuf/wire_format_lite.h \
134 google/protobuf/wire_format_lite_inl.h \
Feng Xiao33c92802015-05-11 13:47:41 -0700135 google/protobuf/wrappers.pb.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000136 google/protobuf/io/coded_stream.h \
137 $(GZHEADERS) \
138 google/protobuf/io/printer.h \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000139 google/protobuf/io/strtod.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000140 google/protobuf/io/tokenizer.h \
141 google/protobuf/io/zero_copy_stream.h \
142 google/protobuf/io/zero_copy_stream_impl.h \
143 google/protobuf/io/zero_copy_stream_impl_lite.h \
144 google/protobuf/compiler/code_generator.h \
145 google/protobuf/compiler/command_line_interface.h \
146 google/protobuf/compiler/importer.h \
147 google/protobuf/compiler/parser.h \
148 google/protobuf/compiler/plugin.h \
149 google/protobuf/compiler/plugin.pb.h \
150 google/protobuf/compiler/cpp/cpp_generator.h \
Feng Xiaoe841bac2015-12-11 17:09:20 -0800151 google/protobuf/compiler/csharp/csharp_generator.h \
152 google/protobuf/compiler/csharp/csharp_names.h \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000153 google/protobuf/compiler/java/java_generator.h \
zhangkun83a6b3ab02015-01-12 15:56:07 -0800154 google/protobuf/compiler/java/java_names.h \
Feng Xiao044e0952014-12-12 17:50:43 -0800155 google/protobuf/compiler/javanano/javanano_generator.h \
Feng Xiaoe841bac2015-12-11 17:09:20 -0800156 google/protobuf/compiler/js/js_generator.h \
Thomas Van Lenten30650d82015-05-01 08:57:16 -0400157 google/protobuf/compiler/objectivec/objectivec_generator.h \
Thomas Van Lentend846b0b2015-06-08 16:24:57 -0400158 google/protobuf/compiler/objectivec/objectivec_helpers.h \
Feng Xiao044e0952014-12-12 17:50:43 -0800159 google/protobuf/compiler/python/python_generator.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700160 google/protobuf/compiler/ruby/ruby_generator.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700161 google/protobuf/util/type_resolver.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700162 google/protobuf/util/field_comparator.h \
Jisi Liub0f66112015-08-21 11:18:45 -0700163 google/protobuf/util/field_mask_util.h \
164 google/protobuf/util/json_util.h \
165 google/protobuf/util/time_util.h \
166 google/protobuf/util/type_resolver_util.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700167 google/protobuf/util/message_differencer.h
temporal40ee5512008-07-10 02:12:20 +0000168
kenton@google.com858a22b2009-07-29 02:21:47 +0000169lib_LTLIBRARIES = libprotobuf-lite.la libprotobuf.la libprotoc.la
temporal40ee5512008-07-10 02:12:20 +0000170
kenton@google.com858a22b2009-07-29 02:21:47 +0000171libprotobuf_lite_la_LIBADD = $(PTHREAD_LIBS)
Feng Xiao81a630c2014-12-03 11:52:21 -0800172libprotobuf_lite_la_LDFLAGS = -version-info 10:0:0 -export-dynamic -no-undefined
kenton@google.com858a22b2009-07-29 02:21:47 +0000173libprotobuf_lite_la_SOURCES = \
pliard@google.comf5de4862012-03-02 13:04:36 +0000174 google/protobuf/stubs/atomicops_internals_x86_gcc.cc \
xiaofeng@google.comcaa66db2012-12-04 18:44:24 +0000175 google/protobuf/stubs/atomicops_internals_x86_msvc.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700176 google/protobuf/stubs/bytestream.cc \
177 google/protobuf/stubs/bytestream.h \
temporal40ee5512008-07-10 02:12:20 +0000178 google/protobuf/stubs/common.cc \
temporal40ee5512008-07-10 02:12:20 +0000179 google/protobuf/stubs/hash.h \
Jisi Liub0f66112015-08-21 11:18:45 -0700180 google/protobuf/stubs/int128.cc \
181 google/protobuf/stubs/int128.h \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000182 google/protobuf/stubs/map_util.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700183 google/protobuf/stubs/mathutil.h \
184 google/protobuf/stubs/once.cc \
jieluo@google.combde4a322014-08-12 21:10:30 +0000185 google/protobuf/stubs/shared_ptr.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700186 google/protobuf/stubs/status.cc \
187 google/protobuf/stubs/status.h \
188 google/protobuf/stubs/status_macros.h \
189 google/protobuf/stubs/statusor.cc \
190 google/protobuf/stubs/statusor.h \
191 google/protobuf/stubs/stringpiece.cc \
192 google/protobuf/stubs/stringpiece.h \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000193 google/protobuf/stubs/stringprintf.cc \
194 google/protobuf/stubs/stringprintf.h \
Feng Xiaob17ec3c2015-08-23 17:50:38 -0700195 google/protobuf/stubs/structurally_valid.cc \
Feng Xiao818c5ee2015-06-15 21:42:57 -0700196 google/protobuf/stubs/strutil.cc \
197 google/protobuf/stubs/strutil.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700198 google/protobuf/stubs/time.cc \
199 google/protobuf/stubs/time.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800200 google/protobuf/arena.cc \
201 google/protobuf/arenastring.cc \
kenton@google.com858a22b2009-07-29 02:21:47 +0000202 google/protobuf/extension_set.cc \
203 google/protobuf/generated_message_util.cc \
204 google/protobuf/message_lite.cc \
205 google/protobuf/repeated_field.cc \
206 google/protobuf/wire_format_lite.cc \
207 google/protobuf/io/coded_stream.cc \
kenton@google.comfccb1462009-12-18 02:11:36 +0000208 google/protobuf/io/coded_stream_inl.h \
kenton@google.com858a22b2009-07-29 02:21:47 +0000209 google/protobuf/io/zero_copy_stream.cc \
Jisi Liua86baaa2015-02-25 20:39:13 -0800210 google/protobuf/io/zero_copy_stream_impl_lite.cc
kenton@google.com858a22b2009-07-29 02:21:47 +0000211
212libprotobuf_la_LIBADD = $(PTHREAD_LIBS)
Feng Xiao81a630c2014-12-03 11:52:21 -0800213libprotobuf_la_LDFLAGS = -version-info 10:0:0 -export-dynamic -no-undefined
kenton@google.com858a22b2009-07-29 02:21:47 +0000214libprotobuf_la_SOURCES = \
215 $(libprotobuf_lite_la_SOURCES) \
Feng Xiao33c92802015-05-11 13:47:41 -0700216 google/protobuf/any.pb.cc \
217 google/protobuf/api.pb.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700218 google/protobuf/stubs/mathlimits.cc \
Jisi Liub0f66112015-08-21 11:18:45 -0700219 google/protobuf/stubs/mathlimits.h \
Bo Yang5db21732015-05-21 14:28:59 -0700220 google/protobuf/any.cc \
temporal40ee5512008-07-10 02:12:20 +0000221 google/protobuf/descriptor.cc \
temporal40ee5512008-07-10 02:12:20 +0000222 google/protobuf/descriptor_database.cc \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800223 google/protobuf/descriptor.pb.cc \
Feng Xiao33c92802015-05-11 13:47:41 -0700224 google/protobuf/duration.pb.cc \
temporal40ee5512008-07-10 02:12:20 +0000225 google/protobuf/dynamic_message.cc \
Feng Xiao33c92802015-05-11 13:47:41 -0700226 google/protobuf/empty.pb.cc \
kenton@google.com80b1d622009-07-29 01:13:20 +0000227 google/protobuf/extension_set_heavy.cc \
Feng Xiao33c92802015-05-11 13:47:41 -0700228 google/protobuf/field_mask.pb.cc \
temporal40ee5512008-07-10 02:12:20 +0000229 google/protobuf/generated_message_reflection.cc \
Feng Xiao496d47c2014-12-09 15:47:25 -0800230 google/protobuf/map_field.cc \
temporal40ee5512008-07-10 02:12:20 +0000231 google/protobuf/message.cc \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800232 google/protobuf/reflection_internal.h \
temporal40ee5512008-07-10 02:12:20 +0000233 google/protobuf/reflection_ops.cc \
temporal40ee5512008-07-10 02:12:20 +0000234 google/protobuf/service.cc \
Feng Xiao33c92802015-05-11 13:47:41 -0700235 google/protobuf/source_context.pb.cc \
236 google/protobuf/struct.pb.cc \
Feng Xiao33c92802015-05-11 13:47:41 -0700237 google/protobuf/stubs/substitute.cc \
238 google/protobuf/stubs/substitute.h \
temporal40ee5512008-07-10 02:12:20 +0000239 google/protobuf/text_format.cc \
Feng Xiao33c92802015-05-11 13:47:41 -0700240 google/protobuf/timestamp.pb.cc \
241 google/protobuf/type.pb.cc \
temporal40ee5512008-07-10 02:12:20 +0000242 google/protobuf/unknown_field_set.cc \
243 google/protobuf/wire_format.cc \
Feng Xiao33c92802015-05-11 13:47:41 -0700244 google/protobuf/wrappers.pb.cc \
kenton@google.come59427a2009-04-16 22:30:56 +0000245 google/protobuf/io/gzip_stream.cc \
temporal40ee5512008-07-10 02:12:20 +0000246 google/protobuf/io/printer.cc \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000247 google/protobuf/io/strtod.cc \
temporal40ee5512008-07-10 02:12:20 +0000248 google/protobuf/io/tokenizer.cc \
temporal40ee5512008-07-10 02:12:20 +0000249 google/protobuf/io/zero_copy_stream_impl.cc \
250 google/protobuf/compiler/importer.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700251 google/protobuf/compiler/parser.cc \
252 google/protobuf/util/field_comparator.cc \
Jisi Liub0f66112015-08-21 11:18:45 -0700253 google/protobuf/util/field_mask_util.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700254 google/protobuf/util/internal/constants.h \
255 google/protobuf/util/internal/datapiece.cc \
256 google/protobuf/util/internal/datapiece.h \
257 google/protobuf/util/internal/default_value_objectwriter.cc \
258 google/protobuf/util/internal/default_value_objectwriter.h \
259 google/protobuf/util/internal/error_listener.cc \
260 google/protobuf/util/internal/error_listener.h \
Feng Xiao818c5ee2015-06-15 21:42:57 -0700261 google/protobuf/util/internal/expecting_objectwriter.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700262 google/protobuf/util/internal/field_mask_utility.cc \
263 google/protobuf/util/internal/field_mask_utility.h \
264 google/protobuf/util/internal/json_escaping.cc \
265 google/protobuf/util/internal/json_escaping.h \
266 google/protobuf/util/internal/json_objectwriter.cc \
267 google/protobuf/util/internal/json_objectwriter.h \
268 google/protobuf/util/internal/json_stream_parser.cc \
269 google/protobuf/util/internal/json_stream_parser.h \
270 google/protobuf/util/internal/location_tracker.h \
Feng Xiao818c5ee2015-06-15 21:42:57 -0700271 google/protobuf/util/internal/mock_error_listener.h \
272 google/protobuf/util/internal/object_location_tracker.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700273 google/protobuf/util/internal/object_source.h \
274 google/protobuf/util/internal/object_writer.cc \
275 google/protobuf/util/internal/object_writer.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700276 google/protobuf/util/internal/protostream_objectsource.cc \
277 google/protobuf/util/internal/protostream_objectsource.h \
278 google/protobuf/util/internal/protostream_objectwriter.cc \
279 google/protobuf/util/internal/protostream_objectwriter.h \
Feng Xiaoe841bac2015-12-11 17:09:20 -0800280 google/protobuf/util/internal/proto_writer.cc \
281 google/protobuf/util/internal/proto_writer.h \
Feng Xiao818c5ee2015-06-15 21:42:57 -0700282 google/protobuf/util/internal/structured_objectwriter.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700283 google/protobuf/util/internal/type_info.cc \
284 google/protobuf/util/internal/type_info.h \
Feng Xiao818c5ee2015-06-15 21:42:57 -0700285 google/protobuf/util/internal/type_info_test_helper.cc \
286 google/protobuf/util/internal/type_info_test_helper.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700287 google/protobuf/util/internal/utility.cc \
288 google/protobuf/util/internal/utility.h \
289 google/protobuf/util/json_util.cc \
Jisi Liub0f66112015-08-21 11:18:45 -0700290 google/protobuf/util/message_differencer.cc \
291 google/protobuf/util/time_util.cc \
292 google/protobuf/util/type_resolver_util.cc
293
Jisi Liua86baaa2015-02-25 20:39:13 -0800294nodist_libprotobuf_la_SOURCES = $(nodist_libprotobuf_lite_la_SOURCES)
temporal40ee5512008-07-10 02:12:20 +0000295
296libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la
Feng Xiao81a630c2014-12-03 11:52:21 -0800297libprotoc_la_LDFLAGS = -version-info 10:0:0 -export-dynamic -no-undefined
temporal40ee5512008-07-10 02:12:20 +0000298libprotoc_la_SOURCES = \
299 google/protobuf/compiler/code_generator.cc \
300 google/protobuf/compiler/command_line_interface.cc \
kenton@google.comfccb1462009-12-18 02:11:36 +0000301 google/protobuf/compiler/plugin.cc \
302 google/protobuf/compiler/plugin.pb.cc \
303 google/protobuf/compiler/subprocess.cc \
304 google/protobuf/compiler/subprocess.h \
kenton@google.com50663222009-12-24 02:12:15 +0000305 google/protobuf/compiler/zip_writer.cc \
306 google/protobuf/compiler/zip_writer.h \
temporal40ee5512008-07-10 02:12:20 +0000307 google/protobuf/compiler/cpp/cpp_enum.cc \
308 google/protobuf/compiler/cpp/cpp_enum.h \
309 google/protobuf/compiler/cpp/cpp_enum_field.cc \
310 google/protobuf/compiler/cpp/cpp_enum_field.h \
311 google/protobuf/compiler/cpp/cpp_extension.cc \
312 google/protobuf/compiler/cpp/cpp_extension.h \
313 google/protobuf/compiler/cpp/cpp_field.cc \
314 google/protobuf/compiler/cpp/cpp_field.h \
315 google/protobuf/compiler/cpp/cpp_file.cc \
316 google/protobuf/compiler/cpp/cpp_file.h \
317 google/protobuf/compiler/cpp/cpp_generator.cc \
318 google/protobuf/compiler/cpp/cpp_helpers.cc \
319 google/protobuf/compiler/cpp/cpp_helpers.h \
Feng Xiaof157a562014-11-14 11:50:31 -0800320 google/protobuf/compiler/cpp/cpp_map_field.cc \
321 google/protobuf/compiler/cpp/cpp_map_field.h \
temporal40ee5512008-07-10 02:12:20 +0000322 google/protobuf/compiler/cpp/cpp_message.cc \
323 google/protobuf/compiler/cpp/cpp_message.h \
324 google/protobuf/compiler/cpp/cpp_message_field.cc \
325 google/protobuf/compiler/cpp/cpp_message_field.h \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000326 google/protobuf/compiler/cpp/cpp_options.h \
temporal40ee5512008-07-10 02:12:20 +0000327 google/protobuf/compiler/cpp/cpp_primitive_field.cc \
328 google/protobuf/compiler/cpp/cpp_primitive_field.h \
329 google/protobuf/compiler/cpp/cpp_service.cc \
330 google/protobuf/compiler/cpp/cpp_service.h \
331 google/protobuf/compiler/cpp/cpp_string_field.cc \
332 google/protobuf/compiler/cpp/cpp_string_field.h \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000333 google/protobuf/compiler/java/java_context.cc \
334 google/protobuf/compiler/java/java_context.h \
temporal40ee5512008-07-10 02:12:20 +0000335 google/protobuf/compiler/java/java_enum.cc \
Jisi Liub0f66112015-08-21 11:18:45 -0700336 google/protobuf/compiler/java/java_enum_lite.cc \
temporal40ee5512008-07-10 02:12:20 +0000337 google/protobuf/compiler/java/java_enum_field.cc \
338 google/protobuf/compiler/java/java_enum_field.h \
Bo Yang5db21732015-05-21 14:28:59 -0700339 google/protobuf/compiler/java/java_enum_field_lite.cc \
340 google/protobuf/compiler/java/java_enum_field_lite.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800341 google/protobuf/compiler/java/java_enum.h \
Jisi Liub0f66112015-08-21 11:18:45 -0700342 google/protobuf/compiler/java/java_enum_lite.h \
temporal40ee5512008-07-10 02:12:20 +0000343 google/protobuf/compiler/java/java_extension.cc \
344 google/protobuf/compiler/java/java_extension.h \
345 google/protobuf/compiler/java/java_field.cc \
346 google/protobuf/compiler/java/java_field.h \
347 google/protobuf/compiler/java/java_file.cc \
348 google/protobuf/compiler/java/java_file.h \
349 google/protobuf/compiler/java/java_generator.cc \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000350 google/protobuf/compiler/java/java_generator_factory.cc \
351 google/protobuf/compiler/java/java_generator_factory.h \
temporal40ee5512008-07-10 02:12:20 +0000352 google/protobuf/compiler/java/java_helpers.cc \
353 google/protobuf/compiler/java/java_helpers.h \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000354 google/protobuf/compiler/java/java_lazy_message_field.cc \
355 google/protobuf/compiler/java/java_lazy_message_field.h \
Bo Yang5db21732015-05-21 14:28:59 -0700356 google/protobuf/compiler/java/java_lazy_message_field_lite.cc\
357 google/protobuf/compiler/java/java_lazy_message_field_lite.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800358 google/protobuf/compiler/java/java_map_field.cc \
359 google/protobuf/compiler/java/java_map_field.h \
Bo Yang5db21732015-05-21 14:28:59 -0700360 google/protobuf/compiler/java/java_map_field_lite.cc \
361 google/protobuf/compiler/java/java_map_field_lite.h \
temporal40ee5512008-07-10 02:12:20 +0000362 google/protobuf/compiler/java/java_message.cc \
Bo Yang5db21732015-05-21 14:28:59 -0700363 google/protobuf/compiler/java/java_message_lite.cc \
364 google/protobuf/compiler/java/java_message_builder.cc \
365 google/protobuf/compiler/java/java_message_builder_lite.cc \
temporal40ee5512008-07-10 02:12:20 +0000366 google/protobuf/compiler/java/java_message_field.cc \
367 google/protobuf/compiler/java/java_message_field.h \
Bo Yang5db21732015-05-21 14:28:59 -0700368 google/protobuf/compiler/java/java_message_field_lite.cc \
369 google/protobuf/compiler/java/java_message_field_lite.h \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800370 google/protobuf/compiler/java/java_message.h \
Bo Yang5db21732015-05-21 14:28:59 -0700371 google/protobuf/compiler/java/java_message_lite.h \
372 google/protobuf/compiler/java/java_message_builder.h \
373 google/protobuf/compiler/java/java_message_builder_lite.h \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000374 google/protobuf/compiler/java/java_name_resolver.cc \
375 google/protobuf/compiler/java/java_name_resolver.h \
temporal40ee5512008-07-10 02:12:20 +0000376 google/protobuf/compiler/java/java_primitive_field.cc \
377 google/protobuf/compiler/java/java_primitive_field.h \
Bo Yang5db21732015-05-21 14:28:59 -0700378 google/protobuf/compiler/java/java_primitive_field_lite.cc \
379 google/protobuf/compiler/java/java_primitive_field_lite.h \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000380 google/protobuf/compiler/java/java_shared_code_generator.cc \
381 google/protobuf/compiler/java/java_shared_code_generator.h \
temporal40ee5512008-07-10 02:12:20 +0000382 google/protobuf/compiler/java/java_service.cc \
383 google/protobuf/compiler/java/java_service.h \
liujisi@google.com33165fe2010-11-02 13:14:58 +0000384 google/protobuf/compiler/java/java_string_field.cc \
385 google/protobuf/compiler/java/java_string_field.h \
Bo Yang5db21732015-05-21 14:28:59 -0700386 google/protobuf/compiler/java/java_string_field_lite.cc \
387 google/protobuf/compiler/java/java_string_field_lite.h \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000388 google/protobuf/compiler/java/java_doc_comment.cc \
389 google/protobuf/compiler/java/java_doc_comment.h \
Feng Xiaoe841bac2015-12-11 17:09:20 -0800390 google/protobuf/compiler/js/js_generator.cc \
Jisi Liue9bbfbc2014-11-25 14:47:04 -0800391 google/protobuf/compiler/javanano/javanano_enum.cc \
Jisi Liudce81652015-01-30 16:14:15 -0800392 google/protobuf/compiler/javanano/javanano_enum.h \
393 google/protobuf/compiler/javanano/javanano_enum_field.cc \
Jisi Liue9bbfbc2014-11-25 14:47:04 -0800394 google/protobuf/compiler/javanano/javanano_enum_field.h \
395 google/protobuf/compiler/javanano/javanano_extension.cc \
Jisi Liudce81652015-01-30 16:14:15 -0800396 google/protobuf/compiler/javanano/javanano_extension.h \
Jisi Liue9bbfbc2014-11-25 14:47:04 -0800397 google/protobuf/compiler/javanano/javanano_field.cc \
Jisi Liudce81652015-01-30 16:14:15 -0800398 google/protobuf/compiler/javanano/javanano_field.h \
Jisi Liue9bbfbc2014-11-25 14:47:04 -0800399 google/protobuf/compiler/javanano/javanano_file.cc \
Jisi Liudce81652015-01-30 16:14:15 -0800400 google/protobuf/compiler/javanano/javanano_file.h \
Jisi Liue9bbfbc2014-11-25 14:47:04 -0800401 google/protobuf/compiler/javanano/javanano_generator.cc \
Jisi Liudce81652015-01-30 16:14:15 -0800402 google/protobuf/compiler/javanano/javanano_generator.h \
Jisi Liue9bbfbc2014-11-25 14:47:04 -0800403 google/protobuf/compiler/javanano/javanano_helpers.cc \
Jisi Liudce81652015-01-30 16:14:15 -0800404 google/protobuf/compiler/javanano/javanano_helpers.h \
405 google/protobuf/compiler/javanano/javanano_map_field.cc \
406 google/protobuf/compiler/javanano/javanano_map_field.h \
Jisi Liue9bbfbc2014-11-25 14:47:04 -0800407 google/protobuf/compiler/javanano/javanano_message.cc \
Jisi Liudce81652015-01-30 16:14:15 -0800408 google/protobuf/compiler/javanano/javanano_message.h \
409 google/protobuf/compiler/javanano/javanano_message_field.cc \
Jisi Liue9bbfbc2014-11-25 14:47:04 -0800410 google/protobuf/compiler/javanano/javanano_message_field.h \
411 google/protobuf/compiler/javanano/javanano_params.h \
Jisi Liue9bbfbc2014-11-25 14:47:04 -0800412 google/protobuf/compiler/javanano/javanano_primitive_field.cc \
Jisi Liudce81652015-01-30 16:14:15 -0800413 google/protobuf/compiler/javanano/javanano_primitive_field.h \
Thomas Van Lenten30650d82015-05-01 08:57:16 -0400414 google/protobuf/compiler/objectivec/objectivec_enum.cc \
415 google/protobuf/compiler/objectivec/objectivec_enum.h \
416 google/protobuf/compiler/objectivec/objectivec_enum_field.cc \
417 google/protobuf/compiler/objectivec/objectivec_enum_field.h \
418 google/protobuf/compiler/objectivec/objectivec_extension.cc \
419 google/protobuf/compiler/objectivec/objectivec_extension.h \
420 google/protobuf/compiler/objectivec/objectivec_field.cc \
421 google/protobuf/compiler/objectivec/objectivec_field.h \
422 google/protobuf/compiler/objectivec/objectivec_file.cc \
423 google/protobuf/compiler/objectivec/objectivec_file.h \
424 google/protobuf/compiler/objectivec/objectivec_generator.cc \
425 google/protobuf/compiler/objectivec/objectivec_helpers.cc \
426 google/protobuf/compiler/objectivec/objectivec_helpers.h \
427 google/protobuf/compiler/objectivec/objectivec_map_field.cc \
428 google/protobuf/compiler/objectivec/objectivec_map_field.h \
429 google/protobuf/compiler/objectivec/objectivec_message.cc \
430 google/protobuf/compiler/objectivec/objectivec_message.h \
431 google/protobuf/compiler/objectivec/objectivec_message_field.cc \
432 google/protobuf/compiler/objectivec/objectivec_message_field.h \
433 google/protobuf/compiler/objectivec/objectivec_oneof.cc \
434 google/protobuf/compiler/objectivec/objectivec_oneof.h \
435 google/protobuf/compiler/objectivec/objectivec_primitive_field.cc \
436 google/protobuf/compiler/objectivec/objectivec_primitive_field.h \
Chris Fallin973f4252014-11-18 14:19:58 -0800437 google/protobuf/compiler/python/python_generator.cc \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700438 google/protobuf/compiler/ruby/ruby_generator.cc \
Jon Skeet67dd42c2015-10-01 10:36:58 +0100439 google/protobuf/compiler/csharp/csharp_doc_comment.cc \
440 google/protobuf/compiler/csharp/csharp_doc_comment.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700441 google/protobuf/compiler/csharp/csharp_enum.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700442 google/protobuf/compiler/csharp/csharp_enum.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700443 google/protobuf/compiler/csharp/csharp_enum_field.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700444 google/protobuf/compiler/csharp/csharp_enum_field.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700445 google/protobuf/compiler/csharp/csharp_field_base.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700446 google/protobuf/compiler/csharp/csharp_field_base.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700447 google/protobuf/compiler/csharp/csharp_generator.cc \
448 google/protobuf/compiler/csharp/csharp_helpers.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700449 google/protobuf/compiler/csharp/csharp_helpers.h \
Jon Skeet0d684d32015-06-24 17:21:55 +0100450 google/protobuf/compiler/csharp/csharp_map_field.cc \
451 google/protobuf/compiler/csharp/csharp_map_field.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700452 google/protobuf/compiler/csharp/csharp_message.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700453 google/protobuf/compiler/csharp/csharp_message.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700454 google/protobuf/compiler/csharp/csharp_message_field.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700455 google/protobuf/compiler/csharp/csharp_message_field.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700456 google/protobuf/compiler/csharp/csharp_primitive_field.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700457 google/protobuf/compiler/csharp/csharp_primitive_field.h \
Jon Skeeta6361a12015-11-19 13:05:17 +0000458 google/protobuf/compiler/csharp/csharp_reflection_class.cc \
459 google/protobuf/compiler/csharp/csharp_reflection_class.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700460 google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700461 google/protobuf/compiler/csharp/csharp_repeated_enum_field.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700462 google/protobuf/compiler/csharp/csharp_repeated_message_field.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700463 google/protobuf/compiler/csharp/csharp_repeated_message_field.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700464 google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700465 google/protobuf/compiler/csharp/csharp_repeated_primitive_field.h \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700466 google/protobuf/compiler/csharp/csharp_source_generator_base.cc \
Jan Tattermusch7eaf4382015-04-17 16:51:43 -0700467 google/protobuf/compiler/csharp/csharp_source_generator_base.h \
Jon Skeetb2ac8682015-07-15 13:17:42 +0100468 google/protobuf/compiler/csharp/csharp_wrapper_field.cc \
469 google/protobuf/compiler/csharp/csharp_wrapper_field.h
temporal40ee5512008-07-10 02:12:20 +0000470
471bin_PROGRAMS = protoc
472protoc_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la
473protoc_SOURCES = google/protobuf/compiler/main.cc
474
475# Tests ==============================================================
476
Feng Xiaoe96ff302015-06-15 18:21:48 -0700477protoc_inputs = \
478 google/protobuf/any_test.proto \
479 google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto \
480 google/protobuf/map_lite_unittest.proto \
481 google/protobuf/map_proto2_unittest.proto \
482 google/protobuf/map_unittest.proto \
483 google/protobuf/unittest_arena.proto \
484 google/protobuf/unittest_custom_options.proto \
485 google/protobuf/unittest_drop_unknown_fields.proto \
486 google/protobuf/unittest_embed_optimize_for.proto \
487 google/protobuf/unittest_empty.proto \
488 google/protobuf/unittest_enormous_descriptor.proto \
489 google/protobuf/unittest_import_lite.proto \
490 google/protobuf/unittest_import.proto \
491 google/protobuf/unittest_import_public_lite.proto \
492 google/protobuf/unittest_import_public.proto \
493 google/protobuf/unittest_lite_imports_nonlite.proto \
494 google/protobuf/unittest_lite.proto \
495 google/protobuf/unittest_mset.proto \
Jisi Liub0f66112015-08-21 11:18:45 -0700496 google/protobuf/unittest_mset_wire_format.proto \
497 google/protobuf/unittest_no_arena_lite.proto \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700498 google/protobuf/unittest_no_arena_import.proto \
499 google/protobuf/unittest_no_arena.proto \
500 google/protobuf/unittest_no_field_presence.proto \
501 google/protobuf/unittest_no_generic_services.proto \
502 google/protobuf/unittest_optimize_for.proto \
503 google/protobuf/unittest_preserve_unknown_enum2.proto \
504 google/protobuf/unittest_preserve_unknown_enum.proto \
505 google/protobuf/unittest.proto \
506 google/protobuf/unittest_proto3_arena.proto \
507 google/protobuf/unittest_well_known_types.proto \
508 google/protobuf/util/internal/testdata/anys.proto \
509 google/protobuf/util/internal/testdata/books.proto \
510 google/protobuf/util/internal/testdata/default_value.proto \
511 google/protobuf/util/internal/testdata/default_value_test.proto \
512 google/protobuf/util/internal/testdata/field_mask.proto \
513 google/protobuf/util/internal/testdata/maps.proto \
Jisi Liub0f66112015-08-21 11:18:45 -0700514 google/protobuf/util/internal/testdata/oneofs.proto \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700515 google/protobuf/util/internal/testdata/struct.proto \
516 google/protobuf/util/internal/testdata/timestamp_duration.proto \
517 google/protobuf/util/json_format_proto3.proto \
Feng Xiaob7610f12015-12-22 14:36:04 -0800518 google/protobuf/util/message_differencer_unittest.proto \
Tamir Duberstein53bee662015-03-31 10:19:05 -0700519 google/protobuf/compiler/cpp/cpp_test_large_enum_value.proto
temporal40ee5512008-07-10 02:12:20 +0000520
521EXTRA_DIST = \
522 $(protoc_inputs) \
523 solaris/libstdc++.la \
kenton@google.come59427a2009-04-16 22:30:56 +0000524 google/protobuf/io/gzip_stream.h \
525 google/protobuf/io/gzip_stream_unittest.sh \
temporal40ee5512008-07-10 02:12:20 +0000526 google/protobuf/testdata/golden_message \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000527 google/protobuf/testdata/golden_message_oneof_implemented \
Josh Haberman0b70a432015-02-25 20:17:32 -0800528 google/protobuf/testdata/golden_message_proto3 \
kenton@google.com2d6daa72009-01-22 01:27:00 +0000529 google/protobuf/testdata/golden_packed_fields_message \
jieluo@google.come61b5132014-08-14 21:51:48 +0000530 google/protobuf/testdata/bad_utf8_string \
Bo Yang5db21732015-05-21 14:28:59 -0700531 google/protobuf/testdata/map_test_data.txt \
jieluo@google.come61b5132014-08-14 21:51:48 +0000532 google/protobuf/testdata/text_format_unittest_data.txt \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000533 google/protobuf/testdata/text_format_unittest_data_oneof_implemented.txt \
jieluo@google.combde4a322014-08-12 21:10:30 +0000534 google/protobuf/testdata/text_format_unittest_data_pointy.txt \
jieluo@google.come61b5132014-08-14 21:51:48 +0000535 google/protobuf/testdata/text_format_unittest_data_pointy_oneof.txt \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000536 google/protobuf/testdata/text_format_unittest_extensions_data.txt \
jieluo@google.combde4a322014-08-12 21:10:30 +0000537 google/protobuf/testdata/text_format_unittest_extensions_data_pointy.txt \
temporal40ee5512008-07-10 02:12:20 +0000538 google/protobuf/package_info.h \
539 google/protobuf/io/package_info.h \
Bo Yanga9332e22015-05-25 16:04:36 -0700540 google/protobuf/compiler/ruby/ruby_generated_code.proto \
541 google/protobuf/compiler/ruby/ruby_generated_code.rb \
kenton@google.com8aae2a22009-08-11 00:23:25 +0000542 google/protobuf/compiler/package_info.h \
Qartar2fe6d7b2015-06-07 14:22:51 -0700543 google/protobuf/compiler/zip_output_unittest.sh
temporal40ee5512008-07-10 02:12:20 +0000544
kenton@google.com80b1d622009-07-29 01:13:20 +0000545protoc_lite_outputs = \
Jisi Liu885b6122015-02-28 14:51:22 -0800546 google/protobuf/map_lite_unittest.pb.cc \
547 google/protobuf/map_lite_unittest.pb.h \
kenton@google.com80b1d622009-07-29 01:13:20 +0000548 google/protobuf/unittest_lite.pb.cc \
549 google/protobuf/unittest_lite.pb.h \
Jisi Liub0f66112015-08-21 11:18:45 -0700550 google/protobuf/unittest_no_arena_lite.pb.cc \
551 google/protobuf/unittest_no_arena_lite.pb.h \
kenton@google.com80b1d622009-07-29 01:13:20 +0000552 google/protobuf/unittest_import_lite.pb.cc \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000553 google/protobuf/unittest_import_lite.pb.h \
554 google/protobuf/unittest_import_public_lite.pb.cc \
555 google/protobuf/unittest_import_public_lite.pb.h
kenton@google.com80b1d622009-07-29 01:13:20 +0000556
Feng Xiaoe96ff302015-06-15 18:21:48 -0700557protoc_outputs = \
558 $(protoc_lite_outputs) \
559 google/protobuf/any_test.pb.cc \
560 google/protobuf/any_test.pb.h \
561 google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.cc \
562 google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h \
563 google/protobuf/compiler/cpp/cpp_test_large_enum_value.pb.cc \
564 google/protobuf/compiler/cpp/cpp_test_large_enum_value.pb.h \
565 google/protobuf/map_proto2_unittest.pb.cc \
566 google/protobuf/map_proto2_unittest.pb.h \
567 google/protobuf/map_unittest.pb.cc \
568 google/protobuf/map_unittest.pb.h \
569 google/protobuf/unittest_arena.pb.cc \
570 google/protobuf/unittest_arena.pb.h \
571 google/protobuf/unittest_custom_options.pb.cc \
572 google/protobuf/unittest_custom_options.pb.h \
573 google/protobuf/unittest_drop_unknown_fields.pb.cc \
574 google/protobuf/unittest_drop_unknown_fields.pb.h \
575 google/protobuf/unittest_embed_optimize_for.pb.cc \
576 google/protobuf/unittest_embed_optimize_for.pb.h \
577 google/protobuf/unittest_empty.pb.cc \
578 google/protobuf/unittest_empty.pb.h \
579 google/protobuf/unittest_enormous_descriptor.pb.cc \
580 google/protobuf/unittest_enormous_descriptor.pb.h \
581 google/protobuf/unittest_import.pb.cc \
582 google/protobuf/unittest_import.pb.h \
583 google/protobuf/unittest_import_public.pb.cc \
584 google/protobuf/unittest_import_public.pb.h \
585 google/protobuf/unittest_lite_imports_nonlite.pb.cc \
586 google/protobuf/unittest_lite_imports_nonlite.pb.h \
587 google/protobuf/unittest_mset.pb.cc \
588 google/protobuf/unittest_mset.pb.h \
Jisi Liub0f66112015-08-21 11:18:45 -0700589 google/protobuf/unittest_mset_wire_format.pb.cc \
590 google/protobuf/unittest_mset_wire_format.pb.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700591 google/protobuf/unittest_no_arena_import.pb.cc \
592 google/protobuf/unittest_no_arena_import.pb.h \
593 google/protobuf/unittest_no_arena.pb.cc \
594 google/protobuf/unittest_no_arena.pb.h \
595 google/protobuf/unittest_no_field_presence.pb.cc \
596 google/protobuf/unittest_no_field_presence.pb.h \
597 google/protobuf/unittest_no_generic_services.pb.cc \
598 google/protobuf/unittest_no_generic_services.pb.h \
599 google/protobuf/unittest_optimize_for.pb.cc \
600 google/protobuf/unittest_optimize_for.pb.h \
601 google/protobuf/unittest.pb.cc \
602 google/protobuf/unittest.pb.h \
603 google/protobuf/unittest_preserve_unknown_enum2.pb.cc \
604 google/protobuf/unittest_preserve_unknown_enum2.pb.h \
605 google/protobuf/unittest_preserve_unknown_enum.pb.cc \
606 google/protobuf/unittest_preserve_unknown_enum.pb.h \
607 google/protobuf/unittest_proto3_arena.pb.cc \
608 google/protobuf/unittest_proto3_arena.pb.h \
609 google/protobuf/unittest_well_known_types.pb.cc \
610 google/protobuf/unittest_well_known_types.pb.h \
611 google/protobuf/util/internal/testdata/anys.pb.cc \
612 google/protobuf/util/internal/testdata/anys.pb.h \
613 google/protobuf/util/internal/testdata/books.pb.cc \
614 google/protobuf/util/internal/testdata/books.pb.h \
615 google/protobuf/util/internal/testdata/default_value.pb.cc \
616 google/protobuf/util/internal/testdata/default_value.pb.h \
617 google/protobuf/util/internal/testdata/default_value_test.pb.cc \
618 google/protobuf/util/internal/testdata/default_value_test.pb.h \
619 google/protobuf/util/internal/testdata/field_mask.pb.cc \
620 google/protobuf/util/internal/testdata/field_mask.pb.h \
621 google/protobuf/util/internal/testdata/maps.pb.cc \
622 google/protobuf/util/internal/testdata/maps.pb.h \
Jisi Liub0f66112015-08-21 11:18:45 -0700623 google/protobuf/util/internal/testdata/oneofs.pb.cc \
624 google/protobuf/util/internal/testdata/oneofs.pb.h \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700625 google/protobuf/util/internal/testdata/struct.pb.cc \
626 google/protobuf/util/internal/testdata/struct.pb.h \
627 google/protobuf/util/internal/testdata/timestamp_duration.pb.cc \
628 google/protobuf/util/internal/testdata/timestamp_duration.pb.h \
629 google/protobuf/util/json_format_proto3.pb.cc \
Feng Xiaob7610f12015-12-22 14:36:04 -0800630 google/protobuf/util/json_format_proto3.pb.h \
631 google/protobuf/util/message_differencer_unittest.pb.cc \
632 google/protobuf/util/message_differencer_unittest.pb.h
temporal40ee5512008-07-10 02:12:20 +0000633
Jisi Liuf48dca52015-06-12 15:49:21 -0700634BUILT_SOURCES = $(protoc_outputs)
temporal40ee5512008-07-10 02:12:20 +0000635
kenton@google.com9824eda2009-05-06 17:49:37 +0000636if USE_EXTERNAL_PROTOC
637
638unittest_proto_middleman: $(protoc_inputs)
kenton@google.com721995d2009-09-11 22:08:40 +0000639 $(PROTOC) -I$(srcdir) --cpp_out=. $^
kenton@google.com9824eda2009-05-06 17:49:37 +0000640 touch unittest_proto_middleman
641
642else
643
kenton@google.com38fcd392010-01-08 04:48:19 +0000644# We have to cd to $(srcdir) before executing protoc because $(protoc_inputs) is
645# relative to srcdir, which may not be the same as the current directory when
646# building out-of-tree.
temporal40ee5512008-07-10 02:12:20 +0000647unittest_proto_middleman: protoc$(EXEEXT) $(protoc_inputs)
kenton@google.com38fcd392010-01-08 04:48:19 +0000648 oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/protoc$(EXEEXT) -I. --cpp_out=$$oldpwd $(protoc_inputs) )
temporal40ee5512008-07-10 02:12:20 +0000649 touch unittest_proto_middleman
650
kenton@google.com9824eda2009-05-06 17:49:37 +0000651endif
652
temporal40ee5512008-07-10 02:12:20 +0000653$(protoc_outputs): unittest_proto_middleman
654
kenton@google.comc5ff06c2009-04-28 03:06:41 +0000655COMMON_TEST_SOURCES = \
Jisi Liu885b6122015-02-28 14:51:22 -0800656 google/protobuf/arena_test_util.cc \
657 google/protobuf/arena_test_util.h \
Feng Xiaof157a562014-11-14 11:50:31 -0800658 google/protobuf/map_test_util.cc \
659 google/protobuf/map_test_util.h \
Jisi Liu885b6122015-02-28 14:51:22 -0800660 google/protobuf/map_test_util_impl.h \
kenton@google.comc5ff06c2009-04-28 03:06:41 +0000661 google/protobuf/test_util.cc \
662 google/protobuf/test_util.h \
663 google/protobuf/testing/googletest.cc \
664 google/protobuf/testing/googletest.h \
665 google/protobuf/testing/file.cc \
666 google/protobuf/testing/file.h
667
kenton@google.comd2fcbba2010-01-04 19:47:18 +0000668check_PROGRAMS = protoc protobuf-test protobuf-lazy-descriptor-test \
Feng Xiaob17ec3c2015-08-23 17:50:38 -0700669 protobuf-lite-test test_plugin protobuf-lite-arena-test \
670 $(GZCHECKPROGRAMS)
kenton@google.com37ad00d2009-04-21 21:00:39 +0000671protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
Feng Xiao818c5ee2015-06-15 21:42:57 -0700672 ../gmock/gtest/lib/libgtest.la \
673 ../gmock/lib/libgmock.la \
674 ../gmock/lib/libgmock_main.la
675protobuf_test_CPPFLAGS = -I$(srcdir)/../gmock/gtest/include \
676 -I$(srcdir)/../gmock/include
kenton@google.com42c81e12009-05-06 01:15:06 +0000677# Disable optimization for tests unless the user explicitly asked for it,
678# since test_util.cc takes forever to compile with optimization (with GCC).
679# See configure.ac for more info.
680protobuf_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
temporal40ee5512008-07-10 02:12:20 +0000681protobuf_test_SOURCES = \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700682 google/protobuf/stubs/bytestream_unittest.cc \
temporal40ee5512008-07-10 02:12:20 +0000683 google/protobuf/stubs/common_unittest.cc \
Jisi Liub0f66112015-08-21 11:18:45 -0700684 google/protobuf/stubs/int128_unittest.cc \
kenton@google.comd37d46d2009-04-25 02:53:47 +0000685 google/protobuf/stubs/once_unittest.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700686 google/protobuf/stubs/statusor_test.cc \
687 google/protobuf/stubs/status_test.cc \
688 google/protobuf/stubs/stringpiece_unittest.cc \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000689 google/protobuf/stubs/stringprintf_unittest.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700690 google/protobuf/stubs/structurally_valid_unittest.cc \
691 google/protobuf/stubs/strutil_unittest.cc \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000692 google/protobuf/stubs/template_util_unittest.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700693 google/protobuf/stubs/time_test.cc \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000694 google/protobuf/stubs/type_traits_unittest.cc \
Bo Yang5db21732015-05-21 14:28:59 -0700695 google/protobuf/any_test.cc \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800696 google/protobuf/arenastring_unittest.cc \
697 google/protobuf/arena_unittest.cc \
temporal40ee5512008-07-10 02:12:20 +0000698 google/protobuf/descriptor_database_unittest.cc \
699 google/protobuf/descriptor_unittest.cc \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800700 google/protobuf/drop_unknown_fields_test.cc \
temporal40ee5512008-07-10 02:12:20 +0000701 google/protobuf/dynamic_message_unittest.cc \
702 google/protobuf/extension_set_unittest.cc \
703 google/protobuf/generated_message_reflection_unittest.cc \
Feng Xiaof157a562014-11-14 11:50:31 -0800704 google/protobuf/map_field_test.cc \
705 google/protobuf/map_test.cc \
temporal40ee5512008-07-10 02:12:20 +0000706 google/protobuf/message_unittest.cc \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800707 google/protobuf/no_field_presence_test.cc \
708 google/protobuf/preserve_unknown_enum_test.cc \
709 google/protobuf/proto3_arena_unittest.cc \
temporal40ee5512008-07-10 02:12:20 +0000710 google/protobuf/reflection_ops_unittest.cc \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000711 google/protobuf/repeated_field_reflection_unittest.cc \
Feng Xiao6ef984a2014-11-10 17:34:54 -0800712 google/protobuf/repeated_field_unittest.cc \
temporal40ee5512008-07-10 02:12:20 +0000713 google/protobuf/text_format_unittest.cc \
714 google/protobuf/unknown_field_set_unittest.cc \
Feng Xiao33c92802015-05-11 13:47:41 -0700715 google/protobuf/well_known_types_unittest.cc \
temporal40ee5512008-07-10 02:12:20 +0000716 google/protobuf/wire_format_unittest.cc \
717 google/protobuf/io/coded_stream_unittest.cc \
718 google/protobuf/io/printer_unittest.cc \
719 google/protobuf/io/tokenizer_unittest.cc \
720 google/protobuf/io/zero_copy_stream_unittest.cc \
721 google/protobuf/compiler/command_line_interface_unittest.cc \
722 google/protobuf/compiler/importer_unittest.cc \
kenton@google.comfccb1462009-12-18 02:11:36 +0000723 google/protobuf/compiler/mock_code_generator.cc \
724 google/protobuf/compiler/mock_code_generator.h \
temporal40ee5512008-07-10 02:12:20 +0000725 google/protobuf/compiler/parser_unittest.cc \
726 google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000727 google/protobuf/compiler/cpp/cpp_unittest.h \
temporal40ee5512008-07-10 02:12:20 +0000728 google/protobuf/compiler/cpp/cpp_unittest.cc \
kenton@google.comfccb1462009-12-18 02:11:36 +0000729 google/protobuf/compiler/cpp/cpp_plugin_unittest.cc \
730 google/protobuf/compiler/java/java_plugin_unittest.cc \
xiaofeng@google.comb55a20f2012-09-22 02:40:50 +0000731 google/protobuf/compiler/java/java_doc_comment_unittest.cc \
Thomas Van Lenten30650d82015-05-01 08:57:16 -0400732 google/protobuf/compiler/objectivec/objectivec_helpers_unittest.cc \
kenton@google.comfccb1462009-12-18 02:11:36 +0000733 google/protobuf/compiler/python/python_plugin_unittest.cc \
Chris Fallin3f3820d2015-01-14 15:44:46 -0800734 google/protobuf/compiler/ruby/ruby_generator_unittest.cc \
Jan Tattermusch685ae362015-03-16 19:07:16 -0700735 google/protobuf/compiler/csharp/csharp_generator_unittest.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700736 google/protobuf/util/field_comparator_test.cc \
Jisi Liub0f66112015-08-21 11:18:45 -0700737 google/protobuf/util/field_mask_util_test.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700738 google/protobuf/util/internal/default_value_objectwriter_test.cc \
739 google/protobuf/util/internal/json_objectwriter_test.cc \
740 google/protobuf/util/internal/json_stream_parser_test.cc \
741 google/protobuf/util/internal/protostream_objectsource_test.cc \
742 google/protobuf/util/internal/protostream_objectwriter_test.cc \
743 google/protobuf/util/internal/type_info_test_helper.cc \
744 google/protobuf/util/json_util_test.cc \
Feng Xiaob7610f12015-12-22 14:36:04 -0800745 google/protobuf/util/message_differencer_unittest.cc \
Jisi Liub0f66112015-08-21 11:18:45 -0700746 google/protobuf/util/time_util_test.cc \
Feng Xiaoe96ff302015-06-15 18:21:48 -0700747 google/protobuf/util/type_resolver_util_test.cc \
kenton@google.comc5ff06c2009-04-28 03:06:41 +0000748 $(COMMON_TEST_SOURCES)
Feng Xiaoe96ff302015-06-15 18:21:48 -0700749
750
kenton@google.comc5ff06c2009-04-28 03:06:41 +0000751nodist_protobuf_test_SOURCES = $(protoc_outputs)
752
753# Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined.
754protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \
jieluo@google.com4de8f552014-07-18 00:47:59 +0000755 libprotoc.la \
Feng Xiao818c5ee2015-06-15 21:42:57 -0700756 ../gmock/gtest/lib/libgtest.la \
757 ../gmock/lib/libgmock.la \
758 ../gmock/lib/libgmock_main.la
759protobuf_lazy_descriptor_test_CPPFLAGS = -I$(srcdir)/../gmock/include \
760 -I$(srcdir)/../gmock/gtest/include \
kenton@google.comc5ff06c2009-04-28 03:06:41 +0000761 -DPROTOBUF_TEST_NO_DESCRIPTORS
kenton@google.com4f3491e2009-07-29 21:33:08 +0000762protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
kenton@google.comc5ff06c2009-04-28 03:06:41 +0000763protobuf_lazy_descriptor_test_SOURCES = \
764 google/protobuf/compiler/cpp/cpp_unittest.cc \
765 $(COMMON_TEST_SOURCES)
766nodist_protobuf_lazy_descriptor_test_SOURCES = $(protoc_outputs)
temporal40ee5512008-07-10 02:12:20 +0000767
Feng Xiaob17ec3c2015-08-23 17:50:38 -0700768COMMON_LITE_TEST_SOURCES = \
Bo Yang5db21732015-05-21 14:28:59 -0700769 google/protobuf/arena_test_util.cc \
770 google/protobuf/arena_test_util.h \
Jisi Liu885b6122015-02-28 14:51:22 -0800771 google/protobuf/map_lite_test_util.cc \
772 google/protobuf/map_lite_test_util.h \
kenton@google.com80b1d622009-07-29 01:13:20 +0000773 google/protobuf/test_util_lite.cc \
774 google/protobuf/test_util_lite.h
Feng Xiaob17ec3c2015-08-23 17:50:38 -0700775
776# Build lite_unittest separately, since it doesn't use gtest. It can't
777# depend on gtest because our internal version of gtest depend on proto
778# full runtime and we want to make sure this test builds without full
779# runtime.
780protobuf_lite_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la
781protobuf_lite_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
782protobuf_lite_test_SOURCES = \
783 google/protobuf/lite_unittest.cc \
784 $(COMMON_LITE_TEST_SOURCES)
kenton@google.com80b1d622009-07-29 01:13:20 +0000785nodist_protobuf_lite_test_SOURCES = $(protoc_lite_outputs)
786
Feng Xiaob17ec3c2015-08-23 17:50:38 -0700787# lite_arena_unittest depends on gtest because teboring@ found that without
788# gtest when building the test internally our memory sanitizer doesn't detect
789# memory leaks (don't know why).
790protobuf_lite_arena_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \
791 ../gmock/gtest/lib/libgtest.la \
792 ../gmock/lib/libgmock.la \
793 ../gmock/lib/libgmock_main.la
794protobuf_lite_arena_test_CPPFLAGS = -I$(srcdir)/../gmock/include \
795 -I$(srcdir)/../gmock/gtest/include
796protobuf_lite_arena_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
797protobuf_lite_arena_test_SOURCES = \
798 google/protobuf/lite_arena_unittest.cc \
799 $(COMMON_LITE_TEST_SOURCES)
800nodist_protobuf_lite_arena_test_SOURCES = $(protoc_lite_outputs)
801
kenton@google.comfccb1462009-12-18 02:11:36 +0000802# Test plugin binary.
803test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
Feng Xiao818c5ee2015-06-15 21:42:57 -0700804 ../gmock/gtest/lib/libgtest.la
805test_plugin_CPPFLAGS = -I$(srcdir)/../gmock/gtest/include
kenton@google.comfccb1462009-12-18 02:11:36 +0000806test_plugin_SOURCES = \
807 google/protobuf/compiler/mock_code_generator.cc \
808 google/protobuf/testing/file.cc \
809 google/protobuf/testing/file.h \
810 google/protobuf/compiler/test_plugin.cc
811
kenton@google.come59427a2009-04-16 22:30:56 +0000812if HAVE_ZLIB
813zcgzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la
814zcgzip_SOURCES = google/protobuf/testing/zcgzip.cc
815
816zcgunzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la
817zcgunzip_SOURCES = google/protobuf/testing/zcgunzip.cc
818endif
819
kenton@google.comd2fcbba2010-01-04 19:47:18 +0000820TESTS = protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test \
Feng Xiaob17ec3c2015-08-23 17:50:38 -0700821 google/protobuf/compiler/zip_output_unittest.sh $(GZTESTS) \
822 protobuf-lite-arena-test