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 |
| 7 | else |
| 8 | GZCHECKPROGRAMS = |
| 9 | GZHEADERS = |
| 10 | GZTESTS = |
| 11 | endif |
| 12 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 13 | if GCC |
| 14 | # These are good warnings to turn on by default |
kenton@google.com | 42c81e1 | 2009-05-06 01:15:06 +0000 | [diff] [blame] | 15 | NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS) -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 16 | else |
kenton@google.com | 42c81e1 | 2009-05-06 01:15:06 +0000 | [diff] [blame] | 17 | NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 18 | endif |
| 19 | |
kenton@google.com | 42c81e1 | 2009-05-06 01:15:06 +0000 | [diff] [blame] | 20 | AM_CXXFLAGS = $(NO_OPT_CXXFLAGS) $(PROTOBUF_OPT_FLAG) |
| 21 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 22 | AM_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. |
| 26 | protodir = $(includedir) |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 27 | nobase_dist_proto_DATA = google/protobuf/descriptor.proto \ |
| 28 | google/protobuf/compiler/plugin.proto |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 29 | |
| 30 | # Not sure why these don't get cleaned automatically. |
| 31 | clean-local: |
| 32 | rm -f *.loT |
| 33 | |
kenton@google.com | d2fcbba | 2010-01-04 19:47:18 +0000 | [diff] [blame] | 34 | CLEANFILES = $(protoc_outputs) unittest_proto_middleman \ |
| 35 | testzip.jar testzip.list testzip.proto testzip.zip |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 36 | |
| 37 | MAINTAINERCLEANFILES = \ |
| 38 | Makefile.in |
| 39 | |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 40 | nobase_include_HEADERS = \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 41 | google/protobuf/stubs/atomic_sequence_num.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 42 | google/protobuf/stubs/atomicops.h \ |
Feng Xiao | f157a56 | 2014-11-14 11:50:31 -0800 | [diff] [blame^] | 43 | google/protobuf/stubs/atomicops_internals_aix.h \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 44 | google/protobuf/stubs/atomicops_internals_arm64_gcc.h \ |
Feng Xiao | 53d202f | 2014-10-22 11:33:55 -0700 | [diff] [blame] | 45 | google/protobuf/stubs/atomicops_internals_arm_gcc.h \ |
liujisi@google.com | 4d8c2f9 | 2013-01-10 21:24:56 +0000 | [diff] [blame] | 46 | google/protobuf/stubs/atomicops_internals_arm_qnx.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 47 | google/protobuf/stubs/atomicops_internals_atomicword_compat.h \ |
jieluo@google.com | 1eba9d9 | 2014-08-25 20:17:53 +0000 | [diff] [blame] | 48 | google/protobuf/stubs/atomicops_internals_generic_gcc.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 49 | google/protobuf/stubs/atomicops_internals_macosx.h \ |
| 50 | google/protobuf/stubs/atomicops_internals_mips_gcc.h \ |
liujisi@google.com | f5b373d | 2013-01-10 21:37:04 +0000 | [diff] [blame] | 51 | google/protobuf/stubs/atomicops_internals_pnacl.h \ |
Feng Xiao | 53d202f | 2014-10-22 11:33:55 -0700 | [diff] [blame] | 52 | google/protobuf/stubs/atomicops_internals_solaris.h \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 53 | google/protobuf/stubs/atomicops_internals_tsan.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 54 | google/protobuf/stubs/atomicops_internals_x86_gcc.h \ |
| 55 | google/protobuf/stubs/atomicops_internals_x86_msvc.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 56 | google/protobuf/stubs/casts.h \ |
| 57 | google/protobuf/stubs/singleton.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 58 | google/protobuf/stubs/common.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 59 | google/protobuf/stubs/fastmem.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 60 | google/protobuf/stubs/once.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 61 | google/protobuf/stubs/platform_macros.h \ |
jieluo@google.com | 1eba9d9 | 2014-08-25 20:17:53 +0000 | [diff] [blame] | 62 | google/protobuf/stubs/stl_util.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 63 | google/protobuf/stubs/template_util.h \ |
| 64 | google/protobuf/stubs/type_traits.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 65 | google/protobuf/arena.h \ |
| 66 | google/protobuf/arenastring.h \ |
| 67 | google/protobuf/descriptor_database.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 68 | google/protobuf/descriptor.h \ |
| 69 | google/protobuf/descriptor.pb.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 70 | google/protobuf/dynamic_message.h \ |
| 71 | google/protobuf/extension_set.h \ |
| 72 | google/protobuf/generated_enum_reflection.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 73 | google/protobuf/generated_message_reflection.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 74 | google/protobuf/generated_message_util.h \ |
Feng Xiao | f157a56 | 2014-11-14 11:50:31 -0800 | [diff] [blame^] | 75 | google/protobuf/map_entry.h \ |
| 76 | google/protobuf/map_field.h \ |
| 77 | google/protobuf/map_field_inl.h \ |
| 78 | google/protobuf/map.h \ |
| 79 | google/protobuf/map_type_handler.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 80 | google/protobuf/message.h \ |
| 81 | google/protobuf/message_lite.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 82 | google/protobuf/metadata.h \ |
| 83 | google/protobuf/reflection.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 84 | google/protobuf/reflection_ops.h \ |
| 85 | google/protobuf/repeated_field.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 86 | google/protobuf/repeated_field_reflection.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 87 | google/protobuf/service.h \ |
| 88 | google/protobuf/text_format.h \ |
| 89 | google/protobuf/unknown_field_set.h \ |
| 90 | google/protobuf/wire_format.h \ |
| 91 | google/protobuf/wire_format_lite.h \ |
| 92 | google/protobuf/wire_format_lite_inl.h \ |
| 93 | google/protobuf/io/coded_stream.h \ |
| 94 | $(GZHEADERS) \ |
| 95 | google/protobuf/io/printer.h \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 96 | google/protobuf/io/strtod.h \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 97 | google/protobuf/io/tokenizer.h \ |
| 98 | google/protobuf/io/zero_copy_stream.h \ |
| 99 | google/protobuf/io/zero_copy_stream_impl.h \ |
| 100 | google/protobuf/io/zero_copy_stream_impl_lite.h \ |
| 101 | google/protobuf/compiler/code_generator.h \ |
| 102 | google/protobuf/compiler/command_line_interface.h \ |
| 103 | google/protobuf/compiler/importer.h \ |
| 104 | google/protobuf/compiler/parser.h \ |
| 105 | google/protobuf/compiler/plugin.h \ |
| 106 | google/protobuf/compiler/plugin.pb.h \ |
| 107 | google/protobuf/compiler/cpp/cpp_generator.h \ |
| 108 | google/protobuf/compiler/java/java_generator.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 109 | google/protobuf/compiler/python/python_generator.h |
| 110 | |
kenton@google.com | 858a22b | 2009-07-29 02:21:47 +0000 | [diff] [blame] | 111 | lib_LTLIBRARIES = libprotobuf-lite.la libprotobuf.la libprotoc.la |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 112 | |
kenton@google.com | 858a22b | 2009-07-29 02:21:47 +0000 | [diff] [blame] | 113 | libprotobuf_lite_la_LIBADD = $(PTHREAD_LIBS) |
Feng Xiao | df5481c | 2014-10-21 16:47:33 -0700 | [diff] [blame] | 114 | libprotobuf_lite_la_LDFLAGS = -version-info 9:2:0 -export-dynamic -no-undefined |
kenton@google.com | 858a22b | 2009-07-29 02:21:47 +0000 | [diff] [blame] | 115 | libprotobuf_lite_la_SOURCES = \ |
pliard@google.com | f5de486 | 2012-03-02 13:04:36 +0000 | [diff] [blame] | 116 | google/protobuf/stubs/atomicops_internals_x86_gcc.cc \ |
xiaofeng@google.com | caa66db | 2012-12-04 18:44:24 +0000 | [diff] [blame] | 117 | google/protobuf/stubs/atomicops_internals_x86_msvc.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 118 | google/protobuf/stubs/common.cc \ |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 119 | google/protobuf/stubs/once.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 120 | google/protobuf/stubs/hash.h \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 121 | google/protobuf/stubs/map_util.h \ |
jieluo@google.com | bde4a32 | 2014-08-12 21:10:30 +0000 | [diff] [blame] | 122 | google/protobuf/stubs/shared_ptr.h \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 123 | google/protobuf/stubs/stringprintf.cc \ |
| 124 | google/protobuf/stubs/stringprintf.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 125 | google/protobuf/arena.cc \ |
| 126 | google/protobuf/arenastring.cc \ |
kenton@google.com | 858a22b | 2009-07-29 02:21:47 +0000 | [diff] [blame] | 127 | google/protobuf/extension_set.cc \ |
| 128 | google/protobuf/generated_message_util.cc \ |
Feng Xiao | f157a56 | 2014-11-14 11:50:31 -0800 | [diff] [blame^] | 129 | google/protobuf/map_field.cc \ |
kenton@google.com | 858a22b | 2009-07-29 02:21:47 +0000 | [diff] [blame] | 130 | google/protobuf/message_lite.cc \ |
| 131 | google/protobuf/repeated_field.cc \ |
| 132 | google/protobuf/wire_format_lite.cc \ |
| 133 | google/protobuf/io/coded_stream.cc \ |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 134 | google/protobuf/io/coded_stream_inl.h \ |
kenton@google.com | 858a22b | 2009-07-29 02:21:47 +0000 | [diff] [blame] | 135 | google/protobuf/io/zero_copy_stream.cc \ |
| 136 | google/protobuf/io/zero_copy_stream_impl_lite.cc |
| 137 | |
| 138 | libprotobuf_la_LIBADD = $(PTHREAD_LIBS) |
Feng Xiao | df5481c | 2014-10-21 16:47:33 -0700 | [diff] [blame] | 139 | libprotobuf_la_LDFLAGS = -version-info 9:2:0 -export-dynamic -no-undefined |
kenton@google.com | 858a22b | 2009-07-29 02:21:47 +0000 | [diff] [blame] | 140 | libprotobuf_la_SOURCES = \ |
| 141 | $(libprotobuf_lite_la_SOURCES) \ |
kenton@google.com | 4f3491e | 2009-07-29 21:33:08 +0000 | [diff] [blame] | 142 | google/protobuf/stubs/strutil.cc \ |
| 143 | google/protobuf/stubs/strutil.h \ |
| 144 | google/protobuf/stubs/substitute.cc \ |
| 145 | google/protobuf/stubs/substitute.h \ |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 146 | google/protobuf/stubs/structurally_valid.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 147 | google/protobuf/descriptor.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 148 | google/protobuf/descriptor_database.cc \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 149 | google/protobuf/descriptor.pb.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 150 | google/protobuf/dynamic_message.cc \ |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 151 | google/protobuf/extension_set_heavy.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 152 | google/protobuf/generated_message_reflection.cc \ |
| 153 | google/protobuf/message.cc \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 154 | google/protobuf/reflection_internal.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 155 | google/protobuf/reflection_ops.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 156 | google/protobuf/service.cc \ |
| 157 | google/protobuf/text_format.cc \ |
| 158 | google/protobuf/unknown_field_set.cc \ |
| 159 | google/protobuf/wire_format.cc \ |
kenton@google.com | e59427a | 2009-04-16 22:30:56 +0000 | [diff] [blame] | 160 | google/protobuf/io/gzip_stream.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 161 | google/protobuf/io/printer.cc \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 162 | google/protobuf/io/strtod.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 163 | google/protobuf/io/tokenizer.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 164 | google/protobuf/io/zero_copy_stream_impl.cc \ |
| 165 | google/protobuf/compiler/importer.cc \ |
| 166 | google/protobuf/compiler/parser.cc |
| 167 | |
| 168 | libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la |
Feng Xiao | df5481c | 2014-10-21 16:47:33 -0700 | [diff] [blame] | 169 | libprotoc_la_LDFLAGS = -version-info 9:2:0 -export-dynamic -no-undefined |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 170 | libprotoc_la_SOURCES = \ |
| 171 | google/protobuf/compiler/code_generator.cc \ |
| 172 | google/protobuf/compiler/command_line_interface.cc \ |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 173 | google/protobuf/compiler/plugin.cc \ |
| 174 | google/protobuf/compiler/plugin.pb.cc \ |
| 175 | google/protobuf/compiler/subprocess.cc \ |
| 176 | google/protobuf/compiler/subprocess.h \ |
kenton@google.com | 5066322 | 2009-12-24 02:12:15 +0000 | [diff] [blame] | 177 | google/protobuf/compiler/zip_writer.cc \ |
| 178 | google/protobuf/compiler/zip_writer.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 179 | google/protobuf/compiler/cpp/cpp_enum.cc \ |
| 180 | google/protobuf/compiler/cpp/cpp_enum.h \ |
| 181 | google/protobuf/compiler/cpp/cpp_enum_field.cc \ |
| 182 | google/protobuf/compiler/cpp/cpp_enum_field.h \ |
| 183 | google/protobuf/compiler/cpp/cpp_extension.cc \ |
| 184 | google/protobuf/compiler/cpp/cpp_extension.h \ |
| 185 | google/protobuf/compiler/cpp/cpp_field.cc \ |
| 186 | google/protobuf/compiler/cpp/cpp_field.h \ |
| 187 | google/protobuf/compiler/cpp/cpp_file.cc \ |
| 188 | google/protobuf/compiler/cpp/cpp_file.h \ |
| 189 | google/protobuf/compiler/cpp/cpp_generator.cc \ |
| 190 | google/protobuf/compiler/cpp/cpp_helpers.cc \ |
| 191 | google/protobuf/compiler/cpp/cpp_helpers.h \ |
Feng Xiao | f157a56 | 2014-11-14 11:50:31 -0800 | [diff] [blame^] | 192 | google/protobuf/compiler/cpp/cpp_map_field.cc \ |
| 193 | google/protobuf/compiler/cpp/cpp_map_field.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 194 | google/protobuf/compiler/cpp/cpp_message.cc \ |
| 195 | google/protobuf/compiler/cpp/cpp_message.h \ |
| 196 | google/protobuf/compiler/cpp/cpp_message_field.cc \ |
| 197 | google/protobuf/compiler/cpp/cpp_message_field.h \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 198 | google/protobuf/compiler/cpp/cpp_options.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 199 | google/protobuf/compiler/cpp/cpp_primitive_field.cc \ |
| 200 | google/protobuf/compiler/cpp/cpp_primitive_field.h \ |
| 201 | google/protobuf/compiler/cpp/cpp_service.cc \ |
| 202 | google/protobuf/compiler/cpp/cpp_service.h \ |
| 203 | google/protobuf/compiler/cpp/cpp_string_field.cc \ |
| 204 | google/protobuf/compiler/cpp/cpp_string_field.h \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 205 | google/protobuf/compiler/java/java_context.cc \ |
| 206 | google/protobuf/compiler/java/java_context.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 207 | google/protobuf/compiler/java/java_enum.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 208 | google/protobuf/compiler/java/java_enum_field.cc \ |
| 209 | google/protobuf/compiler/java/java_enum_field.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 210 | google/protobuf/compiler/java/java_enum.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 211 | google/protobuf/compiler/java/java_extension.cc \ |
| 212 | google/protobuf/compiler/java/java_extension.h \ |
| 213 | google/protobuf/compiler/java/java_field.cc \ |
| 214 | google/protobuf/compiler/java/java_field.h \ |
| 215 | google/protobuf/compiler/java/java_file.cc \ |
| 216 | google/protobuf/compiler/java/java_file.h \ |
| 217 | google/protobuf/compiler/java/java_generator.cc \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 218 | google/protobuf/compiler/java/java_generator_factory.cc \ |
| 219 | google/protobuf/compiler/java/java_generator_factory.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 220 | google/protobuf/compiler/java/java_helpers.cc \ |
| 221 | google/protobuf/compiler/java/java_helpers.h \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 222 | google/protobuf/compiler/java/java_lazy_message_field.cc \ |
| 223 | google/protobuf/compiler/java/java_lazy_message_field.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 224 | google/protobuf/compiler/java/java_map_field.cc \ |
| 225 | google/protobuf/compiler/java/java_map_field.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 226 | google/protobuf/compiler/java/java_message.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 227 | google/protobuf/compiler/java/java_message_field.cc \ |
| 228 | google/protobuf/compiler/java/java_message_field.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 229 | google/protobuf/compiler/java/java_message.h \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 230 | google/protobuf/compiler/java/java_name_resolver.cc \ |
| 231 | google/protobuf/compiler/java/java_name_resolver.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 232 | google/protobuf/compiler/java/java_primitive_field.cc \ |
| 233 | google/protobuf/compiler/java/java_primitive_field.h \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 234 | google/protobuf/compiler/java/java_shared_code_generator.cc \ |
| 235 | google/protobuf/compiler/java/java_shared_code_generator.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 236 | google/protobuf/compiler/java/java_service.cc \ |
| 237 | google/protobuf/compiler/java/java_service.h \ |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame] | 238 | google/protobuf/compiler/java/java_string_field.cc \ |
| 239 | google/protobuf/compiler/java/java_string_field.h \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 240 | google/protobuf/compiler/java/java_doc_comment.cc \ |
| 241 | google/protobuf/compiler/java/java_doc_comment.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 242 | google/protobuf/compiler/python/python_generator.cc |
| 243 | |
| 244 | bin_PROGRAMS = protoc |
| 245 | protoc_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la |
| 246 | protoc_SOURCES = google/protobuf/compiler/main.cc |
| 247 | |
| 248 | # Tests ============================================================== |
| 249 | |
| 250 | protoc_inputs = \ |
Feng Xiao | f157a56 | 2014-11-14 11:50:31 -0800 | [diff] [blame^] | 251 | google/protobuf/map_lite_unittest.proto \ |
| 252 | google/protobuf/map_proto2_unittest.proto \ |
| 253 | google/protobuf/map_unittest.proto \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 254 | google/protobuf/unittest.proto \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 255 | google/protobuf/unittest_arena.proto \ |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 256 | google/protobuf/unittest_custom_options.proto \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 257 | google/protobuf/unittest_drop_unknown_fields.proto \ |
| 258 | google/protobuf/unittest_embed_optimize_for.proto \ |
| 259 | google/protobuf/unittest_empty.proto \ |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 260 | google/protobuf/unittest_import_lite.proto \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 261 | google/protobuf/unittest_import.proto \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 262 | google/protobuf/unittest_import_public_lite.proto \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 263 | google/protobuf/unittest_import_public.proto \ |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 264 | google/protobuf/unittest_lite_imports_nonlite.proto \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 265 | google/protobuf/unittest_lite.proto \ |
| 266 | google/protobuf/unittest_mset.proto \ |
| 267 | google/protobuf/unittest_no_arena_import.proto \ |
| 268 | google/protobuf/unittest_no_arena.proto \ |
| 269 | google/protobuf/unittest_no_field_presence.proto \ |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 270 | google/protobuf/unittest_no_generic_services.proto \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 271 | google/protobuf/unittest_optimize_for.proto \ |
| 272 | google/protobuf/unittest_preserve_unknown_enum.proto \ |
| 273 | google/protobuf/unittest_proto3_arena.proto \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 274 | google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto |
| 275 | |
| 276 | EXTRA_DIST = \ |
| 277 | $(protoc_inputs) \ |
| 278 | solaris/libstdc++.la \ |
kenton@google.com | e59427a | 2009-04-16 22:30:56 +0000 | [diff] [blame] | 279 | google/protobuf/io/gzip_stream.h \ |
| 280 | google/protobuf/io/gzip_stream_unittest.sh \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 281 | google/protobuf/testdata/golden_message \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 282 | google/protobuf/testdata/golden_message_oneof_implemented \ |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame] | 283 | google/protobuf/testdata/golden_packed_fields_message \ |
jieluo@google.com | e61b513 | 2014-08-14 21:51:48 +0000 | [diff] [blame] | 284 | google/protobuf/testdata/bad_utf8_string \ |
| 285 | google/protobuf/testdata/text_format_unittest_data.txt \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 286 | google/protobuf/testdata/text_format_unittest_data_oneof_implemented.txt \ |
jieluo@google.com | bde4a32 | 2014-08-12 21:10:30 +0000 | [diff] [blame] | 287 | google/protobuf/testdata/text_format_unittest_data_pointy.txt \ |
jieluo@google.com | e61b513 | 2014-08-14 21:51:48 +0000 | [diff] [blame] | 288 | google/protobuf/testdata/text_format_unittest_data_pointy_oneof.txt \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 289 | google/protobuf/testdata/text_format_unittest_extensions_data.txt \ |
jieluo@google.com | bde4a32 | 2014-08-12 21:10:30 +0000 | [diff] [blame] | 290 | google/protobuf/testdata/text_format_unittest_extensions_data_pointy.txt \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 291 | google/protobuf/package_info.h \ |
| 292 | google/protobuf/io/package_info.h \ |
kenton@google.com | 8aae2a2 | 2009-08-11 00:23:25 +0000 | [diff] [blame] | 293 | google/protobuf/compiler/package_info.h \ |
kenton@google.com | 2773bdf | 2010-01-07 04:14:34 +0000 | [diff] [blame] | 294 | google/protobuf/compiler/zip_output_unittest.sh \ |
kenton@google.com | 8aae2a2 | 2009-08-11 00:23:25 +0000 | [diff] [blame] | 295 | google/protobuf/unittest_enormous_descriptor.proto |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 296 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 297 | protoc_lite_outputs = \ |
| 298 | google/protobuf/unittest_lite.pb.cc \ |
| 299 | google/protobuf/unittest_lite.pb.h \ |
| 300 | google/protobuf/unittest_import_lite.pb.cc \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 301 | google/protobuf/unittest_import_lite.pb.h \ |
| 302 | google/protobuf/unittest_import_public_lite.pb.cc \ |
| 303 | google/protobuf/unittest_import_public_lite.pb.h |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 304 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 305 | protoc_outputs = \ |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 306 | $(protoc_lite_outputs) \ |
Feng Xiao | f157a56 | 2014-11-14 11:50:31 -0800 | [diff] [blame^] | 307 | google/protobuf/map_lite_unittest.pb.cc \ |
| 308 | google/protobuf/map_lite_unittest.pb.h \ |
| 309 | google/protobuf/map_proto2_unittest.pb.cc \ |
| 310 | google/protobuf/map_proto2_unittest.pb.h \ |
| 311 | google/protobuf/map_unittest.pb.cc \ |
| 312 | google/protobuf/map_unittest.pb.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 313 | google/protobuf/unittest.pb.cc \ |
| 314 | google/protobuf/unittest.pb.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 315 | google/protobuf/unittest_arena.pb.cc \ |
| 316 | google/protobuf/unittest_arena.pb.h \ |
| 317 | google/protobuf/unittest_custom_options.pb.cc \ |
| 318 | google/protobuf/unittest_custom_options.pb.h \ |
| 319 | google/protobuf/unittest_drop_unknown_fields.pb.cc \ |
| 320 | google/protobuf/unittest_drop_unknown_fields.pb.h \ |
| 321 | google/protobuf/unittest_embed_optimize_for.pb.cc \ |
| 322 | google/protobuf/unittest_embed_optimize_for.pb.h \ |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 323 | google/protobuf/unittest_empty.pb.cc \ |
| 324 | google/protobuf/unittest_empty.pb.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 325 | google/protobuf/unittest_import.pb.cc \ |
| 326 | google/protobuf/unittest_import.pb.h \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 327 | google/protobuf/unittest_import_public.pb.cc \ |
| 328 | google/protobuf/unittest_import_public.pb.h \ |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 329 | google/protobuf/unittest_lite_imports_nonlite.pb.cc \ |
| 330 | google/protobuf/unittest_lite_imports_nonlite.pb.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 331 | google/protobuf/unittest_mset.pb.cc \ |
| 332 | google/protobuf/unittest_mset.pb.h \ |
| 333 | google/protobuf/unittest_no_arena.pb.cc \ |
| 334 | google/protobuf/unittest_no_arena.pb.h \ |
| 335 | google/protobuf/unittest_no_arena_import.pb.cc \ |
| 336 | google/protobuf/unittest_no_arena_import.pb.h \ |
| 337 | google/protobuf/unittest_no_field_presence.pb.cc \ |
| 338 | google/protobuf/unittest_no_field_presence.pb.h \ |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 339 | google/protobuf/unittest_no_generic_services.pb.cc \ |
| 340 | google/protobuf/unittest_no_generic_services.pb.h \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 341 | google/protobuf/unittest_optimize_for.pb.cc \ |
| 342 | google/protobuf/unittest_optimize_for.pb.h \ |
| 343 | google/protobuf/unittest_preserve_unknown_enum.pb.cc \ |
| 344 | google/protobuf/unittest_preserve_unknown_enum.pb.h \ |
| 345 | google/protobuf/unittest_proto3_arena.pb.cc \ |
| 346 | google/protobuf/unittest_proto3_arena.pb.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 347 | google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.cc \ |
| 348 | google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h |
| 349 | |
| 350 | BUILT_SOURCES = $(protoc_outputs) |
| 351 | |
kenton@google.com | 9824eda | 2009-05-06 17:49:37 +0000 | [diff] [blame] | 352 | if USE_EXTERNAL_PROTOC |
| 353 | |
| 354 | unittest_proto_middleman: $(protoc_inputs) |
kenton@google.com | 721995d | 2009-09-11 22:08:40 +0000 | [diff] [blame] | 355 | $(PROTOC) -I$(srcdir) --cpp_out=. $^ |
kenton@google.com | 9824eda | 2009-05-06 17:49:37 +0000 | [diff] [blame] | 356 | touch unittest_proto_middleman |
| 357 | |
| 358 | else |
| 359 | |
kenton@google.com | 38fcd39 | 2010-01-08 04:48:19 +0000 | [diff] [blame] | 360 | # We have to cd to $(srcdir) before executing protoc because $(protoc_inputs) is |
| 361 | # relative to srcdir, which may not be the same as the current directory when |
| 362 | # building out-of-tree. |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 363 | unittest_proto_middleman: protoc$(EXEEXT) $(protoc_inputs) |
kenton@google.com | 38fcd39 | 2010-01-08 04:48:19 +0000 | [diff] [blame] | 364 | oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/protoc$(EXEEXT) -I. --cpp_out=$$oldpwd $(protoc_inputs) ) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 365 | touch unittest_proto_middleman |
| 366 | |
kenton@google.com | 9824eda | 2009-05-06 17:49:37 +0000 | [diff] [blame] | 367 | endif |
| 368 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 369 | $(protoc_outputs): unittest_proto_middleman |
| 370 | |
kenton@google.com | c5ff06c | 2009-04-28 03:06:41 +0000 | [diff] [blame] | 371 | COMMON_TEST_SOURCES = \ |
Feng Xiao | f157a56 | 2014-11-14 11:50:31 -0800 | [diff] [blame^] | 372 | google/protobuf/map_test_util.cc \ |
| 373 | google/protobuf/map_test_util.h \ |
kenton@google.com | c5ff06c | 2009-04-28 03:06:41 +0000 | [diff] [blame] | 374 | google/protobuf/test_util.cc \ |
| 375 | google/protobuf/test_util.h \ |
| 376 | google/protobuf/testing/googletest.cc \ |
| 377 | google/protobuf/testing/googletest.h \ |
| 378 | google/protobuf/testing/file.cc \ |
| 379 | google/protobuf/testing/file.h |
| 380 | |
kenton@google.com | d2fcbba | 2010-01-04 19:47:18 +0000 | [diff] [blame] | 381 | check_PROGRAMS = protoc protobuf-test protobuf-lazy-descriptor-test \ |
| 382 | protobuf-lite-test test_plugin $(GZCHECKPROGRAMS) |
kenton@google.com | 37ad00d | 2009-04-21 21:00:39 +0000 | [diff] [blame] | 383 | protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \ |
| 384 | $(top_builddir)/gtest/lib/libgtest.la \ |
| 385 | $(top_builddir)/gtest/lib/libgtest_main.la |
| 386 | protobuf_test_CPPFLAGS = -I$(top_srcdir)/gtest/include \ |
| 387 | -I$(top_builddir)/gtest/include |
kenton@google.com | 42c81e1 | 2009-05-06 01:15:06 +0000 | [diff] [blame] | 388 | # Disable optimization for tests unless the user explicitly asked for it, |
| 389 | # since test_util.cc takes forever to compile with optimization (with GCC). |
| 390 | # See configure.ac for more info. |
| 391 | protobuf_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 392 | protobuf_test_SOURCES = \ |
| 393 | google/protobuf/stubs/common_unittest.cc \ |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 394 | google/protobuf/stubs/once_unittest.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 395 | google/protobuf/stubs/strutil_unittest.cc \ |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 396 | google/protobuf/stubs/structurally_valid_unittest.cc \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 397 | google/protobuf/stubs/stringprintf_unittest.cc \ |
| 398 | google/protobuf/stubs/template_util_unittest.cc \ |
| 399 | google/protobuf/stubs/type_traits_unittest.cc \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 400 | google/protobuf/arenastring_unittest.cc \ |
| 401 | google/protobuf/arena_unittest.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 402 | google/protobuf/descriptor_database_unittest.cc \ |
| 403 | google/protobuf/descriptor_unittest.cc \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 404 | google/protobuf/drop_unknown_fields_test.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 405 | google/protobuf/dynamic_message_unittest.cc \ |
| 406 | google/protobuf/extension_set_unittest.cc \ |
| 407 | google/protobuf/generated_message_reflection_unittest.cc \ |
Feng Xiao | f157a56 | 2014-11-14 11:50:31 -0800 | [diff] [blame^] | 408 | google/protobuf/map_field_test.cc \ |
| 409 | google/protobuf/map_test.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 410 | google/protobuf/message_unittest.cc \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 411 | google/protobuf/no_field_presence_test.cc \ |
| 412 | google/protobuf/preserve_unknown_enum_test.cc \ |
| 413 | google/protobuf/proto3_arena_unittest.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 414 | google/protobuf/reflection_ops_unittest.cc \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 415 | google/protobuf/repeated_field_reflection_unittest.cc \ |
Feng Xiao | 6ef984a | 2014-11-10 17:34:54 -0800 | [diff] [blame] | 416 | google/protobuf/repeated_field_unittest.cc \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 417 | google/protobuf/text_format_unittest.cc \ |
| 418 | google/protobuf/unknown_field_set_unittest.cc \ |
| 419 | google/protobuf/wire_format_unittest.cc \ |
| 420 | google/protobuf/io/coded_stream_unittest.cc \ |
| 421 | google/protobuf/io/printer_unittest.cc \ |
| 422 | google/protobuf/io/tokenizer_unittest.cc \ |
| 423 | google/protobuf/io/zero_copy_stream_unittest.cc \ |
| 424 | google/protobuf/compiler/command_line_interface_unittest.cc \ |
| 425 | google/protobuf/compiler/importer_unittest.cc \ |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 426 | google/protobuf/compiler/mock_code_generator.cc \ |
| 427 | google/protobuf/compiler/mock_code_generator.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 428 | google/protobuf/compiler/parser_unittest.cc \ |
| 429 | google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 430 | google/protobuf/compiler/cpp/cpp_unittest.h \ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 431 | google/protobuf/compiler/cpp/cpp_unittest.cc \ |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 432 | google/protobuf/compiler/cpp/cpp_plugin_unittest.cc \ |
| 433 | google/protobuf/compiler/java/java_plugin_unittest.cc \ |
xiaofeng@google.com | b55a20f | 2012-09-22 02:40:50 +0000 | [diff] [blame] | 434 | google/protobuf/compiler/java/java_doc_comment_unittest.cc \ |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 435 | google/protobuf/compiler/python/python_plugin_unittest.cc \ |
kenton@google.com | c5ff06c | 2009-04-28 03:06:41 +0000 | [diff] [blame] | 436 | $(COMMON_TEST_SOURCES) |
| 437 | nodist_protobuf_test_SOURCES = $(protoc_outputs) |
| 438 | |
| 439 | # Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined. |
| 440 | protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \ |
jieluo@google.com | 4de8f55 | 2014-07-18 00:47:59 +0000 | [diff] [blame] | 441 | libprotoc.la \ |
| 442 | $(top_builddir)/gtest/lib/libgtest.la \ |
kenton@google.com | c5ff06c | 2009-04-28 03:06:41 +0000 | [diff] [blame] | 443 | $(top_builddir)/gtest/lib/libgtest_main.la |
| 444 | protobuf_lazy_descriptor_test_CPPFLAGS = -I$(top_srcdir)/gtest/include \ |
| 445 | -I$(top_builddir)/gtest/include \ |
| 446 | -DPROTOBUF_TEST_NO_DESCRIPTORS |
kenton@google.com | 4f3491e | 2009-07-29 21:33:08 +0000 | [diff] [blame] | 447 | protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) |
kenton@google.com | c5ff06c | 2009-04-28 03:06:41 +0000 | [diff] [blame] | 448 | protobuf_lazy_descriptor_test_SOURCES = \ |
| 449 | google/protobuf/compiler/cpp/cpp_unittest.cc \ |
| 450 | $(COMMON_TEST_SOURCES) |
| 451 | nodist_protobuf_lazy_descriptor_test_SOURCES = $(protoc_outputs) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 452 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 453 | # Build lite_unittest separately, since it doesn't use gtest. |
kenton@google.com | 858a22b | 2009-07-29 02:21:47 +0000 | [diff] [blame] | 454 | protobuf_lite_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la |
kenton@google.com | 4f3491e | 2009-07-29 21:33:08 +0000 | [diff] [blame] | 455 | protobuf_lite_test_CXXFLAGS = $(NO_OPT_CXXFLAGS) |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 456 | protobuf_lite_test_SOURCES = \ |
| 457 | google/protobuf/lite_unittest.cc \ |
| 458 | google/protobuf/test_util_lite.cc \ |
| 459 | google/protobuf/test_util_lite.h |
| 460 | nodist_protobuf_lite_test_SOURCES = $(protoc_lite_outputs) |
| 461 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 462 | # Test plugin binary. |
| 463 | test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \ |
| 464 | $(top_builddir)/gtest/lib/libgtest.la |
kenton@google.com | 83ad01e | 2009-12-18 02:40:43 +0000 | [diff] [blame] | 465 | test_plugin_CPPFLAGS = -I$(top_srcdir)/gtest/include \ |
| 466 | -I$(top_builddir)/gtest/include |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 467 | test_plugin_SOURCES = \ |
| 468 | google/protobuf/compiler/mock_code_generator.cc \ |
| 469 | google/protobuf/testing/file.cc \ |
| 470 | google/protobuf/testing/file.h \ |
| 471 | google/protobuf/compiler/test_plugin.cc |
| 472 | |
kenton@google.com | e59427a | 2009-04-16 22:30:56 +0000 | [diff] [blame] | 473 | if HAVE_ZLIB |
| 474 | zcgzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la |
| 475 | zcgzip_SOURCES = google/protobuf/testing/zcgzip.cc |
| 476 | |
| 477 | zcgunzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la |
| 478 | zcgunzip_SOURCES = google/protobuf/testing/zcgunzip.cc |
| 479 | endif |
| 480 | |
kenton@google.com | d2fcbba | 2010-01-04 19:47:18 +0000 | [diff] [blame] | 481 | TESTS = protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test \ |
| 482 | google/protobuf/compiler/zip_output_unittest.sh $(GZTESTS) |