diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-03-09 12:42:44 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-03-09 12:42:44 +0300 |
commit | 6324d075a5e80b6943b5de6b465b775050fe83df (patch) | |
tree | e02ce32e988042438f64df770a528164ac572879 /library/cpp/actors | |
parent | 039e25e1597bec288de44e5061c1b84e195add08 (diff) | |
download | ydb-6324d075a5e80b6943b5de6b465b775050fe83df.tar.gz |
Intermediate changes
Diffstat (limited to 'library/cpp/actors')
30 files changed, 602 insertions, 0 deletions
diff --git a/library/cpp/actors/core/CMakeLists.txt b/library/cpp/actors/core/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/core/CMakeLists.txt +++ b/library/cpp/actors/core/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/core/CMakeLists.windows-x86_64.txt b/library/cpp/actors/core/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..7fe4e2c2ff --- /dev/null +++ b/library/cpp/actors/core/CMakeLists.windows-x86_64.txt @@ -0,0 +1,86 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +get_built_tool_path( + TOOL_enum_parser_bin + TOOL_enum_parser_dependency + tools/enum_parser/enum_parser + enum_parser +) +get_built_tool_path( + TOOL_enum_parser_bin + TOOL_enum_parser_dependency + tools/enum_parser/enum_parser + enum_parser +) + +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 + library-cpp-time_provider + cpp-threading-future +) +target_sources(cpp-actors-core PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor_bootstrapped.cpp + ${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/actor_virtual.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/av_bootstrapped.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/harmonizer.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/log_buffer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/mailbox.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/monotonic.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/monotonic_provider.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 index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/dnscachelib/CMakeLists.txt +++ b/library/cpp/actors/dnscachelib/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/dnscachelib/CMakeLists.windows-x86_64.txt b/library/cpp/actors/dnscachelib/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..539f17a1a2 --- /dev/null +++ b/library/cpp/actors/dnscachelib/CMakeLists.windows-x86_64.txt @@ -0,0 +1,22 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(c-ares REQUIRED) + +add_library(cpp-actors-dnscachelib) +target_link_libraries(cpp-actors-dnscachelib PUBLIC + contrib-libs-cxxsupp + yutil + c-ares::c-ares + library-cpp-lwtrace + cpp-deprecated-atomic +) +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 index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/dnsresolver/CMakeLists.txt +++ b/library/cpp/actors/dnsresolver/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/dnsresolver/CMakeLists.windows-x86_64.txt b/library/cpp/actors/dnsresolver/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..341f9e7593 --- /dev/null +++ b/library/cpp/actors/dnsresolver/CMakeLists.windows-x86_64.txt @@ -0,0 +1,25 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(c-ares REQUIRED) + +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 index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/helpers/CMakeLists.txt +++ b/library/cpp/actors/helpers/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/helpers/CMakeLists.windows-x86_64.txt b/library/cpp/actors/helpers/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..16ecfc7b98 --- /dev/null +++ b/library/cpp/actors/helpers/CMakeLists.windows-x86_64.txt @@ -0,0 +1,21 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +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 index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/http/CMakeLists.txt +++ b/library/cpp/actors/http/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/http/CMakeLists.windows-x86_64.txt b/library/cpp/actors/http/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..c60599beaa --- /dev/null +++ b/library/cpp/actors/http/CMakeLists.windows-x86_64.txt @@ -0,0 +1,33 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(OpenSSL REQUIRED) +find_package(ZLIB REQUIRED) + +add_library(cpp-actors-http) +target_link_libraries(cpp-actors-http PUBLIC + contrib-libs-cxxsupp + yutil + OpenSSL::OpenSSL + ZLIB::ZLIB + 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_compress.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 index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/interconnect/CMakeLists.txt +++ b/library/cpp/actors/interconnect/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/interconnect/CMakeLists.windows-x86_64.txt b/library/cpp/actors/interconnect/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..49ad9e634b --- /dev/null +++ b/library/cpp/actors/interconnect/CMakeLists.windows-x86_64.txt @@ -0,0 +1,57 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(OpenSSL REQUIRED) +add_subdirectory(mock) + +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-actors-wilson + 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 +) diff --git a/library/cpp/actors/interconnect/mock/CMakeLists.txt b/library/cpp/actors/interconnect/mock/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/interconnect/mock/CMakeLists.txt +++ b/library/cpp/actors/interconnect/mock/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/interconnect/mock/CMakeLists.windows-x86_64.txt b/library/cpp/actors/interconnect/mock/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..c29d87b0ce --- /dev/null +++ b/library/cpp/actors/interconnect/mock/CMakeLists.windows-x86_64.txt @@ -0,0 +1,18 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +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/log_backend/CMakeLists.txt b/library/cpp/actors/log_backend/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/log_backend/CMakeLists.txt +++ b/library/cpp/actors/log_backend/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/log_backend/CMakeLists.windows-x86_64.txt b/library/cpp/actors/log_backend/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..2845e78e35 --- /dev/null +++ b/library/cpp/actors/log_backend/CMakeLists.windows-x86_64.txt @@ -0,0 +1,19 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(cpp-actors-log_backend) +target_link_libraries(cpp-actors-log_backend PUBLIC + contrib-libs-cxxsupp + yutil + cpp-actors-core + library-cpp-logger +) +target_sources(cpp-actors-log_backend PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/log_backend/actor_log_backend.cpp +) diff --git a/library/cpp/actors/memory_log/CMakeLists.txt b/library/cpp/actors/memory_log/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/memory_log/CMakeLists.txt +++ b/library/cpp/actors/memory_log/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/memory_log/CMakeLists.windows-x86_64.txt b/library/cpp/actors/memory_log/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..5109f0fcce --- /dev/null +++ b/library/cpp/actors/memory_log/CMakeLists.windows-x86_64.txt @@ -0,0 +1,21 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(cpp-actors-memory_log) +target_link_libraries(cpp-actors-memory_log PUBLIC + contrib-libs-cxxsupp + yutil + cpp-threading-queue + contrib-libs-linuxvdso + cpp-deprecated-atomic +) +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 index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/prof/CMakeLists.txt +++ b/library/cpp/actors/prof/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/prof/CMakeLists.windows-x86_64.txt b/library/cpp/actors/prof/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..9ee960950d --- /dev/null +++ b/library/cpp/actors/prof/CMakeLists.windows-x86_64.txt @@ -0,0 +1,21 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(cpp-actors-prof) +target_link_libraries(cpp-actors-prof PUBLIC + contrib-libs-cxxsupp + yutil + libs-tcmalloc-malloc_extension + 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.cpp +) diff --git a/library/cpp/actors/protos/CMakeLists.txt b/library/cpp/actors/protos/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/protos/CMakeLists.txt +++ b/library/cpp/actors/protos/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/protos/CMakeLists.windows-x86_64.txt b/library/cpp/actors/protos/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..be3257b127 --- /dev/null +++ b/library/cpp/actors/protos/CMakeLists.windows-x86_64.txt @@ -0,0 +1,82 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) + +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_addincls(cpp-actors-protos + ./ + ${CMAKE_SOURCE_DIR}/ + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src +) +target_proto_outs(cpp-actors-protos + --cpp_out=${CMAKE_BINARY_DIR}/ + --cpp_styleguide_out=${CMAKE_BINARY_DIR}/ +) diff --git a/library/cpp/actors/testlib/CMakeLists.txt b/library/cpp/actors/testlib/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/testlib/CMakeLists.txt +++ b/library/cpp/actors/testlib/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/testlib/CMakeLists.windows-x86_64.txt b/library/cpp/actors/testlib/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..1508c82e9b --- /dev/null +++ b/library/cpp/actors/testlib/CMakeLists.windows-x86_64.txt @@ -0,0 +1,22 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +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 index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/util/CMakeLists.txt +++ b/library/cpp/actors/util/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/util/CMakeLists.windows-x86_64.txt b/library/cpp/actors/util/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..2bac6f5b8a --- /dev/null +++ b/library/cpp/actors/util/CMakeLists.windows-x86_64.txt @@ -0,0 +1,24 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(cpp-actors-util) +target_link_libraries(cpp-actors-util PUBLIC + contrib-libs-cxxsupp + yutil + cpp-deprecated-atomic + library-cpp-pop_count +) +target_sources(cpp-actors-util PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/affinity.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/memory_track.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/memory_tracker.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data.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 index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/wilson/CMakeLists.txt +++ b/library/cpp/actors/wilson/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/wilson/CMakeLists.windows-x86_64.txt b/library/cpp/actors/wilson/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..45704ccd5a --- /dev/null +++ b/library/cpp/actors/wilson/CMakeLists.windows-x86_64.txt @@ -0,0 +1,25 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(protos) + +add_library(cpp-actors-wilson) +target_link_libraries(cpp-actors-wilson PUBLIC + contrib-libs-cxxsupp + yutil + cpp-actors-core + cpp-actors-protos + actors-wilson-protos +) +target_sources(cpp-actors-wilson PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/wilson/wilson_event.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/wilson/wilson_span.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/wilson/wilson_profile_span.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/wilson/wilson_trace.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/wilson/wilson_uploader.cpp +) diff --git a/library/cpp/actors/wilson/protos/CMakeLists.txt b/library/cpp/actors/wilson/protos/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/actors/wilson/protos/CMakeLists.txt +++ b/library/cpp/actors/wilson/protos/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/actors/wilson/protos/CMakeLists.windows-x86_64.txt b/library/cpp/actors/wilson/protos/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..5e21c8ffc3 --- /dev/null +++ b/library/cpp/actors/wilson/protos/CMakeLists.windows-x86_64.txt @@ -0,0 +1,96 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +get_built_tool_path( + TOOL_grpc_cpp_bin + TOOL_grpc_cpp_dependency + contrib/tools/protoc/plugins/grpc_cpp + grpc_cpp +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) + +add_library(actors-wilson-protos) +set_property(TARGET actors-wilson-protos PROPERTY + PROTOC_EXTRA_OUTS .grpc.pb.cc .grpc.pb.h +) +target_link_libraries(actors-wilson-protos PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-grpc + contrib-libs-protobuf +) +target_proto_messages(actors-wilson-protos PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/wilson/protos/common.proto + ${CMAKE_SOURCE_DIR}/library/cpp/actors/wilson/protos/resource.proto + ${CMAKE_SOURCE_DIR}/library/cpp/actors/wilson/protos/service.proto + ${CMAKE_SOURCE_DIR}/library/cpp/actors/wilson/protos/trace.proto +) +target_proto_addincls(actors-wilson-protos + ./ + ${CMAKE_SOURCE_DIR}/ + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src +) +target_proto_outs(actors-wilson-protos + --cpp_out=${CMAKE_BINARY_DIR}/ + --cpp_styleguide_out=${CMAKE_BINARY_DIR}/ +) +target_proto_plugin(actors-wilson-protos + grpc_cpp + grpc_cpp +) |