ya.make 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. # Generated by devtools/yamaker from nixpkgs 22.05.
  2. LIBRARY()
  3. LICENSE(
  4. BSD-3-Clause AND
  5. Protobuf-License
  6. )
  7. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  8. PROVIDES(protobuf)
  9. VERSION(3.20.2)
  10. ORIGINAL_SOURCE(https://github.com/protocolbuffers/protobuf/archive/v3.20.2.tar.gz)
  11. IF (OPENSOURCE_REPLACE_PROTOBUF AND EXPORT_CMAKE)
  12. OPENSOURCE_EXPORT_REPLACEMENT(
  13. CMAKE
  14. Protobuf
  15. CMAKE_TARGET
  16. protobuf::libprotobuf
  17. protobuf::libprotoc
  18. CONAN
  19. protobuf/${OPENSOURCE_REPLACE_PROTOBUF}
  20. "&& conan-requires"
  21. protobuf/${OPENSOURCE_REPLACE_PROTOBUF}
  22. "&& conan_require_tool"
  23. protobuf/${OPENSOURCE_REPLACE_PROTOBUF}
  24. "&& conan-tool_requires"
  25. protobuf/${OPENSOURCE_REPLACE_PROTOBUF}
  26. "&& conan_import \"bin, protoc* -> ./bin\" && conan-imports 'bin, protoc* -> ./bin' && vanilla_protobuf"
  27. )
  28. ELSE()
  29. ADDINCL(
  30. GLOBAL contrib/libs/protobuf/src
  31. GLOBAL FOR
  32. proto
  33. contrib/libs/protobuf/src
  34. )
  35. ENDIF()
  36. PEERDIR(
  37. contrib/libs/zlib
  38. library/cpp/sanitizer/include
  39. )
  40. NO_COMPILER_WARNINGS()
  41. CFLAGS(
  42. -DHAVE_CONFIG_H
  43. -DHAVE_PTHREAD=1
  44. -DHAVE_ZLIB=1
  45. )
  46. IF (OS_ANDROID)
  47. EXTRALIBS(log)
  48. ENDIF()
  49. SRCS(
  50. GLOBAL src/google/protobuf/generated_message_util.cc
  51. src/google/protobuf/any.cc
  52. src/google/protobuf/any.pb.cc
  53. src/google/protobuf/any_lite.cc
  54. src/google/protobuf/api.pb.cc
  55. src/google/protobuf/arena.cc
  56. src/google/protobuf/arenastring.cc
  57. src/google/protobuf/arenaz_sampler.cc
  58. src/google/protobuf/descriptor.cc
  59. src/google/protobuf/descriptor.pb.cc
  60. src/google/protobuf/descriptor_database.cc
  61. src/google/protobuf/duration.pb.cc
  62. src/google/protobuf/dynamic_message.cc
  63. src/google/protobuf/empty.pb.cc
  64. src/google/protobuf/extension_set.cc
  65. src/google/protobuf/extension_set_heavy.cc
  66. src/google/protobuf/field_mask.pb.cc
  67. src/google/protobuf/generated_enum_util.cc
  68. src/google/protobuf/generated_message_bases.cc
  69. src/google/protobuf/generated_message_reflection.cc
  70. src/google/protobuf/generated_message_tctable_full.cc
  71. src/google/protobuf/generated_message_tctable_lite.cc
  72. src/google/protobuf/implicit_weak_message.cc
  73. src/google/protobuf/inlined_string_field.cc
  74. src/google/protobuf/io/coded_stream.cc
  75. src/google/protobuf/io/gzip_stream.cc
  76. src/google/protobuf/io/io_win32.cc
  77. src/google/protobuf/io/printer.cc
  78. src/google/protobuf/io/strtod.cc
  79. src/google/protobuf/io/tokenizer.cc
  80. src/google/protobuf/io/zero_copy_stream.cc
  81. src/google/protobuf/io/zero_copy_stream_impl.cc
  82. src/google/protobuf/io/zero_copy_stream_impl_lite.cc
  83. src/google/protobuf/json_util.cc
  84. src/google/protobuf/map.cc
  85. src/google/protobuf/map_field.cc
  86. src/google/protobuf/message.cc
  87. src/google/protobuf/message_lite.cc
  88. src/google/protobuf/messagext.cc
  89. src/google/protobuf/parse_context.cc
  90. src/google/protobuf/reflection_ops.cc
  91. src/google/protobuf/repeated_field.cc
  92. src/google/protobuf/repeated_ptr_field.cc
  93. src/google/protobuf/service.cc
  94. src/google/protobuf/source_context.pb.cc
  95. src/google/protobuf/struct.pb.cc
  96. src/google/protobuf/stubs/bytestream.cc
  97. src/google/protobuf/stubs/common.cc
  98. src/google/protobuf/stubs/int128.cc
  99. src/google/protobuf/stubs/status.cc
  100. src/google/protobuf/stubs/statusor.cc
  101. src/google/protobuf/stubs/stringpiece.cc
  102. src/google/protobuf/stubs/stringprintf.cc
  103. src/google/protobuf/stubs/structurally_valid.cc
  104. src/google/protobuf/stubs/strutil.cc
  105. src/google/protobuf/stubs/substitute.cc
  106. src/google/protobuf/stubs/time.cc
  107. src/google/protobuf/text_format.cc
  108. src/google/protobuf/timestamp.pb.cc
  109. src/google/protobuf/type.pb.cc
  110. src/google/protobuf/unknown_field_set.cc
  111. src/google/protobuf/util/delimited_message_util.cc
  112. src/google/protobuf/util/field_comparator.cc
  113. src/google/protobuf/util/field_mask_util.cc
  114. src/google/protobuf/util/internal/datapiece.cc
  115. src/google/protobuf/util/internal/default_value_objectwriter.cc
  116. src/google/protobuf/util/internal/error_listener.cc
  117. src/google/protobuf/util/internal/field_mask_utility.cc
  118. src/google/protobuf/util/internal/json_escaping.cc
  119. src/google/protobuf/util/internal/json_objectwriter.cc
  120. src/google/protobuf/util/internal/json_stream_parser.cc
  121. src/google/protobuf/util/internal/object_writer.cc
  122. src/google/protobuf/util/internal/proto_writer.cc
  123. src/google/protobuf/util/internal/protostream_objectsource.cc
  124. src/google/protobuf/util/internal/protostream_objectwriter.cc
  125. src/google/protobuf/util/internal/type_info.cc
  126. src/google/protobuf/util/internal/utility.cc
  127. src/google/protobuf/util/json_util.cc
  128. src/google/protobuf/util/message_differencer.cc
  129. src/google/protobuf/util/time_util.cc
  130. src/google/protobuf/util/type_resolver_util.cc
  131. src/google/protobuf/wire_format.cc
  132. src/google/protobuf/wire_format_lite.cc
  133. src/google/protobuf/wrappers.pb.cc
  134. )
  135. FILES(
  136. src/google/protobuf/any.proto
  137. src/google/protobuf/api.proto
  138. src/google/protobuf/descriptor.proto
  139. src/google/protobuf/duration.proto
  140. src/google/protobuf/empty.proto
  141. src/google/protobuf/field_mask.proto
  142. src/google/protobuf/source_context.proto
  143. src/google/protobuf/struct.proto
  144. src/google/protobuf/timestamp.proto
  145. src/google/protobuf/type.proto
  146. src/google/protobuf/wrappers.proto
  147. )
  148. END()
  149. RECURSE(
  150. builtin_proto
  151. )