CMakeLists.linux-x86_64.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. # This file was generated by the build system used internally in the Yandex monorepo.
  2. # Only simple modifications are allowed (adding source-files to targets, adding simple properties
  3. # like target_include_directories). These modifications will be ported to original
  4. # ya.make files by maintainers. Any complex modifications which can't be ported back to the
  5. # original buildsystem will not be accepted.
  6. get_built_tool_path(
  7. TOOL_grpc_cpp_bin
  8. TOOL_grpc_cpp_dependency
  9. contrib/tools/protoc/plugins/grpc_cpp
  10. grpc_cpp
  11. )
  12. get_built_tool_path(
  13. TOOL_protoc_bin
  14. TOOL_protoc_dependency
  15. contrib/tools/protoc/bin
  16. protoc
  17. )
  18. get_built_tool_path(
  19. TOOL_cpp_styleguide_bin
  20. TOOL_cpp_styleguide_dependency
  21. contrib/tools/protoc/plugins/cpp_styleguide
  22. cpp_styleguide
  23. )
  24. get_built_tool_path(
  25. TOOL_protoc_bin
  26. TOOL_protoc_dependency
  27. contrib/tools/protoc/bin
  28. protoc
  29. )
  30. get_built_tool_path(
  31. TOOL_cpp_styleguide_bin
  32. TOOL_cpp_styleguide_dependency
  33. contrib/tools/protoc/plugins/cpp_styleguide
  34. cpp_styleguide
  35. )
  36. get_built_tool_path(
  37. TOOL_protoc_bin
  38. TOOL_protoc_dependency
  39. contrib/tools/protoc/bin
  40. protoc
  41. )
  42. get_built_tool_path(
  43. TOOL_cpp_styleguide_bin
  44. TOOL_cpp_styleguide_dependency
  45. contrib/tools/protoc/plugins/cpp_styleguide
  46. cpp_styleguide
  47. )
  48. get_built_tool_path(
  49. TOOL_protoc_bin
  50. TOOL_protoc_dependency
  51. contrib/tools/protoc/bin
  52. protoc
  53. )
  54. get_built_tool_path(
  55. TOOL_cpp_styleguide_bin
  56. TOOL_cpp_styleguide_dependency
  57. contrib/tools/protoc/plugins/cpp_styleguide
  58. cpp_styleguide
  59. )
  60. get_built_tool_path(
  61. TOOL_protoc_bin
  62. TOOL_protoc_dependency
  63. contrib/tools/protoc/bin
  64. protoc
  65. )
  66. get_built_tool_path(
  67. TOOL_cpp_styleguide_bin
  68. TOOL_cpp_styleguide_dependency
  69. contrib/tools/protoc/plugins/cpp_styleguide
  70. cpp_styleguide
  71. )
  72. get_built_tool_path(
  73. TOOL_protoc_bin
  74. TOOL_protoc_dependency
  75. contrib/tools/protoc/bin
  76. protoc
  77. )
  78. get_built_tool_path(
  79. TOOL_cpp_styleguide_bin
  80. TOOL_cpp_styleguide_dependency
  81. contrib/tools/protoc/plugins/cpp_styleguide
  82. cpp_styleguide
  83. )
  84. get_built_tool_path(
  85. TOOL_protoc_bin
  86. TOOL_protoc_dependency
  87. contrib/tools/protoc/bin
  88. protoc
  89. )
  90. get_built_tool_path(
  91. TOOL_cpp_styleguide_bin
  92. TOOL_cpp_styleguide_dependency
  93. contrib/tools/protoc/plugins/cpp_styleguide
  94. cpp_styleguide
  95. )
  96. get_built_tool_path(
  97. TOOL_protoc_bin
  98. TOOL_protoc_dependency
  99. contrib/tools/protoc/bin
  100. protoc
  101. )
  102. get_built_tool_path(
  103. TOOL_cpp_styleguide_bin
  104. TOOL_cpp_styleguide_dependency
  105. contrib/tools/protoc/plugins/cpp_styleguide
  106. cpp_styleguide
  107. )
  108. add_library(contrib-libs-opentelemetry-proto)
  109. set_property(TARGET contrib-libs-opentelemetry-proto PROPERTY
  110. PROTOC_EXTRA_OUTS .grpc.pb.cc .grpc.pb.h
  111. )
  112. set_property(TARGET contrib-libs-opentelemetry-proto PROPERTY
  113. PROTO_NAMESPACE contrib/libs/opentelemetry-proto
  114. )
  115. target_include_directories(contrib-libs-opentelemetry-proto PUBLIC
  116. ${CMAKE_BINARY_DIR}/contrib/libs/opentelemetry-proto
  117. )
  118. target_link_libraries(contrib-libs-opentelemetry-proto PUBLIC
  119. contrib-libs-linux-headers
  120. contrib-libs-cxxsupp
  121. yutil
  122. contrib-libs-grpc
  123. contrib-libs-protobuf
  124. )
  125. target_proto_messages(contrib-libs-opentelemetry-proto PRIVATE
  126. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto/opentelemetry/proto/collector/logs/v1/logs_service.proto
  127. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto/opentelemetry/proto/collector/metrics/v1/metrics_service.proto
  128. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto/opentelemetry/proto/collector/trace/v1/trace_service.proto
  129. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto/opentelemetry/proto/common/v1/common.proto
  130. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto/opentelemetry/proto/logs/v1/logs.proto
  131. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto/opentelemetry/proto/metrics/v1/metrics.proto
  132. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto/opentelemetry/proto/resource/v1/resource.proto
  133. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto/opentelemetry/proto/trace/v1/trace.proto
  134. )
  135. target_proto_addincls(contrib-libs-opentelemetry-proto
  136. ./contrib/libs/opentelemetry-proto
  137. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto
  138. ${CMAKE_BINARY_DIR}
  139. ${CMAKE_SOURCE_DIR}
  140. ${CMAKE_SOURCE_DIR}/contrib/libs/opentelemetry-proto
  141. ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src
  142. ${CMAKE_BINARY_DIR}
  143. ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src
  144. )
  145. target_proto_outs(contrib-libs-opentelemetry-proto
  146. --cpp_out=${CMAKE_BINARY_DIR}/contrib/libs/opentelemetry-proto
  147. --cpp_styleguide_out=${CMAKE_BINARY_DIR}/contrib/libs/opentelemetry-proto
  148. )
  149. target_proto_plugin(contrib-libs-opentelemetry-proto
  150. grpc_cpp
  151. grpc_cpp
  152. )