Makefile.am 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  1. ## Process this file with automake to produce Makefile.in
  2. if HAVE_ZLIB
  3. GZCHECKPROGRAMS = zcgzip zcgunzip
  4. GZHEADERS = google/protobuf/io/gzip_stream.h
  5. GZTESTS = google/protobuf/io/gzip_stream_unittest.sh
  6. ZLIB_DEF = -DHAVE_ZLIB=1
  7. else
  8. GZCHECKPROGRAMS =
  9. GZHEADERS =
  10. GZTESTS =
  11. ZLIB_DEF =
  12. endif
  13. if HAVE_PTHREAD
  14. PTHREAD_DEF = -DHAVE_PTHREAD=1
  15. else
  16. PTHREAD_DEF =
  17. endif
  18. if GCC
  19. # These are good warnings to turn on by default
  20. NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_DEF) $(ZLIB_DEF) -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
  21. else
  22. NO_OPT_CXXFLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_DEF) $(ZLIB_DEF)
  23. endif
  24. AM_CXXFLAGS = $(NO_OPT_CXXFLAGS) $(PROTOBUF_OPT_FLAG)
  25. AM_LDFLAGS = $(PTHREAD_CFLAGS)
  26. # If I say "dist_include_DATA", automake complains that $(includedir) is not
  27. # a "legitimate" directory for DATA. Screw you, automake.
  28. protodir = $(includedir)
  29. nobase_dist_proto_DATA = google/protobuf/descriptor.proto \
  30. google/protobuf/any.proto \
  31. google/protobuf/api.proto \
  32. google/protobuf/duration.proto \
  33. google/protobuf/empty.proto \
  34. google/protobuf/field_mask.proto \
  35. google/protobuf/source_context.proto \
  36. google/protobuf/struct.proto \
  37. google/protobuf/timestamp.proto \
  38. google/protobuf/type.proto \
  39. google/protobuf/wrappers.proto \
  40. google/protobuf/compiler/plugin.proto
  41. # Not sure why these don't get cleaned automatically.
  42. clean-local:
  43. rm -f *.loT
  44. CLEANFILES = $(protoc_outputs) unittest_proto_middleman \
  45. testzip.jar testzip.list testzip.proto testzip.zip
  46. MAINTAINERCLEANFILES = \
  47. Makefile.in
  48. nobase_include_HEADERS = \
  49. google/protobuf/stubs/atomic_sequence_num.h \
  50. google/protobuf/stubs/atomicops.h \
  51. google/protobuf/stubs/atomicops_internals_power.h \
  52. google/protobuf/stubs/atomicops_internals_arm64_gcc.h \
  53. google/protobuf/stubs/atomicops_internals_arm_gcc.h \
  54. google/protobuf/stubs/atomicops_internals_arm_qnx.h \
  55. google/protobuf/stubs/atomicops_internals_atomicword_compat.h \
  56. google/protobuf/stubs/atomicops_internals_generic_gcc.h \
  57. google/protobuf/stubs/atomicops_internals_macosx.h \
  58. google/protobuf/stubs/atomicops_internals_mips_gcc.h \
  59. google/protobuf/stubs/atomicops_internals_pnacl.h \
  60. google/protobuf/stubs/atomicops_internals_solaris.h \
  61. google/protobuf/stubs/atomicops_internals_tsan.h \
  62. google/protobuf/stubs/atomicops_internals_x86_gcc.h \
  63. google/protobuf/stubs/atomicops_internals_x86_msvc.h \
  64. google/protobuf/stubs/callback.h \
  65. google/protobuf/stubs/bytestream.h \
  66. google/protobuf/stubs/casts.h \
  67. google/protobuf/stubs/common.h \
  68. google/protobuf/stubs/fastmem.h \
  69. google/protobuf/stubs/hash.h \
  70. google/protobuf/stubs/logging.h \
  71. google/protobuf/stubs/macros.h \
  72. google/protobuf/stubs/mutex.h \
  73. google/protobuf/stubs/once.h \
  74. google/protobuf/stubs/platform_macros.h \
  75. google/protobuf/stubs/port.h \
  76. google/protobuf/stubs/scoped_ptr.h \
  77. google/protobuf/stubs/shared_ptr.h \
  78. google/protobuf/stubs/singleton.h \
  79. google/protobuf/stubs/status.h \
  80. google/protobuf/stubs/stl_util.h \
  81. google/protobuf/stubs/stringpiece.h \
  82. google/protobuf/stubs/template_util.h \
  83. google/protobuf/stubs/type_traits.h \
  84. google/protobuf/any.pb.h \
  85. google/protobuf/api.pb.h \
  86. google/protobuf/any.h \
  87. google/protobuf/arena.h \
  88. google/protobuf/arenastring.h \
  89. google/protobuf/descriptor_database.h \
  90. google/protobuf/descriptor.h \
  91. google/protobuf/descriptor.pb.h \
  92. google/protobuf/duration.pb.h \
  93. google/protobuf/dynamic_message.h \
  94. google/protobuf/empty.pb.h \
  95. google/protobuf/extension_set.h \
  96. google/protobuf/field_mask.pb.h \
  97. google/protobuf/generated_enum_reflection.h \
  98. google/protobuf/generated_enum_util.h \
  99. google/protobuf/generated_message_reflection.h \
  100. google/protobuf/generated_message_util.h \
  101. google/protobuf/map_entry.h \
  102. google/protobuf/map_entry_lite.h \
  103. google/protobuf/map_field.h \
  104. google/protobuf/map_field_inl.h \
  105. google/protobuf/map_field_lite.h \
  106. google/protobuf/map.h \
  107. google/protobuf/map_type_handler.h \
  108. google/protobuf/message.h \
  109. google/protobuf/message_lite.h \
  110. google/protobuf/metadata.h \
  111. google/protobuf/reflection.h \
  112. google/protobuf/reflection_ops.h \
  113. google/protobuf/repeated_field.h \
  114. google/protobuf/repeated_field_reflection.h \
  115. google/protobuf/service.h \
  116. google/protobuf/source_context.pb.h \
  117. google/protobuf/struct.pb.h \
  118. google/protobuf/text_format.h \
  119. google/protobuf/timestamp.pb.h \
  120. google/protobuf/type.pb.h \
  121. google/protobuf/unknown_field_set.h \
  122. google/protobuf/wire_format.h \
  123. google/protobuf/wire_format_lite.h \
  124. google/protobuf/wire_format_lite_inl.h \
  125. google/protobuf/wrappers.pb.h \
  126. google/protobuf/io/coded_stream.h \
  127. $(GZHEADERS) \
  128. google/protobuf/io/printer.h \
  129. google/protobuf/io/strtod.h \
  130. google/protobuf/io/tokenizer.h \
  131. google/protobuf/io/zero_copy_stream.h \
  132. google/protobuf/io/zero_copy_stream_impl.h \
  133. google/protobuf/io/zero_copy_stream_impl_lite.h \
  134. google/protobuf/compiler/code_generator.h \
  135. google/protobuf/compiler/command_line_interface.h \
  136. google/protobuf/compiler/importer.h \
  137. google/protobuf/compiler/parser.h \
  138. google/protobuf/compiler/plugin.h \
  139. google/protobuf/compiler/plugin.pb.h \
  140. google/protobuf/compiler/cpp/cpp_generator.h \
  141. google/protobuf/compiler/csharp/csharp_generator.h \
  142. google/protobuf/compiler/csharp/csharp_names.h \
  143. google/protobuf/compiler/java/java_generator.h \
  144. google/protobuf/compiler/java/java_names.h \
  145. google/protobuf/compiler/javanano/javanano_generator.h \
  146. google/protobuf/compiler/js/js_generator.h \
  147. google/protobuf/compiler/objectivec/objectivec_generator.h \
  148. google/protobuf/compiler/objectivec/objectivec_helpers.h \
  149. google/protobuf/compiler/python/python_generator.h \
  150. google/protobuf/compiler/ruby/ruby_generator.h \
  151. google/protobuf/util/type_resolver.h \
  152. google/protobuf/util/field_comparator.h \
  153. google/protobuf/util/field_mask_util.h \
  154. google/protobuf/util/json_util.h \
  155. google/protobuf/util/time_util.h \
  156. google/protobuf/util/type_resolver_util.h \
  157. google/protobuf/util/message_differencer.h
  158. lib_LTLIBRARIES = libprotobuf-lite.la libprotobuf.la libprotoc.la
  159. libprotobuf_lite_la_LIBADD = $(PTHREAD_LIBS)
  160. libprotobuf_lite_la_LDFLAGS = -version-info 10:0:0 -export-dynamic -no-undefined
  161. libprotobuf_lite_la_SOURCES = \
  162. google/protobuf/stubs/atomicops_internals_x86_gcc.cc \
  163. google/protobuf/stubs/atomicops_internals_x86_msvc.cc \
  164. google/protobuf/stubs/bytestream.cc \
  165. google/protobuf/stubs/bytestream.h \
  166. google/protobuf/stubs/common.cc \
  167. google/protobuf/stubs/hash.h \
  168. google/protobuf/stubs/int128.cc \
  169. google/protobuf/stubs/int128.h \
  170. google/protobuf/stubs/map_util.h \
  171. google/protobuf/stubs/mathutil.h \
  172. google/protobuf/stubs/once.cc \
  173. google/protobuf/stubs/shared_ptr.h \
  174. google/protobuf/stubs/status.cc \
  175. google/protobuf/stubs/status.h \
  176. google/protobuf/stubs/status_macros.h \
  177. google/protobuf/stubs/statusor.cc \
  178. google/protobuf/stubs/statusor.h \
  179. google/protobuf/stubs/stringpiece.cc \
  180. google/protobuf/stubs/stringpiece.h \
  181. google/protobuf/stubs/stringprintf.cc \
  182. google/protobuf/stubs/stringprintf.h \
  183. google/protobuf/stubs/structurally_valid.cc \
  184. google/protobuf/stubs/strutil.cc \
  185. google/protobuf/stubs/strutil.h \
  186. google/protobuf/stubs/time.cc \
  187. google/protobuf/stubs/time.h \
  188. google/protobuf/arena.cc \
  189. google/protobuf/arenastring.cc \
  190. google/protobuf/extension_set.cc \
  191. google/protobuf/generated_message_util.cc \
  192. google/protobuf/message_lite.cc \
  193. google/protobuf/repeated_field.cc \
  194. google/protobuf/wire_format_lite.cc \
  195. google/protobuf/io/coded_stream.cc \
  196. google/protobuf/io/coded_stream_inl.h \
  197. google/protobuf/io/zero_copy_stream.cc \
  198. google/protobuf/io/zero_copy_stream_impl_lite.cc
  199. libprotobuf_la_LIBADD = $(PTHREAD_LIBS)
  200. libprotobuf_la_LDFLAGS = -version-info 10:0:0 -export-dynamic -no-undefined
  201. libprotobuf_la_SOURCES = \
  202. $(libprotobuf_lite_la_SOURCES) \
  203. google/protobuf/any.pb.cc \
  204. google/protobuf/api.pb.cc \
  205. google/protobuf/stubs/mathlimits.cc \
  206. google/protobuf/stubs/mathlimits.h \
  207. google/protobuf/any.cc \
  208. google/protobuf/descriptor.cc \
  209. google/protobuf/descriptor_database.cc \
  210. google/protobuf/descriptor.pb.cc \
  211. google/protobuf/duration.pb.cc \
  212. google/protobuf/dynamic_message.cc \
  213. google/protobuf/empty.pb.cc \
  214. google/protobuf/extension_set_heavy.cc \
  215. google/protobuf/field_mask.pb.cc \
  216. google/protobuf/generated_message_reflection.cc \
  217. google/protobuf/map_field.cc \
  218. google/protobuf/message.cc \
  219. google/protobuf/reflection_internal.h \
  220. google/protobuf/reflection_ops.cc \
  221. google/protobuf/service.cc \
  222. google/protobuf/source_context.pb.cc \
  223. google/protobuf/struct.pb.cc \
  224. google/protobuf/stubs/substitute.cc \
  225. google/protobuf/stubs/substitute.h \
  226. google/protobuf/text_format.cc \
  227. google/protobuf/timestamp.pb.cc \
  228. google/protobuf/type.pb.cc \
  229. google/protobuf/unknown_field_set.cc \
  230. google/protobuf/wire_format.cc \
  231. google/protobuf/wrappers.pb.cc \
  232. google/protobuf/io/gzip_stream.cc \
  233. google/protobuf/io/printer.cc \
  234. google/protobuf/io/strtod.cc \
  235. google/protobuf/io/tokenizer.cc \
  236. google/protobuf/io/zero_copy_stream_impl.cc \
  237. google/protobuf/compiler/importer.cc \
  238. google/protobuf/compiler/parser.cc \
  239. google/protobuf/util/field_comparator.cc \
  240. google/protobuf/util/field_mask_util.cc \
  241. google/protobuf/util/internal/constants.h \
  242. google/protobuf/util/internal/datapiece.cc \
  243. google/protobuf/util/internal/datapiece.h \
  244. google/protobuf/util/internal/default_value_objectwriter.cc \
  245. google/protobuf/util/internal/default_value_objectwriter.h \
  246. google/protobuf/util/internal/error_listener.cc \
  247. google/protobuf/util/internal/error_listener.h \
  248. google/protobuf/util/internal/expecting_objectwriter.h \
  249. google/protobuf/util/internal/field_mask_utility.cc \
  250. google/protobuf/util/internal/field_mask_utility.h \
  251. google/protobuf/util/internal/json_escaping.cc \
  252. google/protobuf/util/internal/json_escaping.h \
  253. google/protobuf/util/internal/json_objectwriter.cc \
  254. google/protobuf/util/internal/json_objectwriter.h \
  255. google/protobuf/util/internal/json_stream_parser.cc \
  256. google/protobuf/util/internal/json_stream_parser.h \
  257. google/protobuf/util/internal/location_tracker.h \
  258. google/protobuf/util/internal/mock_error_listener.h \
  259. google/protobuf/util/internal/object_location_tracker.h \
  260. google/protobuf/util/internal/object_source.h \
  261. google/protobuf/util/internal/object_writer.cc \
  262. google/protobuf/util/internal/object_writer.h \
  263. google/protobuf/util/internal/protostream_objectsource.cc \
  264. google/protobuf/util/internal/protostream_objectsource.h \
  265. google/protobuf/util/internal/protostream_objectwriter.cc \
  266. google/protobuf/util/internal/protostream_objectwriter.h \
  267. google/protobuf/util/internal/proto_writer.cc \
  268. google/protobuf/util/internal/proto_writer.h \
  269. google/protobuf/util/internal/structured_objectwriter.h \
  270. google/protobuf/util/internal/type_info.cc \
  271. google/protobuf/util/internal/type_info.h \
  272. google/protobuf/util/internal/type_info_test_helper.cc \
  273. google/protobuf/util/internal/type_info_test_helper.h \
  274. google/protobuf/util/internal/utility.cc \
  275. google/protobuf/util/internal/utility.h \
  276. google/protobuf/util/json_util.cc \
  277. google/protobuf/util/message_differencer.cc \
  278. google/protobuf/util/time_util.cc \
  279. google/protobuf/util/type_resolver_util.cc
  280. nodist_libprotobuf_la_SOURCES = $(nodist_libprotobuf_lite_la_SOURCES)
  281. libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la
  282. libprotoc_la_LDFLAGS = -version-info 10:0:0 -export-dynamic -no-undefined
  283. libprotoc_la_SOURCES = \
  284. google/protobuf/compiler/code_generator.cc \
  285. google/protobuf/compiler/command_line_interface.cc \
  286. google/protobuf/compiler/plugin.cc \
  287. google/protobuf/compiler/plugin.pb.cc \
  288. google/protobuf/compiler/subprocess.cc \
  289. google/protobuf/compiler/subprocess.h \
  290. google/protobuf/compiler/zip_writer.cc \
  291. google/protobuf/compiler/zip_writer.h \
  292. google/protobuf/compiler/cpp/cpp_enum.cc \
  293. google/protobuf/compiler/cpp/cpp_enum.h \
  294. google/protobuf/compiler/cpp/cpp_enum_field.cc \
  295. google/protobuf/compiler/cpp/cpp_enum_field.h \
  296. google/protobuf/compiler/cpp/cpp_extension.cc \
  297. google/protobuf/compiler/cpp/cpp_extension.h \
  298. google/protobuf/compiler/cpp/cpp_field.cc \
  299. google/protobuf/compiler/cpp/cpp_field.h \
  300. google/protobuf/compiler/cpp/cpp_file.cc \
  301. google/protobuf/compiler/cpp/cpp_file.h \
  302. google/protobuf/compiler/cpp/cpp_generator.cc \
  303. google/protobuf/compiler/cpp/cpp_helpers.cc \
  304. google/protobuf/compiler/cpp/cpp_helpers.h \
  305. google/protobuf/compiler/cpp/cpp_map_field.cc \
  306. google/protobuf/compiler/cpp/cpp_map_field.h \
  307. google/protobuf/compiler/cpp/cpp_message.cc \
  308. google/protobuf/compiler/cpp/cpp_message.h \
  309. google/protobuf/compiler/cpp/cpp_message_field.cc \
  310. google/protobuf/compiler/cpp/cpp_message_field.h \
  311. google/protobuf/compiler/cpp/cpp_options.h \
  312. google/protobuf/compiler/cpp/cpp_primitive_field.cc \
  313. google/protobuf/compiler/cpp/cpp_primitive_field.h \
  314. google/protobuf/compiler/cpp/cpp_service.cc \
  315. google/protobuf/compiler/cpp/cpp_service.h \
  316. google/protobuf/compiler/cpp/cpp_string_field.cc \
  317. google/protobuf/compiler/cpp/cpp_string_field.h \
  318. google/protobuf/compiler/java/java_context.cc \
  319. google/protobuf/compiler/java/java_context.h \
  320. google/protobuf/compiler/java/java_enum.cc \
  321. google/protobuf/compiler/java/java_enum_lite.cc \
  322. google/protobuf/compiler/java/java_enum_field.cc \
  323. google/protobuf/compiler/java/java_enum_field.h \
  324. google/protobuf/compiler/java/java_enum_field_lite.cc \
  325. google/protobuf/compiler/java/java_enum_field_lite.h \
  326. google/protobuf/compiler/java/java_enum.h \
  327. google/protobuf/compiler/java/java_enum_lite.h \
  328. google/protobuf/compiler/java/java_extension.cc \
  329. google/protobuf/compiler/java/java_extension.h \
  330. google/protobuf/compiler/java/java_extension_lite.cc \
  331. google/protobuf/compiler/java/java_extension_lite.h \
  332. google/protobuf/compiler/java/java_field.cc \
  333. google/protobuf/compiler/java/java_field.h \
  334. google/protobuf/compiler/java/java_file.cc \
  335. google/protobuf/compiler/java/java_file.h \
  336. google/protobuf/compiler/java/java_generator.cc \
  337. google/protobuf/compiler/java/java_generator_factory.cc \
  338. google/protobuf/compiler/java/java_generator_factory.h \
  339. google/protobuf/compiler/java/java_helpers.cc \
  340. google/protobuf/compiler/java/java_helpers.h \
  341. google/protobuf/compiler/java/java_lazy_message_field.cc \
  342. google/protobuf/compiler/java/java_lazy_message_field.h \
  343. google/protobuf/compiler/java/java_lazy_message_field_lite.cc\
  344. google/protobuf/compiler/java/java_lazy_message_field_lite.h \
  345. google/protobuf/compiler/java/java_map_field.cc \
  346. google/protobuf/compiler/java/java_map_field.h \
  347. google/protobuf/compiler/java/java_map_field_lite.cc \
  348. google/protobuf/compiler/java/java_map_field_lite.h \
  349. google/protobuf/compiler/java/java_message.cc \
  350. google/protobuf/compiler/java/java_message_lite.cc \
  351. google/protobuf/compiler/java/java_message_builder.cc \
  352. google/protobuf/compiler/java/java_message_builder_lite.cc \
  353. google/protobuf/compiler/java/java_message_field.cc \
  354. google/protobuf/compiler/java/java_message_field.h \
  355. google/protobuf/compiler/java/java_message_field_lite.cc \
  356. google/protobuf/compiler/java/java_message_field_lite.h \
  357. google/protobuf/compiler/java/java_message.h \
  358. google/protobuf/compiler/java/java_message_lite.h \
  359. google/protobuf/compiler/java/java_message_builder.h \
  360. google/protobuf/compiler/java/java_message_builder_lite.h \
  361. google/protobuf/compiler/java/java_name_resolver.cc \
  362. google/protobuf/compiler/java/java_name_resolver.h \
  363. google/protobuf/compiler/java/java_options.h \
  364. google/protobuf/compiler/java/java_primitive_field.cc \
  365. google/protobuf/compiler/java/java_primitive_field.h \
  366. google/protobuf/compiler/java/java_primitive_field_lite.cc \
  367. google/protobuf/compiler/java/java_primitive_field_lite.h \
  368. google/protobuf/compiler/java/java_shared_code_generator.cc \
  369. google/protobuf/compiler/java/java_shared_code_generator.h \
  370. google/protobuf/compiler/java/java_service.cc \
  371. google/protobuf/compiler/java/java_service.h \
  372. google/protobuf/compiler/java/java_string_field.cc \
  373. google/protobuf/compiler/java/java_string_field.h \
  374. google/protobuf/compiler/java/java_string_field_lite.cc \
  375. google/protobuf/compiler/java/java_string_field_lite.h \
  376. google/protobuf/compiler/java/java_doc_comment.cc \
  377. google/protobuf/compiler/java/java_doc_comment.h \
  378. google/protobuf/compiler/js/js_generator.cc \
  379. google/protobuf/compiler/javanano/javanano_enum.cc \
  380. google/protobuf/compiler/javanano/javanano_enum.h \
  381. google/protobuf/compiler/javanano/javanano_enum_field.cc \
  382. google/protobuf/compiler/javanano/javanano_enum_field.h \
  383. google/protobuf/compiler/javanano/javanano_extension.cc \
  384. google/protobuf/compiler/javanano/javanano_extension.h \
  385. google/protobuf/compiler/javanano/javanano_field.cc \
  386. google/protobuf/compiler/javanano/javanano_field.h \
  387. google/protobuf/compiler/javanano/javanano_file.cc \
  388. google/protobuf/compiler/javanano/javanano_file.h \
  389. google/protobuf/compiler/javanano/javanano_generator.cc \
  390. google/protobuf/compiler/javanano/javanano_generator.h \
  391. google/protobuf/compiler/javanano/javanano_helpers.cc \
  392. google/protobuf/compiler/javanano/javanano_helpers.h \
  393. google/protobuf/compiler/javanano/javanano_map_field.cc \
  394. google/protobuf/compiler/javanano/javanano_map_field.h \
  395. google/protobuf/compiler/javanano/javanano_message.cc \
  396. google/protobuf/compiler/javanano/javanano_message.h \
  397. google/protobuf/compiler/javanano/javanano_message_field.cc \
  398. google/protobuf/compiler/javanano/javanano_message_field.h \
  399. google/protobuf/compiler/javanano/javanano_params.h \
  400. google/protobuf/compiler/javanano/javanano_primitive_field.cc \
  401. google/protobuf/compiler/javanano/javanano_primitive_field.h \
  402. google/protobuf/compiler/objectivec/objectivec_enum.cc \
  403. google/protobuf/compiler/objectivec/objectivec_enum.h \
  404. google/protobuf/compiler/objectivec/objectivec_enum_field.cc \
  405. google/protobuf/compiler/objectivec/objectivec_enum_field.h \
  406. google/protobuf/compiler/objectivec/objectivec_extension.cc \
  407. google/protobuf/compiler/objectivec/objectivec_extension.h \
  408. google/protobuf/compiler/objectivec/objectivec_field.cc \
  409. google/protobuf/compiler/objectivec/objectivec_field.h \
  410. google/protobuf/compiler/objectivec/objectivec_file.cc \
  411. google/protobuf/compiler/objectivec/objectivec_file.h \
  412. google/protobuf/compiler/objectivec/objectivec_generator.cc \
  413. google/protobuf/compiler/objectivec/objectivec_helpers.cc \
  414. google/protobuf/compiler/objectivec/objectivec_helpers.h \
  415. google/protobuf/compiler/objectivec/objectivec_map_field.cc \
  416. google/protobuf/compiler/objectivec/objectivec_map_field.h \
  417. google/protobuf/compiler/objectivec/objectivec_message.cc \
  418. google/protobuf/compiler/objectivec/objectivec_message.h \
  419. google/protobuf/compiler/objectivec/objectivec_message_field.cc \
  420. google/protobuf/compiler/objectivec/objectivec_message_field.h \
  421. google/protobuf/compiler/objectivec/objectivec_oneof.cc \
  422. google/protobuf/compiler/objectivec/objectivec_oneof.h \
  423. google/protobuf/compiler/objectivec/objectivec_primitive_field.cc \
  424. google/protobuf/compiler/objectivec/objectivec_primitive_field.h \
  425. google/protobuf/compiler/python/python_generator.cc \
  426. google/protobuf/compiler/ruby/ruby_generator.cc \
  427. google/protobuf/compiler/csharp/csharp_doc_comment.cc \
  428. google/protobuf/compiler/csharp/csharp_doc_comment.h \
  429. google/protobuf/compiler/csharp/csharp_enum.cc \
  430. google/protobuf/compiler/csharp/csharp_enum.h \
  431. google/protobuf/compiler/csharp/csharp_enum_field.cc \
  432. google/protobuf/compiler/csharp/csharp_enum_field.h \
  433. google/protobuf/compiler/csharp/csharp_field_base.cc \
  434. google/protobuf/compiler/csharp/csharp_field_base.h \
  435. google/protobuf/compiler/csharp/csharp_generator.cc \
  436. google/protobuf/compiler/csharp/csharp_helpers.cc \
  437. google/protobuf/compiler/csharp/csharp_helpers.h \
  438. google/protobuf/compiler/csharp/csharp_map_field.cc \
  439. google/protobuf/compiler/csharp/csharp_map_field.h \
  440. google/protobuf/compiler/csharp/csharp_message.cc \
  441. google/protobuf/compiler/csharp/csharp_message.h \
  442. google/protobuf/compiler/csharp/csharp_message_field.cc \
  443. google/protobuf/compiler/csharp/csharp_message_field.h \
  444. google/protobuf/compiler/csharp/csharp_options.h \
  445. google/protobuf/compiler/csharp/csharp_primitive_field.cc \
  446. google/protobuf/compiler/csharp/csharp_primitive_field.h \
  447. google/protobuf/compiler/csharp/csharp_reflection_class.cc \
  448. google/protobuf/compiler/csharp/csharp_reflection_class.h \
  449. google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc \
  450. google/protobuf/compiler/csharp/csharp_repeated_enum_field.h \
  451. google/protobuf/compiler/csharp/csharp_repeated_message_field.cc \
  452. google/protobuf/compiler/csharp/csharp_repeated_message_field.h \
  453. google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc \
  454. google/protobuf/compiler/csharp/csharp_repeated_primitive_field.h \
  455. google/protobuf/compiler/csharp/csharp_source_generator_base.cc \
  456. google/protobuf/compiler/csharp/csharp_source_generator_base.h \
  457. google/protobuf/compiler/csharp/csharp_wrapper_field.cc \
  458. google/protobuf/compiler/csharp/csharp_wrapper_field.h
  459. bin_PROGRAMS = protoc
  460. protoc_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la
  461. protoc_SOURCES = google/protobuf/compiler/main.cc
  462. # Tests ==============================================================
  463. protoc_inputs = \
  464. google/protobuf/any_test.proto \
  465. google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto \
  466. google/protobuf/map_lite_unittest.proto \
  467. google/protobuf/map_proto2_unittest.proto \
  468. google/protobuf/map_unittest.proto \
  469. google/protobuf/unittest_arena.proto \
  470. google/protobuf/unittest_custom_options.proto \
  471. google/protobuf/unittest_drop_unknown_fields.proto \
  472. google/protobuf/unittest_embed_optimize_for.proto \
  473. google/protobuf/unittest_empty.proto \
  474. google/protobuf/unittest_enormous_descriptor.proto \
  475. google/protobuf/unittest_import_lite.proto \
  476. google/protobuf/unittest_import.proto \
  477. google/protobuf/unittest_import_public_lite.proto \
  478. google/protobuf/unittest_import_public.proto \
  479. google/protobuf/unittest_lite_imports_nonlite.proto \
  480. google/protobuf/unittest_lite.proto \
  481. google/protobuf/unittest_mset.proto \
  482. google/protobuf/unittest_mset_wire_format.proto \
  483. google/protobuf/unittest_no_arena_lite.proto \
  484. google/protobuf/unittest_no_arena_import.proto \
  485. google/protobuf/unittest_no_arena.proto \
  486. google/protobuf/unittest_no_field_presence.proto \
  487. google/protobuf/unittest_no_generic_services.proto \
  488. google/protobuf/unittest_optimize_for.proto \
  489. google/protobuf/unittest_preserve_unknown_enum2.proto \
  490. google/protobuf/unittest_preserve_unknown_enum.proto \
  491. google/protobuf/unittest.proto \
  492. google/protobuf/unittest_proto3_arena.proto \
  493. google/protobuf/unittest_proto3_arena_lite.proto \
  494. google/protobuf/unittest_proto3_lite.proto \
  495. google/protobuf/unittest_well_known_types.proto \
  496. google/protobuf/util/internal/testdata/anys.proto \
  497. google/protobuf/util/internal/testdata/books.proto \
  498. google/protobuf/util/internal/testdata/default_value.proto \
  499. google/protobuf/util/internal/testdata/default_value_test.proto \
  500. google/protobuf/util/internal/testdata/field_mask.proto \
  501. google/protobuf/util/internal/testdata/maps.proto \
  502. google/protobuf/util/internal/testdata/oneofs.proto \
  503. google/protobuf/util/internal/testdata/struct.proto \
  504. google/protobuf/util/internal/testdata/timestamp_duration.proto \
  505. google/protobuf/util/json_format_proto3.proto \
  506. google/protobuf/util/message_differencer_unittest.proto \
  507. google/protobuf/compiler/cpp/cpp_test_large_enum_value.proto
  508. EXTRA_DIST = \
  509. $(protoc_inputs) \
  510. solaris/libstdc++.la \
  511. google/protobuf/io/gzip_stream.h \
  512. google/protobuf/io/gzip_stream_unittest.sh \
  513. google/protobuf/testdata/golden_message \
  514. google/protobuf/testdata/golden_message_oneof_implemented \
  515. google/protobuf/testdata/golden_message_proto3 \
  516. google/protobuf/testdata/golden_packed_fields_message \
  517. google/protobuf/testdata/bad_utf8_string \
  518. google/protobuf/testdata/map_test_data.txt \
  519. google/protobuf/testdata/text_format_unittest_data.txt \
  520. google/protobuf/testdata/text_format_unittest_data_oneof_implemented.txt \
  521. google/protobuf/testdata/text_format_unittest_data_pointy.txt \
  522. google/protobuf/testdata/text_format_unittest_data_pointy_oneof.txt \
  523. google/protobuf/testdata/text_format_unittest_extensions_data.txt \
  524. google/protobuf/testdata/text_format_unittest_extensions_data_pointy.txt \
  525. google/protobuf/package_info.h \
  526. google/protobuf/io/package_info.h \
  527. google/protobuf/compiler/ruby/ruby_generated_code.proto \
  528. google/protobuf/compiler/ruby/ruby_generated_code.rb \
  529. google/protobuf/compiler/package_info.h \
  530. google/protobuf/compiler/zip_output_unittest.sh
  531. protoc_lite_outputs = \
  532. google/protobuf/map_lite_unittest.pb.cc \
  533. google/protobuf/map_lite_unittest.pb.h \
  534. google/protobuf/unittest_lite.pb.cc \
  535. google/protobuf/unittest_lite.pb.h \
  536. google/protobuf/unittest_no_arena_lite.pb.cc \
  537. google/protobuf/unittest_no_arena_lite.pb.h \
  538. google/protobuf/unittest_import_lite.pb.cc \
  539. google/protobuf/unittest_import_lite.pb.h \
  540. google/protobuf/unittest_import_public_lite.pb.cc \
  541. google/protobuf/unittest_import_public_lite.pb.h
  542. protoc_outputs = \
  543. $(protoc_lite_outputs) \
  544. google/protobuf/any_test.pb.cc \
  545. google/protobuf/any_test.pb.h \
  546. google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.cc \
  547. google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h \
  548. google/protobuf/compiler/cpp/cpp_test_large_enum_value.pb.cc \
  549. google/protobuf/compiler/cpp/cpp_test_large_enum_value.pb.h \
  550. google/protobuf/map_proto2_unittest.pb.cc \
  551. google/protobuf/map_proto2_unittest.pb.h \
  552. google/protobuf/map_unittest.pb.cc \
  553. google/protobuf/map_unittest.pb.h \
  554. google/protobuf/unittest_arena.pb.cc \
  555. google/protobuf/unittest_arena.pb.h \
  556. google/protobuf/unittest_custom_options.pb.cc \
  557. google/protobuf/unittest_custom_options.pb.h \
  558. google/protobuf/unittest_drop_unknown_fields.pb.cc \
  559. google/protobuf/unittest_drop_unknown_fields.pb.h \
  560. google/protobuf/unittest_embed_optimize_for.pb.cc \
  561. google/protobuf/unittest_embed_optimize_for.pb.h \
  562. google/protobuf/unittest_empty.pb.cc \
  563. google/protobuf/unittest_empty.pb.h \
  564. google/protobuf/unittest_enormous_descriptor.pb.cc \
  565. google/protobuf/unittest_enormous_descriptor.pb.h \
  566. google/protobuf/unittest_import.pb.cc \
  567. google/protobuf/unittest_import.pb.h \
  568. google/protobuf/unittest_import_public.pb.cc \
  569. google/protobuf/unittest_import_public.pb.h \
  570. google/protobuf/unittest_lite_imports_nonlite.pb.cc \
  571. google/protobuf/unittest_lite_imports_nonlite.pb.h \
  572. google/protobuf/unittest_mset.pb.cc \
  573. google/protobuf/unittest_mset.pb.h \
  574. google/protobuf/unittest_mset_wire_format.pb.cc \
  575. google/protobuf/unittest_mset_wire_format.pb.h \
  576. google/protobuf/unittest_no_arena_import.pb.cc \
  577. google/protobuf/unittest_no_arena_import.pb.h \
  578. google/protobuf/unittest_no_arena.pb.cc \
  579. google/protobuf/unittest_no_arena.pb.h \
  580. google/protobuf/unittest_no_field_presence.pb.cc \
  581. google/protobuf/unittest_no_field_presence.pb.h \
  582. google/protobuf/unittest_no_generic_services.pb.cc \
  583. google/protobuf/unittest_no_generic_services.pb.h \
  584. google/protobuf/unittest_optimize_for.pb.cc \
  585. google/protobuf/unittest_optimize_for.pb.h \
  586. google/protobuf/unittest.pb.cc \
  587. google/protobuf/unittest.pb.h \
  588. google/protobuf/unittest_preserve_unknown_enum2.pb.cc \
  589. google/protobuf/unittest_preserve_unknown_enum2.pb.h \
  590. google/protobuf/unittest_preserve_unknown_enum.pb.cc \
  591. google/protobuf/unittest_preserve_unknown_enum.pb.h \
  592. google/protobuf/unittest_proto3_arena.pb.cc \
  593. google/protobuf/unittest_proto3_arena.pb.h \
  594. google/protobuf/unittest_proto3_arena_lite.pb.cc \
  595. google/protobuf/unittest_proto3_arena_lite.pb.h \
  596. google/protobuf/unittest_proto3_lite.pb.cc \
  597. google/protobuf/unittest_proto3_lite.pb.h \
  598. google/protobuf/unittest_well_known_types.pb.cc \
  599. google/protobuf/unittest_well_known_types.pb.h \
  600. google/protobuf/util/internal/testdata/anys.pb.cc \
  601. google/protobuf/util/internal/testdata/anys.pb.h \
  602. google/protobuf/util/internal/testdata/books.pb.cc \
  603. google/protobuf/util/internal/testdata/books.pb.h \
  604. google/protobuf/util/internal/testdata/default_value.pb.cc \
  605. google/protobuf/util/internal/testdata/default_value.pb.h \
  606. google/protobuf/util/internal/testdata/default_value_test.pb.cc \
  607. google/protobuf/util/internal/testdata/default_value_test.pb.h \
  608. google/protobuf/util/internal/testdata/field_mask.pb.cc \
  609. google/protobuf/util/internal/testdata/field_mask.pb.h \
  610. google/protobuf/util/internal/testdata/maps.pb.cc \
  611. google/protobuf/util/internal/testdata/maps.pb.h \
  612. google/protobuf/util/internal/testdata/oneofs.pb.cc \
  613. google/protobuf/util/internal/testdata/oneofs.pb.h \
  614. google/protobuf/util/internal/testdata/struct.pb.cc \
  615. google/protobuf/util/internal/testdata/struct.pb.h \
  616. google/protobuf/util/internal/testdata/timestamp_duration.pb.cc \
  617. google/protobuf/util/internal/testdata/timestamp_duration.pb.h \
  618. google/protobuf/util/json_format_proto3.pb.cc \
  619. google/protobuf/util/json_format_proto3.pb.h \
  620. google/protobuf/util/message_differencer_unittest.pb.cc \
  621. google/protobuf/util/message_differencer_unittest.pb.h
  622. BUILT_SOURCES = $(protoc_outputs)
  623. if USE_EXTERNAL_PROTOC
  624. unittest_proto_middleman: $(protoc_inputs)
  625. $(PROTOC) -I$(srcdir) --cpp_out=. $^
  626. touch unittest_proto_middleman
  627. else
  628. # We have to cd to $(srcdir) before executing protoc because $(protoc_inputs) is
  629. # relative to srcdir, which may not be the same as the current directory when
  630. # building out-of-tree.
  631. unittest_proto_middleman: protoc$(EXEEXT) $(protoc_inputs)
  632. oldpwd=`pwd` && ( cd $(srcdir) && $$oldpwd/protoc$(EXEEXT) -I. --cpp_out=$$oldpwd $(protoc_inputs) )
  633. touch unittest_proto_middleman
  634. endif
  635. $(protoc_outputs): unittest_proto_middleman
  636. COMMON_TEST_SOURCES = \
  637. google/protobuf/arena_test_util.cc \
  638. google/protobuf/arena_test_util.h \
  639. google/protobuf/map_test_util.cc \
  640. google/protobuf/map_test_util.h \
  641. google/protobuf/map_test_util_impl.h \
  642. google/protobuf/test_util.cc \
  643. google/protobuf/test_util.h \
  644. google/protobuf/testing/googletest.cc \
  645. google/protobuf/testing/googletest.h \
  646. google/protobuf/testing/file.cc \
  647. google/protobuf/testing/file.h
  648. check_PROGRAMS = protoc protobuf-test protobuf-lazy-descriptor-test \
  649. protobuf-lite-test test_plugin protobuf-lite-arena-test \
  650. $(GZCHECKPROGRAMS)
  651. protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
  652. ../gmock/gtest/lib/libgtest.la \
  653. ../gmock/lib/libgmock.la \
  654. ../gmock/lib/libgmock_main.la
  655. protobuf_test_CPPFLAGS = -I$(srcdir)/../gmock/gtest/include \
  656. -I$(srcdir)/../gmock/include
  657. # Disable optimization for tests unless the user explicitly asked for it,
  658. # since test_util.cc takes forever to compile with optimization (with GCC).
  659. # See configure.ac for more info.
  660. protobuf_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
  661. protobuf_test_SOURCES = \
  662. google/protobuf/stubs/bytestream_unittest.cc \
  663. google/protobuf/stubs/common_unittest.cc \
  664. google/protobuf/stubs/int128_unittest.cc \
  665. google/protobuf/stubs/once_unittest.cc \
  666. google/protobuf/stubs/statusor_test.cc \
  667. google/protobuf/stubs/status_test.cc \
  668. google/protobuf/stubs/stringpiece_unittest.cc \
  669. google/protobuf/stubs/stringprintf_unittest.cc \
  670. google/protobuf/stubs/structurally_valid_unittest.cc \
  671. google/protobuf/stubs/strutil_unittest.cc \
  672. google/protobuf/stubs/template_util_unittest.cc \
  673. google/protobuf/stubs/time_test.cc \
  674. google/protobuf/stubs/type_traits_unittest.cc \
  675. google/protobuf/any_test.cc \
  676. google/protobuf/arenastring_unittest.cc \
  677. google/protobuf/arena_unittest.cc \
  678. google/protobuf/descriptor_database_unittest.cc \
  679. google/protobuf/descriptor_unittest.cc \
  680. google/protobuf/drop_unknown_fields_test.cc \
  681. google/protobuf/dynamic_message_unittest.cc \
  682. google/protobuf/extension_set_unittest.cc \
  683. google/protobuf/generated_message_reflection_unittest.cc \
  684. google/protobuf/map_field_test.cc \
  685. google/protobuf/map_test.cc \
  686. google/protobuf/message_unittest.cc \
  687. google/protobuf/no_field_presence_test.cc \
  688. google/protobuf/preserve_unknown_enum_test.cc \
  689. google/protobuf/proto3_arena_unittest.cc \
  690. google/protobuf/proto3_arena_lite_unittest.cc \
  691. google/protobuf/proto3_lite_unittest.cc \
  692. google/protobuf/reflection_ops_unittest.cc \
  693. google/protobuf/repeated_field_reflection_unittest.cc \
  694. google/protobuf/repeated_field_unittest.cc \
  695. google/protobuf/text_format_unittest.cc \
  696. google/protobuf/unknown_field_set_unittest.cc \
  697. google/protobuf/well_known_types_unittest.cc \
  698. google/protobuf/wire_format_unittest.cc \
  699. google/protobuf/io/coded_stream_unittest.cc \
  700. google/protobuf/io/printer_unittest.cc \
  701. google/protobuf/io/tokenizer_unittest.cc \
  702. google/protobuf/io/zero_copy_stream_unittest.cc \
  703. google/protobuf/compiler/command_line_interface_unittest.cc \
  704. google/protobuf/compiler/importer_unittest.cc \
  705. google/protobuf/compiler/mock_code_generator.cc \
  706. google/protobuf/compiler/mock_code_generator.h \
  707. google/protobuf/compiler/parser_unittest.cc \
  708. google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc \
  709. google/protobuf/compiler/cpp/cpp_unittest.h \
  710. google/protobuf/compiler/cpp/cpp_unittest.cc \
  711. google/protobuf/compiler/cpp/cpp_plugin_unittest.cc \
  712. google/protobuf/compiler/cpp/metadata_test.cc \
  713. google/protobuf/compiler/java/java_plugin_unittest.cc \
  714. google/protobuf/compiler/java/java_doc_comment_unittest.cc \
  715. google/protobuf/compiler/objectivec/objectivec_helpers_unittest.cc \
  716. google/protobuf/compiler/python/python_plugin_unittest.cc \
  717. google/protobuf/compiler/ruby/ruby_generator_unittest.cc \
  718. google/protobuf/compiler/csharp/csharp_generator_unittest.cc \
  719. google/protobuf/util/field_comparator_test.cc \
  720. google/protobuf/util/field_mask_util_test.cc \
  721. google/protobuf/util/internal/default_value_objectwriter_test.cc \
  722. google/protobuf/util/internal/json_objectwriter_test.cc \
  723. google/protobuf/util/internal/json_stream_parser_test.cc \
  724. google/protobuf/util/internal/protostream_objectsource_test.cc \
  725. google/protobuf/util/internal/protostream_objectwriter_test.cc \
  726. google/protobuf/util/internal/type_info_test_helper.cc \
  727. google/protobuf/util/json_util_test.cc \
  728. google/protobuf/util/message_differencer_unittest.cc \
  729. google/protobuf/util/time_util_test.cc \
  730. google/protobuf/util/type_resolver_util_test.cc \
  731. $(COMMON_TEST_SOURCES)
  732. nodist_protobuf_test_SOURCES = $(protoc_outputs)
  733. # Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined.
  734. protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \
  735. libprotoc.la \
  736. ../gmock/gtest/lib/libgtest.la \
  737. ../gmock/lib/libgmock.la \
  738. ../gmock/lib/libgmock_main.la
  739. protobuf_lazy_descriptor_test_CPPFLAGS = -I$(srcdir)/../gmock/include \
  740. -I$(srcdir)/../gmock/gtest/include \
  741. -DPROTOBUF_TEST_NO_DESCRIPTORS
  742. protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
  743. protobuf_lazy_descriptor_test_SOURCES = \
  744. google/protobuf/compiler/cpp/cpp_unittest.cc \
  745. $(COMMON_TEST_SOURCES)
  746. nodist_protobuf_lazy_descriptor_test_SOURCES = $(protoc_outputs)
  747. COMMON_LITE_TEST_SOURCES = \
  748. google/protobuf/arena_test_util.cc \
  749. google/protobuf/arena_test_util.h \
  750. google/protobuf/map_lite_test_util.cc \
  751. google/protobuf/map_lite_test_util.h \
  752. google/protobuf/test_util_lite.cc \
  753. google/protobuf/test_util_lite.h
  754. # Build lite_unittest separately, since it doesn't use gtest. It can't
  755. # depend on gtest because our internal version of gtest depend on proto
  756. # full runtime and we want to make sure this test builds without full
  757. # runtime.
  758. protobuf_lite_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la
  759. protobuf_lite_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
  760. protobuf_lite_test_SOURCES = \
  761. google/protobuf/lite_unittest.cc \
  762. $(COMMON_LITE_TEST_SOURCES)
  763. nodist_protobuf_lite_test_SOURCES = $(protoc_lite_outputs)
  764. # lite_arena_unittest depends on gtest because teboring@ found that without
  765. # gtest when building the test internally our memory sanitizer doesn't detect
  766. # memory leaks (don't know why).
  767. protobuf_lite_arena_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \
  768. ../gmock/gtest/lib/libgtest.la \
  769. ../gmock/lib/libgmock.la \
  770. ../gmock/lib/libgmock_main.la
  771. protobuf_lite_arena_test_CPPFLAGS = -I$(srcdir)/../gmock/include \
  772. -I$(srcdir)/../gmock/gtest/include
  773. protobuf_lite_arena_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
  774. protobuf_lite_arena_test_SOURCES = \
  775. google/protobuf/lite_arena_unittest.cc \
  776. $(COMMON_LITE_TEST_SOURCES)
  777. nodist_protobuf_lite_arena_test_SOURCES = $(protoc_lite_outputs)
  778. # Test plugin binary.
  779. test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
  780. ../gmock/gtest/lib/libgtest.la
  781. test_plugin_CPPFLAGS = -I$(srcdir)/../gmock/gtest/include
  782. test_plugin_SOURCES = \
  783. google/protobuf/compiler/mock_code_generator.cc \
  784. google/protobuf/testing/file.cc \
  785. google/protobuf/testing/file.h \
  786. google/protobuf/compiler/test_plugin.cc
  787. if HAVE_ZLIB
  788. zcgzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la
  789. zcgzip_SOURCES = google/protobuf/testing/zcgzip.cc
  790. zcgunzip_LDADD = $(PTHREAD_LIBS) libprotobuf.la
  791. zcgunzip_SOURCES = google/protobuf/testing/zcgunzip.cc
  792. endif
  793. TESTS = protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test \
  794. google/protobuf/compiler/zip_output_unittest.sh $(GZTESTS) \
  795. protobuf-lite-arena-test