Makefile.am 54 KB

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