diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
commit | b4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch) | |
tree | 6a64ab25a145265287789bceed3f59e953561206 /library/cpp/actors | |
parent | 5e837a820d5be0671fa4096a1cc1e378453e5132 (diff) | |
download | ydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz |
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/actors')
-rw-r--r-- | library/cpp/actors/core/CMakeLists.txt | 60 | ||||
-rw-r--r-- | library/cpp/actors/dnscachelib/CMakeLists.txt | 13 | ||||
-rw-r--r-- | library/cpp/actors/dnsresolver/CMakeLists.txt | 17 | ||||
-rw-r--r-- | library/cpp/actors/helpers/CMakeLists.txt | 12 | ||||
-rw-r--r-- | library/cpp/actors/http/CMakeLists.txt | 22 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/CMakeLists.txt | 48 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/mock/CMakeLists.txt | 9 | ||||
-rw-r--r-- | library/cpp/actors/memory_log/CMakeLists.txt | 11 | ||||
-rw-r--r-- | library/cpp/actors/prof/CMakeLists.txt | 11 | ||||
-rw-r--r-- | library/cpp/actors/protos/CMakeLists.txt | 16 | ||||
-rw-r--r-- | library/cpp/actors/testlib/CMakeLists.txt | 13 | ||||
-rw-r--r-- | library/cpp/actors/util/CMakeLists.txt | 10 | ||||
-rw-r--r-- | library/cpp/actors/wilson/CMakeLists.txt | 6 |
13 files changed, 248 insertions, 0 deletions
diff --git a/library/cpp/actors/core/CMakeLists.txt b/library/cpp/actors/core/CMakeLists.txt new file mode 100644 index 0000000000..8b3d80e20e --- /dev/null +++ b/library/cpp/actors/core/CMakeLists.txt @@ -0,0 +1,60 @@ +add_library(cpp-actors-core) +target_link_libraries(cpp-actors-core PUBLIC + contrib-libs-cxxsupp + yutil + tools-enum_parser-enum_serialization_runtime + cpp-actors-memory_log + cpp-actors-prof + cpp-actors-protos + cpp-actors-util + library-cpp-execprofile + cpp-json-writer + library-cpp-logger + library-cpp-lwtrace + cpp-monlib-dynamic_counters + library-cpp-svnversion + cpp-threading-future +) +target_sources(cpp-actors-core PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor_coroutine.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actorid.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actorsystem.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/ask.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/balancer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/buffer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/callstack.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/cpu_manager.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/event.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/event_pb.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/events_undelivered.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_base.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_basic.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_io.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_united.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_thread.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/interconnect.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/io_dispatcher.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/log.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/log_settings.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/mailbox.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/memory_track.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/memory_tracker.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/monotonic.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/worker_context.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/probes.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/process_stats.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/scheduler_actor.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/scheduler_basic.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/scheduler_cookie.cpp +) +generate_enum_serilization(cpp-actors-core + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/defs.h + INCLUDE_HEADERS + library/cpp/actors/core/defs.h +) +generate_enum_serilization(cpp-actors-core + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor.h + INCLUDE_HEADERS + library/cpp/actors/core/actor.h +) diff --git a/library/cpp/actors/dnscachelib/CMakeLists.txt b/library/cpp/actors/dnscachelib/CMakeLists.txt new file mode 100644 index 0000000000..9dd2d25435 --- /dev/null +++ b/library/cpp/actors/dnscachelib/CMakeLists.txt @@ -0,0 +1,13 @@ +find_package(c-ares) + +add_library(cpp-actors-dnscachelib) +target_link_libraries(cpp-actors-dnscachelib PUBLIC + contrib-libs-cxxsupp + yutil + c-ares::c-ares + library-cpp-lwtrace +) +target_sources(cpp-actors-dnscachelib PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnscachelib/dnscache.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnscachelib/probes.cpp +) diff --git a/library/cpp/actors/dnsresolver/CMakeLists.txt b/library/cpp/actors/dnsresolver/CMakeLists.txt new file mode 100644 index 0000000000..f465734a92 --- /dev/null +++ b/library/cpp/actors/dnsresolver/CMakeLists.txt @@ -0,0 +1,17 @@ +find_package(c-ares) + +add_library(cpp-actors-dnsresolver) +target_include_directories(cpp-actors-dnsresolver PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/c-ares/include +) +target_link_libraries(cpp-actors-dnsresolver PUBLIC + contrib-libs-cxxsupp + yutil + cpp-actors-core + c-ares::c-ares +) +target_sources(cpp-actors-dnsresolver PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_caching.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_ondemand.cpp +) diff --git a/library/cpp/actors/helpers/CMakeLists.txt b/library/cpp/actors/helpers/CMakeLists.txt new file mode 100644 index 0000000000..d4d7c6e3bf --- /dev/null +++ b/library/cpp/actors/helpers/CMakeLists.txt @@ -0,0 +1,12 @@ +add_library(cpp-actors-helpers) +target_link_libraries(cpp-actors-helpers PUBLIC + contrib-libs-cxxsupp + yutil + cpp-actors-core + cpp-monlib-dynamic_counters +) +target_sources(cpp-actors-helpers PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers/activeactors.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers/flow_controlled_queue.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers/selfping_actor.cpp +) diff --git a/library/cpp/actors/http/CMakeLists.txt b/library/cpp/actors/http/CMakeLists.txt new file mode 100644 index 0000000000..a1e2b6e0c9 --- /dev/null +++ b/library/cpp/actors/http/CMakeLists.txt @@ -0,0 +1,22 @@ +find_package(OpenSSL) + +add_library(cpp-actors-http) +target_link_libraries(cpp-actors-http PUBLIC + contrib-libs-cxxsupp + yutil + OpenSSL::OpenSSL + cpp-actors-core + cpp-actors-interconnect + library-cpp-dns + cpp-monlib-metrics + cpp-string_utils-quote +) +target_sources(cpp-actors-http PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http_cache.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http_proxy_acceptor.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http_proxy_incoming.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http_proxy_outgoing.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http_proxy.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http_static.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http.cpp +) diff --git a/library/cpp/actors/interconnect/CMakeLists.txt b/library/cpp/actors/interconnect/CMakeLists.txt new file mode 100644 index 0000000000..62b2b3cc52 --- /dev/null +++ b/library/cpp/actors/interconnect/CMakeLists.txt @@ -0,0 +1,48 @@ +find_package(OpenSSL) + +add_library(cpp-actors-interconnect) +target_link_libraries(cpp-actors-interconnect PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-libc_compat + OpenSSL::OpenSSL + cpp-actors-core + cpp-actors-dnscachelib + cpp-actors-dnsresolver + cpp-actors-helpers + cpp-actors-prof + cpp-actors-protos + cpp-actors-util + cpp-digest-crc32c + library-cpp-json + library-cpp-lwtrace + cpp-monlib-dynamic_counters + cpp-monlib-metrics + service-pages-tablesorter + cpp-openssl-init + library-cpp-packedtypes +) +target_sources(cpp-actors-interconnect PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_address.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_channel.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_counters.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_handshake.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_mon.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_nameserver_dynamic.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_nameserver_table.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_proxy_wrapper.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_resolve.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_stream.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_tcp_input_session.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_tcp_proxy.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_tcp_server.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/interconnect_tcp_session.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/load.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/packet.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/poller_actor.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/poller_tcp.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/poller_tcp_unit.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/poller_tcp_unit_select.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/types.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/poller_tcp_unit_epoll.cpp +) diff --git a/library/cpp/actors/interconnect/mock/CMakeLists.txt b/library/cpp/actors/interconnect/mock/CMakeLists.txt new file mode 100644 index 0000000000..c731927c40 --- /dev/null +++ b/library/cpp/actors/interconnect/mock/CMakeLists.txt @@ -0,0 +1,9 @@ +add_library(actors-interconnect-mock) +target_link_libraries(actors-interconnect-mock PUBLIC + contrib-libs-cxxsupp + yutil + cpp-actors-interconnect +) +target_sources(actors-interconnect-mock PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/interconnect/mock/ic_mock.cpp +) diff --git a/library/cpp/actors/memory_log/CMakeLists.txt b/library/cpp/actors/memory_log/CMakeLists.txt new file mode 100644 index 0000000000..fedf897a7c --- /dev/null +++ b/library/cpp/actors/memory_log/CMakeLists.txt @@ -0,0 +1,11 @@ +add_library(cpp-actors-memory_log) +target_link_libraries(cpp-actors-memory_log PUBLIC + contrib-libs-cxxsupp + yutil + cpp-threading-queue + contrib-libs-linuxvdso +) +target_sources(cpp-actors-memory_log PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/memory_log/memlog.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/memory_log/mmap.cpp +) diff --git a/library/cpp/actors/prof/CMakeLists.txt b/library/cpp/actors/prof/CMakeLists.txt new file mode 100644 index 0000000000..bb4d29584f --- /dev/null +++ b/library/cpp/actors/prof/CMakeLists.txt @@ -0,0 +1,11 @@ +add_library(cpp-actors-prof) +target_link_libraries(cpp-actors-prof PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-charset + cpp-containers-atomizer +) +target_sources(cpp-actors-prof PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/prof/tag.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/prof/tcmalloc_null.cpp +) diff --git a/library/cpp/actors/protos/CMakeLists.txt b/library/cpp/actors/protos/CMakeLists.txt new file mode 100644 index 0000000000..4fc386c54c --- /dev/null +++ b/library/cpp/actors/protos/CMakeLists.txt @@ -0,0 +1,16 @@ +add_library(cpp-actors-protos) +target_link_libraries(cpp-actors-protos PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-protobuf +) +target_proto_messages(cpp-actors-protos PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/protos/actors.proto + ${CMAKE_SOURCE_DIR}/library/cpp/actors/protos/interconnect.proto + ${CMAKE_SOURCE_DIR}/library/cpp/actors/protos/services_common.proto + ${CMAKE_SOURCE_DIR}/library/cpp/actors/protos/unittests.proto +) +target_proto_plugin(cpp-actors-protos + cpp_styleguide + cpp_styleguide +) diff --git a/library/cpp/actors/testlib/CMakeLists.txt b/library/cpp/actors/testlib/CMakeLists.txt new file mode 100644 index 0000000000..13e311a606 --- /dev/null +++ b/library/cpp/actors/testlib/CMakeLists.txt @@ -0,0 +1,13 @@ +add_library(cpp-actors-testlib) +target_link_libraries(cpp-actors-testlib PUBLIC + contrib-libs-cxxsupp + yutil + cpp-actors-core + actors-interconnect-mock + cpp-actors-protos + library-cpp-random_provider + library-cpp-time_provider +) +target_sources(cpp-actors-testlib PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/testlib/test_runtime.cpp +) diff --git a/library/cpp/actors/util/CMakeLists.txt b/library/cpp/actors/util/CMakeLists.txt new file mode 100644 index 0000000000..1b07b3b2e8 --- /dev/null +++ b/library/cpp/actors/util/CMakeLists.txt @@ -0,0 +1,10 @@ +add_library(cpp-actors-util) +target_link_libraries(cpp-actors-util PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-actors-util PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/affinity.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/should_continue.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/threadparkpad.cpp +) diff --git a/library/cpp/actors/wilson/CMakeLists.txt b/library/cpp/actors/wilson/CMakeLists.txt new file mode 100644 index 0000000000..396edfd4a6 --- /dev/null +++ b/library/cpp/actors/wilson/CMakeLists.txt @@ -0,0 +1,6 @@ +add_library(cpp-actors-wilson INTERFACE) +target_link_libraries(cpp-actors-wilson INTERFACE + contrib-libs-cxxsupp + yutil + cpp-string_utils-base64 +) |