diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2023-06-02 18:26:46 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2023-06-02 18:32:58 +0300 |
commit | 7e7de263d4acbc6eacf92b618bcb5f9049bccc9b (patch) | |
tree | d25ff63925cbcc5e0f80fe4d1514b4cb48a9f686 /library/cpp/actors/core | |
parent | 10ba5cc0c3d130ce4b33d307d265b937dd572c39 (diff) | |
download | ydb-7e7de263d4acbc6eacf92b618bcb5f9049bccc9b.tar.gz |
add library/cpp/actors to github export
x-stable-origin-commit: 0e951cfb44430a0ed33bec779c8a790f73c31b91
Diffstat (limited to 'library/cpp/actors/core')
-rw-r--r-- | library/cpp/actors/core/CMakeLists.darwin.txt | 1 | ||||
-rw-r--r-- | library/cpp/actors/core/CMakeLists.linux-aarch64.txt | 1 | ||||
-rw-r--r-- | library/cpp/actors/core/CMakeLists.linux.txt | 1 | ||||
-rw-r--r-- | library/cpp/actors/core/ut/CMakeLists.darwin.txt | 57 | ||||
-rw-r--r-- | library/cpp/actors/core/ut/CMakeLists.linux-aarch64.txt | 60 | ||||
-rw-r--r-- | library/cpp/actors/core/ut/CMakeLists.linux.txt | 62 | ||||
-rw-r--r-- | library/cpp/actors/core/ut/CMakeLists.txt | 15 |
7 files changed, 197 insertions, 0 deletions
diff --git a/library/cpp/actors/core/CMakeLists.darwin.txt b/library/cpp/actors/core/CMakeLists.darwin.txt index 7bbf9297c2..19e76f65ee 100644 --- a/library/cpp/actors/core/CMakeLists.darwin.txt +++ b/library/cpp/actors/core/CMakeLists.darwin.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(ut) add_library(cpp-actors-core) target_link_libraries(cpp-actors-core PUBLIC diff --git a/library/cpp/actors/core/CMakeLists.linux-aarch64.txt b/library/cpp/actors/core/CMakeLists.linux-aarch64.txt index 54c3427d28..c12e12d15f 100644 --- a/library/cpp/actors/core/CMakeLists.linux-aarch64.txt +++ b/library/cpp/actors/core/CMakeLists.linux-aarch64.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(ut) add_library(cpp-actors-core) target_link_libraries(cpp-actors-core PUBLIC diff --git a/library/cpp/actors/core/CMakeLists.linux.txt b/library/cpp/actors/core/CMakeLists.linux.txt index 54c3427d28..c12e12d15f 100644 --- a/library/cpp/actors/core/CMakeLists.linux.txt +++ b/library/cpp/actors/core/CMakeLists.linux.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(ut) add_library(cpp-actors-core) target_link_libraries(cpp-actors-core PUBLIC diff --git a/library/cpp/actors/core/ut/CMakeLists.darwin.txt b/library/cpp/actors/core/ut/CMakeLists.darwin.txt new file mode 100644 index 0000000000..b5b88433b5 --- /dev/null +++ b/library/cpp/actors/core/ut/CMakeLists.darwin.txt @@ -0,0 +1,57 @@ + +# This file was gererated 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_executable(library-cpp-actors-core-ut) +target_include_directories(library-cpp-actors-core-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core +) +target_link_libraries(library-cpp-actors-core-ut PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-cpuid_check + cpp-testing-unittest_main + cpp-actors-core + cpp-actors-interconnect + cpp-actors-testlib +) +target_link_options(library-cpp-actors-core-ut PRIVATE + -Wl,-no_deduplicate + -Wl,-sdk_version,10.15 + -fPIC + -fPIC + -framework + CoreFoundation +) +target_sources(library-cpp-actors-core-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor_coroutine_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actorsystem_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/performance_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/ask_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/balancer_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/event_pb_payload_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/event_pb_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_basic_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_united_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/mon_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/scheduler_actor_ut.cpp +) +add_test( + NAME + library-cpp-actors-core-ut + COMMAND + library-cpp-actors-core-ut + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +vcs_info(library-cpp-actors-core-ut) diff --git a/library/cpp/actors/core/ut/CMakeLists.linux-aarch64.txt b/library/cpp/actors/core/ut/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a7e146d294 --- /dev/null +++ b/library/cpp/actors/core/ut/CMakeLists.linux-aarch64.txt @@ -0,0 +1,60 @@ + +# This file was gererated 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_executable(library-cpp-actors-core-ut) +target_include_directories(library-cpp-actors-core-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core +) +target_link_libraries(library-cpp-actors-core-ut PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + library-cpp-lfalloc + cpp-testing-unittest_main + cpp-actors-core + cpp-actors-interconnect + cpp-actors-testlib +) +target_link_options(library-cpp-actors-core-ut PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(library-cpp-actors-core-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor_coroutine_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actorsystem_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/performance_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/ask_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/balancer_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/event_pb_payload_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/event_pb_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_basic_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_united_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/mon_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/scheduler_actor_ut.cpp +) +add_test( + NAME + library-cpp-actors-core-ut + COMMAND + library-cpp-actors-core-ut + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +vcs_info(library-cpp-actors-core-ut) diff --git a/library/cpp/actors/core/ut/CMakeLists.linux.txt b/library/cpp/actors/core/ut/CMakeLists.linux.txt new file mode 100644 index 0000000000..12dd79e38a --- /dev/null +++ b/library/cpp/actors/core/ut/CMakeLists.linux.txt @@ -0,0 +1,62 @@ + +# This file was gererated 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_executable(library-cpp-actors-core-ut) +target_include_directories(library-cpp-actors-core-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core +) +target_link_libraries(library-cpp-actors-core-ut PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-malloc-tcmalloc + libs-tcmalloc-no_percpu_cache + library-cpp-cpuid_check + cpp-testing-unittest_main + cpp-actors-core + cpp-actors-interconnect + cpp-actors-testlib +) +target_link_options(library-cpp-actors-core-ut PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(library-cpp-actors-core-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor_coroutine_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actor_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/actorsystem_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/performance_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/ask_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/balancer_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/event_pb_payload_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/event_pb_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_basic_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/executor_pool_united_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/mon_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/core/scheduler_actor_ut.cpp +) +add_test( + NAME + library-cpp-actors-core-ut + COMMAND + library-cpp-actors-core-ut + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +vcs_info(library-cpp-actors-core-ut) diff --git a/library/cpp/actors/core/ut/CMakeLists.txt b/library/cpp/actors/core/ut/CMakeLists.txt new file mode 100644 index 0000000000..3e0811fb22 --- /dev/null +++ b/library/cpp/actors/core/ut/CMakeLists.txt @@ -0,0 +1,15 @@ + +# This file was gererated 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. + + +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() |