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/dnsresolver | |
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/dnsresolver')
7 files changed, 167 insertions, 0 deletions
diff --git a/library/cpp/actors/dnsresolver/CMakeLists.darwin.txt b/library/cpp/actors/dnsresolver/CMakeLists.darwin.txt index f4a0909db2..e3c3852edf 100644 --- a/library/cpp/actors/dnsresolver/CMakeLists.darwin.txt +++ b/library/cpp/actors/dnsresolver/CMakeLists.darwin.txt @@ -7,6 +7,7 @@ find_package(c-ares REQUIRED) +add_subdirectory(ut) add_library(cpp-actors-dnsresolver) target_include_directories(cpp-actors-dnsresolver PRIVATE diff --git a/library/cpp/actors/dnsresolver/CMakeLists.linux-aarch64.txt b/library/cpp/actors/dnsresolver/CMakeLists.linux-aarch64.txt index 7e622c1693..746f221a05 100644 --- a/library/cpp/actors/dnsresolver/CMakeLists.linux-aarch64.txt +++ b/library/cpp/actors/dnsresolver/CMakeLists.linux-aarch64.txt @@ -7,6 +7,7 @@ find_package(c-ares REQUIRED) +add_subdirectory(ut) add_library(cpp-actors-dnsresolver) target_include_directories(cpp-actors-dnsresolver PRIVATE diff --git a/library/cpp/actors/dnsresolver/CMakeLists.linux.txt b/library/cpp/actors/dnsresolver/CMakeLists.linux.txt index 7e622c1693..746f221a05 100644 --- a/library/cpp/actors/dnsresolver/CMakeLists.linux.txt +++ b/library/cpp/actors/dnsresolver/CMakeLists.linux.txt @@ -7,6 +7,7 @@ find_package(c-ares REQUIRED) +add_subdirectory(ut) add_library(cpp-actors-dnsresolver) target_include_directories(cpp-actors-dnsresolver PRIVATE diff --git a/library/cpp/actors/dnsresolver/ut/CMakeLists.darwin.txt b/library/cpp/actors/dnsresolver/ut/CMakeLists.darwin.txt new file mode 100644 index 0000000000..5c4c5e2c7a --- /dev/null +++ b/library/cpp/actors/dnsresolver/ut/CMakeLists.darwin.txt @@ -0,0 +1,47 @@ + +# 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-dnsresolver-ut) +target_include_directories(library-cpp-actors-dnsresolver-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver + ${CMAKE_SOURCE_DIR}/contrib/libs/c-ares/include +) +target_link_libraries(library-cpp-actors-dnsresolver-ut PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-cpuid_check + cpp-testing-unittest_main + cpp-actors-dnsresolver + cpp-actors-testlib +) +target_link_options(library-cpp-actors-dnsresolver-ut PRIVATE + -Wl,-no_deduplicate + -Wl,-sdk_version,10.15 + -fPIC + -fPIC + -framework + CoreFoundation +) +target_sources(library-cpp-actors-dnsresolver-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_caching_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_ondemand_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_ut.cpp +) +add_test( + NAME + library-cpp-actors-dnsresolver-ut + COMMAND + library-cpp-actors-dnsresolver-ut + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +vcs_info(library-cpp-actors-dnsresolver-ut) diff --git a/library/cpp/actors/dnsresolver/ut/CMakeLists.linux-aarch64.txt b/library/cpp/actors/dnsresolver/ut/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..54180a8a80 --- /dev/null +++ b/library/cpp/actors/dnsresolver/ut/CMakeLists.linux-aarch64.txt @@ -0,0 +1,50 @@ + +# 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-dnsresolver-ut) +target_include_directories(library-cpp-actors-dnsresolver-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver + ${CMAKE_SOURCE_DIR}/contrib/libs/c-ares/include +) +target_link_libraries(library-cpp-actors-dnsresolver-ut PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + library-cpp-lfalloc + cpp-testing-unittest_main + cpp-actors-dnsresolver + cpp-actors-testlib +) +target_link_options(library-cpp-actors-dnsresolver-ut PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(library-cpp-actors-dnsresolver-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_caching_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_ondemand_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_ut.cpp +) +add_test( + NAME + library-cpp-actors-dnsresolver-ut + COMMAND + library-cpp-actors-dnsresolver-ut + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +vcs_info(library-cpp-actors-dnsresolver-ut) diff --git a/library/cpp/actors/dnsresolver/ut/CMakeLists.linux.txt b/library/cpp/actors/dnsresolver/ut/CMakeLists.linux.txt new file mode 100644 index 0000000000..2a2a18bfd2 --- /dev/null +++ b/library/cpp/actors/dnsresolver/ut/CMakeLists.linux.txt @@ -0,0 +1,52 @@ + +# 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-dnsresolver-ut) +target_include_directories(library-cpp-actors-dnsresolver-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver + ${CMAKE_SOURCE_DIR}/contrib/libs/c-ares/include +) +target_link_libraries(library-cpp-actors-dnsresolver-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-dnsresolver + cpp-actors-testlib +) +target_link_options(library-cpp-actors-dnsresolver-ut PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(library-cpp-actors-dnsresolver-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_caching_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_ondemand_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/dnsresolver/dnsresolver_ut.cpp +) +add_test( + NAME + library-cpp-actors-dnsresolver-ut + COMMAND + library-cpp-actors-dnsresolver-ut + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +vcs_info(library-cpp-actors-dnsresolver-ut) diff --git a/library/cpp/actors/dnsresolver/ut/CMakeLists.txt b/library/cpp/actors/dnsresolver/ut/CMakeLists.txt new file mode 100644 index 0000000000..3e0811fb22 --- /dev/null +++ b/library/cpp/actors/dnsresolver/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() |