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