blob: 92bbe8cc433339a0b20d9f0c66d44725432b3d9a [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
7else
8GZCHECKPROGRAMS =
9GZHEADERS =
10GZTESTS =
11endif
12
temporal40ee5512008-07-10 02:12:20 +000013if GCC
14# These are good warnings to turn on by default
kenton@google.com42c81e12009-05-06 01:15:06 +000015NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS) -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
temporal40ee5512008-07-10 02:12:20 +000016else
kenton@google.com42c81e12009-05-06 01:15:06 +000017NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS)
temporal40ee5512008-07-10 02:12:20 +000018endif
19
kenton@google.com42c81e12009-05-06 01:15:06 +000020AM_CXXFLAGS = $(NO_OPT_CXXFLAGS) $(PROTOBUF_OPT_FLAG)
21
temporal40ee5512008-07-10 02:12:20 +000022AM_LDFLAGS = $(PTHREAD_CFLAGS)
23
24# If I say "dist_include_DATA", automake complains that $(includedir) is not
25# a "legitimate" directory for DATA. Screw you, automake.
26protodir = $(includedir)
kenton@google.comfccb1462009-12-18 02:11:36 +000027nobase_dist_proto_DATA = google/protobuf/descriptor.proto \
28 google/protobuf/compiler/plugin.proto
temporal40ee5512008-07-10 02:12:20 +000029
30# Not sure why these don't get cleaned automatically.
31clean-local:
32 rm -f *.loT
33
kenton@google.comd2fcbba2010-01-04 19:47:18 +000034CLEANFILES = $(protoc_outputs) unittest_proto_middleman \
35 testzip.jar testzip.list testzip.proto testzip.zip
temporal40ee5512008-07-10 02:12:20 +000036
37MAINTAINERCLEANFILES = \
38 Makefile.in
39
40nobase_include_HEADERS = \
41 google/protobuf/stubs/common.h \
kenton@google.comd37d46d2009-04-25 02:53:47 +000042 google/protobuf/stubs/once.h \
temporal40ee5512008-07-10 02:12:20 +000043 google/protobuf/descriptor.h \
44 google/protobuf/descriptor.pb.h \
45 google/protobuf/descriptor_database.h \
46 google/protobuf/dynamic_message.h \
47 google/protobuf/extension_set.h \
kenton@google.com80b1d622009-07-29 01:13:20 +000048 google/protobuf/generated_message_util.h \
temporal40ee5512008-07-10 02:12:20 +000049 google/protobuf/generated_message_reflection.h \
50 google/protobuf/message.h \
kenton@google.com80b1d622009-07-29 01:13:20 +000051 google/protobuf/message_lite.h \
temporal40ee5512008-07-10 02:12:20 +000052 google/protobuf/reflection_ops.h \
53 google/protobuf/repeated_field.h \
54 google/protobuf/service.h \
55 google/protobuf/text_format.h \
56 google/protobuf/unknown_field_set.h \
57 google/protobuf/wire_format.h \
kenton@google.com80b1d622009-07-29 01:13:20 +000058 google/protobuf/wire_format_lite.h \
59 google/protobuf/wire_format_lite_inl.h \
temporal40ee5512008-07-10 02:12:20 +000060 google/protobuf/io/coded_stream.h \
kenton@google.come59427a2009-04-16 22:30:56 +000061 $(GZHEADERS) \
temporal40ee5512008-07-10 02:12:20 +000062 google/protobuf/io/printer.h \
63 google/protobuf/io/tokenizer.h \
64 google/protobuf/io/zero_copy_stream.h \
65 google/protobuf/io/zero_copy_stream_impl.h \
kenton@google.com80b1d622009-07-29 01:13:20 +000066 google/protobuf/io/zero_copy_stream_impl_lite.h \
temporal40ee5512008-07-10 02:12:20 +000067 google/protobuf/compiler/code_generator.h \
68 google/protobuf/compiler/command_line_interface.h \
69 google/protobuf/compiler/importer.h \
70 google/protobuf/compiler/parser.h \
kenton@google.comfccb1462009-12-18 02:11:36 +000071 google/protobuf/compiler/plugin.h \
72 google/protobuf/compiler/plugin.pb.h \
temporal40ee5512008-07-10 02:12:20 +000073 google/protobuf/compiler/cpp/cpp_generator.h \
74 google/protobuf/compiler/java/java_generator.h \
75 google/protobuf/compiler/python/python_generator.h
76
kenton@google.com858a22b2009-07-29 02:21:47 +000077lib_LTLIBRARIES = libprotobuf-lite.la libprotobuf.la libprotoc.la
temporal40ee5512008-07-10 02:12:20 +000078
kenton@google.com858a22b2009-07-29 02:21:47 +000079libprotobuf_lite_la_LIBADD = $(PTHREAD_LIBS)
kenton@google.comc0ee4d22009-12-22 02:05:33 +000080libprotobuf_lite_la_LDFLAGS = -version-info 6:0:0 -export-dynamic -no-undefined
kenton@google.com858a22b2009-07-29 02:21:47 +000081libprotobuf_lite_la_SOURCES = \
temporal40ee5512008-07-10 02:12:20 +000082 google/protobuf/stubs/common.cc \
kenton@google.comd37d46d2009-04-25 02:53:47 +000083 google/protobuf/stubs/once.cc \
temporal40ee5512008-07-10 02:12:20 +000084 google/protobuf/stubs/hash.cc \
85 google/protobuf/stubs/hash.h \
temporal40ee5512008-07-10 02:12:20 +000086 google/protobuf/stubs/map-util.h \
temporal40ee5512008-07-10 02:12:20 +000087 google/protobuf/stubs/stl_util-inl.h \
kenton@google.com858a22b2009-07-29 02:21:47 +000088 google/protobuf/extension_set.cc \
89 google/protobuf/generated_message_util.cc \
90 google/protobuf/message_lite.cc \
91 google/protobuf/repeated_field.cc \
92 google/protobuf/wire_format_lite.cc \
93 google/protobuf/io/coded_stream.cc \
kenton@google.comfccb1462009-12-18 02:11:36 +000094 google/protobuf/io/coded_stream_inl.h \
kenton@google.com858a22b2009-07-29 02:21:47 +000095 google/protobuf/io/zero_copy_stream.cc \
96 google/protobuf/io/zero_copy_stream_impl_lite.cc
97
98libprotobuf_la_LIBADD = $(PTHREAD_LIBS)
kenton@google.comc0ee4d22009-12-22 02:05:33 +000099libprotobuf_la_LDFLAGS = -version-info 6:0:0 -export-dynamic -no-undefined
kenton@google.com858a22b2009-07-29 02:21:47 +0000100libprotobuf_la_SOURCES = \
101 $(libprotobuf_lite_la_SOURCES) \
kenton@google.com4f3491e2009-07-29 21:33:08 +0000102 google/protobuf/stubs/strutil.cc \
103 google/protobuf/stubs/strutil.h \
104 google/protobuf/stubs/substitute.cc \
105 google/protobuf/stubs/substitute.h \
kenton@google.com26bd9ee2008-11-21 00:06:27 +0000106 google/protobuf/stubs/structurally_valid.cc \
temporal40ee5512008-07-10 02:12:20 +0000107 google/protobuf/descriptor.cc \
108 google/protobuf/descriptor.pb.cc \
109 google/protobuf/descriptor_database.cc \
110 google/protobuf/dynamic_message.cc \
kenton@google.com80b1d622009-07-29 01:13:20 +0000111 google/protobuf/extension_set_heavy.cc \
temporal40ee5512008-07-10 02:12:20 +0000112 google/protobuf/generated_message_reflection.cc \
113 google/protobuf/message.cc \
114 google/protobuf/reflection_ops.cc \
temporal40ee5512008-07-10 02:12:20 +0000115 google/protobuf/service.cc \
116 google/protobuf/text_format.cc \
117 google/protobuf/unknown_field_set.cc \
118 google/protobuf/wire_format.cc \
kenton@google.come59427a2009-04-16 22:30:56 +0000119 google/protobuf/io/gzip_stream.cc \
temporal40ee5512008-07-10 02:12:20 +0000120 google/protobuf/io/printer.cc \
121 google/protobuf/io/tokenizer.cc \
temporal40ee5512008-07-10 02:12:20 +0000122 google/protobuf/io/zero_copy_stream_impl.cc \
123 google/protobuf/compiler/importer.cc \
124 google/protobuf/compiler/parser.cc
125
126libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la
kenton@google.comc0ee4d22009-12-22 02:05:33 +0000127libprotoc_la_LDFLAGS = -version-info 6:0:0 -export-dynamic -no-undefined
temporal40ee5512008-07-10 02:12:20 +0000128libprotoc_la_SOURCES = \
129 google/protobuf/compiler/code_generator.cc \
130 google/protobuf/compiler/command_line_interface.cc \
kenton@google.comfccb1462009-12-18 02:11:36 +0000131 google/protobuf/compiler/plugin.cc \
132 google/protobuf/compiler/plugin.pb.cc \
133 google/protobuf/compiler/subprocess.cc \
134 google/protobuf/compiler/subprocess.h \
kenton@google.com50663222009-12-24 02:12:15 +0000135 google/protobuf/compiler/zip_writer.cc \
136 google/protobuf/compiler/zip_writer.h \
temporal40ee5512008-07-10 02:12:20 +0000137 google/protobuf/compiler/cpp/cpp_enum.cc \
138 google/protobuf/compiler/cpp/cpp_enum.h \
139 google/protobuf/compiler/cpp/cpp_enum_field.cc \
140 google/protobuf/compiler/cpp/cpp_enum_field.h \
141 google/protobuf/compiler/cpp/cpp_extension.cc \
142 google/protobuf/compiler/cpp/cpp_extension.h \
143 google/protobuf/compiler/cpp/cpp_field.cc \
144 google/protobuf/compiler/cpp/cpp_field.h \
145 google/protobuf/compiler/cpp/cpp_file.cc \
146 google/protobuf/compiler/cpp/cpp_file.h \
147 google/protobuf/compiler/cpp/cpp_generator.cc \
148 google/protobuf/compiler/cpp/cpp_helpers.cc \
149 google/protobuf/compiler/cpp/cpp_helpers.h \
150 google/protobuf/compiler/cpp/cpp_message.cc \
151 google/protobuf/compiler/cpp/cpp_message.h \
152 google/protobuf/compiler/cpp/cpp_message_field.cc \
153 google/protobuf/compiler/cpp/cpp_message_field.h \
154 google/protobuf/compiler/cpp/cpp_primitive_field.cc \
155 google/protobuf/compiler/cpp/cpp_primitive_field.h \
156 google/protobuf/compiler/cpp/cpp_service.cc \
157 google/protobuf/compiler/cpp/cpp_service.h \
158 google/protobuf/compiler/cpp/cpp_string_field.cc \
159 google/protobuf/compiler/cpp/cpp_string_field.h \
160 google/protobuf/compiler/java/java_enum.cc \
161 google/protobuf/compiler/java/java_enum.h \
162 google/protobuf/compiler/java/java_enum_field.cc \
163 google/protobuf/compiler/java/java_enum_field.h \
164 google/protobuf/compiler/java/java_extension.cc \
165 google/protobuf/compiler/java/java_extension.h \
166 google/protobuf/compiler/java/java_field.cc \
167 google/protobuf/compiler/java/java_field.h \
168 google/protobuf/compiler/java/java_file.cc \
169 google/protobuf/compiler/java/java_file.h \
170 google/protobuf/compiler/java/java_generator.cc \
171 google/protobuf/compiler/java/java_helpers.cc \
172 google/protobuf/compiler/java/java_helpers.h \
173 google/protobuf/compiler/java/java_message.cc \
174 google/protobuf/compiler/java/java_message.h \
175 google/protobuf/compiler/java/java_message_field.cc \
176 google/protobuf/compiler/java/java_message_field.h \
177 google/protobuf/compiler/java/java_primitive_field.cc \
178 google/protobuf/compiler/java/java_primitive_field.h \
179 google/protobuf/compiler/java/java_service.cc \
180 google/protobuf/compiler/java/java_service.h \
liujisi@google.com33165fe2010-11-02 13:14:58 +0000181 google/protobuf/compiler/java/java_string_field.cc \
182 google/protobuf/compiler/java/java_string_field.h \
temporal40ee5512008-07-10 02:12:20 +0000183 google/protobuf/compiler/python/python_generator.cc
184
185bin_PROGRAMS = protoc
186protoc_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la
187protoc_SOURCES = google/protobuf/compiler/main.cc
188
189# Tests ==============================================================
190
191protoc_inputs = \
192 google/protobuf/unittest.proto \
kenton@google.comd37d46d2009-04-25 02:53:47 +0000193 google/protobuf/unittest_empty.proto \
temporal40ee5512008-07-10 02:12:20 +0000194 google/protobuf/unittest_import.proto \
195 google/protobuf/unittest_mset.proto \
196 google/protobuf/unittest_optimize_for.proto \
197 google/protobuf/unittest_embed_optimize_for.proto \
kenton@google.com24bf56f2008-09-24 20:31:01 +0000198 google/protobuf/unittest_custom_options.proto \
kenton@google.com80b1d622009-07-29 01:13:20 +0000199 google/protobuf/unittest_lite.proto \
200 google/protobuf/unittest_import_lite.proto \
201 google/protobuf/unittest_lite_imports_nonlite.proto \
kenton@google.comfccb1462009-12-18 02:11:36 +0000202 google/protobuf/unittest_no_generic_services.proto \
temporal40ee5512008-07-10 02:12:20 +0000203 google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto
204
205EXTRA_DIST = \
206 $(protoc_inputs) \
207 solaris/libstdc++.la \
kenton@google.come59427a2009-04-16 22:30:56 +0000208 google/protobuf/io/gzip_stream.h \
209 google/protobuf/io/gzip_stream_unittest.sh \
temporal40ee5512008-07-10 02:12:20 +0000210 google/protobuf/testdata/golden_message \
kenton@google.com2d6daa72009-01-22 01:27:00 +0000211 google/protobuf/testdata/golden_packed_fields_message \
temporal40ee5512008-07-10 02:12:20 +0000212 google/protobuf/testdata/text_format_unittest_data.txt \
213 google/protobuf/testdata/text_format_unittest_extensions_data.txt \
214 google/protobuf/package_info.h \
215 google/protobuf/io/package_info.h \
kenton@google.com8aae2a22009-08-11 00:23:25 +0000216 google/protobuf/compiler/package_info.h \
kenton@google.com2773bdf2010-01-07 04:14:34 +0000217 google/protobuf/compiler/zip_output_unittest.sh \
kenton@google.com8aae2a22009-08-11 00:23:25 +0000218 google/protobuf/unittest_enormous_descriptor.proto
temporal40ee5512008-07-10 02:12:20 +0000219
kenton@google.com80b1d622009-07-29 01:13:20 +0000220protoc_lite_outputs = \
221 google/protobuf/unittest_lite.pb.cc \
222 google/protobuf/unittest_lite.pb.h \
223 google/protobuf/unittest_import_lite.pb.cc \
224 google/protobuf/unittest_import_lite.pb.h
225
temporal40ee5512008-07-10 02:12:20 +0000226protoc_outputs = \
kenton@google.com80b1d622009-07-29 01:13:20 +0000227 $(protoc_lite_outputs) \
temporal40ee5512008-07-10 02:12:20 +0000228 google/protobuf/unittest.pb.cc \
229 google/protobuf/unittest.pb.h \
kenton@google.comd37d46d2009-04-25 02:53:47 +0000230 google/protobuf/unittest_empty.pb.cc \
231 google/protobuf/unittest_empty.pb.h \
temporal40ee5512008-07-10 02:12:20 +0000232 google/protobuf/unittest_import.pb.cc \
233 google/protobuf/unittest_import.pb.h \
234 google/protobuf/unittest_mset.pb.cc \
235 google/protobuf/unittest_mset.pb.h \
236 google/protobuf/unittest_optimize_for.pb.cc \
237 google/protobuf/unittest_optimize_for.pb.h \
238 google/protobuf/unittest_embed_optimize_for.pb.cc \
239 google/protobuf/unittest_embed_optimize_for.pb.h \
kenton@google.com24bf56f2008-09-24 20:31:01 +0000240 google/protobuf/unittest_custom_options.pb.cc \
241 google/protobuf/unittest_custom_options.pb.h \
kenton@google.com80b1d622009-07-29 01:13:20 +0000242 google/protobuf/unittest_lite_imports_nonlite.pb.cc \
243 google/protobuf/unittest_lite_imports_nonlite.pb.h \
kenton@google.comfccb1462009-12-18 02:11:36 +0000244 google/protobuf/unittest_no_generic_services.pb.cc \
245 google/protobuf/unittest_no_generic_services.pb.h \
temporal40ee5512008-07-10 02:12:20 +0000246 google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.cc \
247 google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h
248
249BUILT_SOURCES = $(protoc_outputs)
250
kenton@google.com9824eda2009-05-06 17:49:37 +0000251if USE_EXTERNAL_PROTOC
252
253unittest_proto_middleman: $(protoc_inputs)
kenton@google.com721995d2009-09-11 22:08:40 +0000254 $(PROTOC) -I$(srcdir) --cpp_out=. $^
kenton@google.com9824eda2009-05-06 17:49:37 +0000255 touch unittest_proto_middleman
256
257else
258
kenton@google.com38fcd392010-01-08 04:48:19 +0000259# We have to cd to $(srcdir) before executing protoc because $(protoc_inputs) is
260# relative to srcdir, which may not be the same as the current directory when
261# building out-of-tree.
temporal40ee5512008-07-10 02:12:20 +0000262unittest_proto_middleman: protoc$(EXEEXT) $(protoc_inputs)
kenton@google.com38fcd392010-01-08 04:48:19 +0000263 oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/protoc$(EXEEXT) -I. --cpp_out=$$oldpwd $(protoc_inputs) )
temporal40ee5512008-07-10 02:12:20 +0000264 touch unittest_proto_middleman
265
kenton@google.com9824eda2009-05-06 17:49:37 +0000266endif
267
temporal40ee5512008-07-10 02:12:20 +0000268$(protoc_outputs): unittest_proto_middleman
269
kenton@google.comc5ff06c2009-04-28 03:06:41 +0000270COMMON_TEST_SOURCES = \
271 google/protobuf/test_util.cc \
272 google/protobuf/test_util.h \
273 google/protobuf/testing/googletest.cc \
274 google/protobuf/testing/googletest.h \
275 google/protobuf/testing/file.cc \
276 google/protobuf/testing/file.h
277
kenton@google.comd2fcbba2010-01-04 19:47:18 +0000278check_PROGRAMS = protoc protobuf-test protobuf-lazy-descriptor-test \
279 protobuf-lite-test test_plugin $(GZCHECKPROGRAMS)
kenton@google.com37ad00d2009-04-21 21:00:39 +0000280protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
281 $(top_builddir)/gtest/lib/libgtest.la \
282 $(top_builddir)/gtest/lib/libgtest_main.la
283protobuf_test_CPPFLAGS = -I$(top_srcdir)/gtest/include \
284 -I$(top_builddir)/gtest/include
kenton@google.com42c81e12009-05-06 01:15:06 +0000285# Disable optimization for tests unless the user explicitly asked for it,
286# since test_util.cc takes forever to compile with optimization (with GCC).
287# See configure.ac for more info.
288protobuf_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
temporal40ee5512008-07-10 02:12:20 +0000289protobuf_test_SOURCES = \
290 google/protobuf/stubs/common_unittest.cc \
kenton@google.comd37d46d2009-04-25 02:53:47 +0000291 google/protobuf/stubs/once_unittest.cc \
temporal40ee5512008-07-10 02:12:20 +0000292 google/protobuf/stubs/strutil_unittest.cc \
kenton@google.com26bd9ee2008-11-21 00:06:27 +0000293 google/protobuf/stubs/structurally_valid_unittest.cc \
temporal40ee5512008-07-10 02:12:20 +0000294 google/protobuf/descriptor_database_unittest.cc \
295 google/protobuf/descriptor_unittest.cc \
296 google/protobuf/dynamic_message_unittest.cc \
297 google/protobuf/extension_set_unittest.cc \
298 google/protobuf/generated_message_reflection_unittest.cc \
299 google/protobuf/message_unittest.cc \
300 google/protobuf/reflection_ops_unittest.cc \
301 google/protobuf/repeated_field_unittest.cc \
302 google/protobuf/text_format_unittest.cc \
303 google/protobuf/unknown_field_set_unittest.cc \
304 google/protobuf/wire_format_unittest.cc \
305 google/protobuf/io/coded_stream_unittest.cc \
306 google/protobuf/io/printer_unittest.cc \
307 google/protobuf/io/tokenizer_unittest.cc \
308 google/protobuf/io/zero_copy_stream_unittest.cc \
309 google/protobuf/compiler/command_line_interface_unittest.cc \
310 google/protobuf/compiler/importer_unittest.cc \
kenton@google.comfccb1462009-12-18 02:11:36 +0000311 google/protobuf/compiler/mock_code_generator.cc \
312 google/protobuf/compiler/mock_code_generator.h \
temporal40ee5512008-07-10 02:12:20 +0000313 google/protobuf/compiler/parser_unittest.cc \
314 google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc \
315 google/protobuf/compiler/cpp/cpp_unittest.cc \
kenton@google.comfccb1462009-12-18 02:11:36 +0000316 google/protobuf/compiler/cpp/cpp_plugin_unittest.cc \
317 google/protobuf/compiler/java/java_plugin_unittest.cc \
318 google/protobuf/compiler/python/python_plugin_unittest.cc \
kenton@google.comc5ff06c2009-04-28 03:06:41 +0000319 $(COMMON_TEST_SOURCES)
320nodist_protobuf_test_SOURCES = $(protoc_outputs)
321
322# Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined.
323protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \
324 $(top_builddir)/gtest/lib/libgtest.la \
325 $(top_builddir)/gtest/lib/libgtest_main.la
326protobuf_lazy_descriptor_test_CPPFLAGS = -I$(top_srcdir)/gtest/include \
327 -I$(top_builddir)/gtest/include \
328 -DPROTOBUF_TEST_NO_DESCRIPTORS
kenton@google.com4f3491e2009-07-29 21:33:08 +0000329protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
kenton@google.comc5ff06c2009-04-28 03:06:41 +0000330protobuf_lazy_descriptor_test_SOURCES = \
331 google/protobuf/compiler/cpp/cpp_unittest.cc \
332 $(COMMON_TEST_SOURCES)
333nodist_protobuf_lazy_descriptor_test_SOURCES = $(protoc_outputs)
temporal40ee5512008-07-10 02:12:20 +0000334
kenton@google.com80b1d622009-07-29 01:13:20 +0000335# Build lite_unittest separately, since it doesn't use gtest.
kenton@google.com858a22b2009-07-29 02:21:47 +0000336protobuf_lite_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la
kenton@google.com4f3491e2009-07-29 21:33:08 +0000337protobuf_lite_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
kenton@google.com80b1d622009-07-29 01:13:20 +0000338protobuf_lite_test_SOURCES = \
339 google/protobuf/lite_unittest.cc \
340 google/protobuf/test_util_lite.cc \
341 google/protobuf/test_util_lite.h
342nodist_protobuf_lite_test_SOURCES = $(protoc_lite_outputs)
343
kenton@google.comfccb1462009-12-18 02:11:36 +0000344# Test plugin binary.
345test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
346 $(top_builddir)/gtest/lib/libgtest.la
kenton@google.com83ad01e2009-12-18 02:40:43 +0000347test_plugin_CPPFLAGS = -I$(top_srcdir)/gtest/include \
348 -I$(top_builddir)/gtest/include
kenton@google.comfccb1462009-12-18 02:11:36 +0000349test_plugin_SOURCES = \
350 google/protobuf/compiler/mock_code_generator.cc \
351 google/protobuf/testing/file.cc \
352 google/protobuf/testing/file.h \
353 google/protobuf/compiler/test_plugin.cc
354
kenton@google.come59427a2009-04-16 22:30:56 +0000355if HAVE_ZLIB
356zcgzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la
357zcgzip_SOURCES = google/protobuf/testing/zcgzip.cc
358
359zcgunzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la
360zcgunzip_SOURCES = google/protobuf/testing/zcgunzip.cc
361endif
362
kenton@google.comd2fcbba2010-01-04 19:47:18 +0000363TESTS = protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test \
364 google/protobuf/compiler/zip_output_unittest.sh $(GZTESTS)