CMakeLists.linux-aarch64.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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_enum_parser_bin
  26. TOOL_enum_parser_dependency
  27. tools/enum_parser/enum_parser
  28. enum_parser
  29. )
  30. add_library(cpp-unified_agent_client-proto)
  31. set_property(TARGET cpp-unified_agent_client-proto PROPERTY
  32. PROTOC_EXTRA_OUTS .grpc.pb.cc .grpc.pb.h
  33. )
  34. target_link_libraries(cpp-unified_agent_client-proto PUBLIC
  35. contrib-libs-linux-headers
  36. contrib-libs-cxxsupp
  37. yutil
  38. contrib-libs-grpc
  39. tools-enum_parser-enum_serialization_runtime
  40. contrib-libs-protobuf
  41. )
  42. target_proto_messages(cpp-unified_agent_client-proto PRIVATE
  43. ${CMAKE_SOURCE_DIR}/library/cpp/unified_agent_client/proto/unified_agent.proto
  44. )
  45. target_sources(cpp-unified_agent_client-proto PRIVATE
  46. ${CMAKE_BINARY_DIR}/library/cpp/unified_agent_client/proto/unified_agent.pb.h
  47. ${CMAKE_BINARY_DIR}/library/cpp/unified_agent_client/proto/unified_agent.grpc.pb.h
  48. )
  49. generate_enum_serilization(cpp-unified_agent_client-proto
  50. ${CMAKE_BINARY_DIR}/library/cpp/unified_agent_client/proto/unified_agent.pb.h
  51. INCLUDE_HEADERS
  52. library/cpp/unified_agent_client/proto/unified_agent.pb.h
  53. )
  54. target_proto_addincls(cpp-unified_agent_client-proto
  55. ./
  56. ${CMAKE_SOURCE_DIR}/
  57. ${CMAKE_BINARY_DIR}
  58. ${CMAKE_SOURCE_DIR}
  59. ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src
  60. ${CMAKE_BINARY_DIR}
  61. ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src
  62. )
  63. target_proto_outs(cpp-unified_agent_client-proto
  64. --cpp_out=${CMAKE_BINARY_DIR}/
  65. --cpp_styleguide_out=${CMAKE_BINARY_DIR}/
  66. )
  67. target_proto_plugin(cpp-unified_agent_client-proto
  68. grpc_cpp
  69. grpc_cpp
  70. )