aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/http
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
commit056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch)
tree4740980126f32e3af7937ba0ca5f83e59baa4ab0 /library/cpp/actors/http
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
downloadydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'library/cpp/actors/http')
-rw-r--r--library/cpp/actors/http/CMakeLists.darwin-x86_64.txt1
-rw-r--r--library/cpp/actors/http/CMakeLists.linux-aarch64.txt1
-rw-r--r--library/cpp/actors/http/CMakeLists.linux-x86_64.txt1
-rw-r--r--library/cpp/actors/http/CMakeLists.windows-x86_64.txt1
-rw-r--r--library/cpp/actors/http/ut/CMakeLists.darwin-x86_64.txt67
-rw-r--r--library/cpp/actors/http/ut/CMakeLists.linux-aarch64.txt69
-rw-r--r--library/cpp/actors/http/ut/CMakeLists.linux-x86_64.txt71
-rw-r--r--library/cpp/actors/http/ut/CMakeLists.txt17
-rw-r--r--library/cpp/actors/http/ut/CMakeLists.windows-x86_64.txt56
-rw-r--r--library/cpp/actors/http/ut/ya.make16
-rw-r--r--library/cpp/actors/http/ya.make36
11 files changed, 336 insertions, 0 deletions
diff --git a/library/cpp/actors/http/CMakeLists.darwin-x86_64.txt b/library/cpp/actors/http/CMakeLists.darwin-x86_64.txt
index c60599beaa..7dc97fa768 100644
--- a/library/cpp/actors/http/CMakeLists.darwin-x86_64.txt
+++ b/library/cpp/actors/http/CMakeLists.darwin-x86_64.txt
@@ -8,6 +8,7 @@
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
+add_subdirectory(ut)
add_library(cpp-actors-http)
target_link_libraries(cpp-actors-http PUBLIC
diff --git a/library/cpp/actors/http/CMakeLists.linux-aarch64.txt b/library/cpp/actors/http/CMakeLists.linux-aarch64.txt
index d6e3868652..ea0055be16 100644
--- a/library/cpp/actors/http/CMakeLists.linux-aarch64.txt
+++ b/library/cpp/actors/http/CMakeLists.linux-aarch64.txt
@@ -8,6 +8,7 @@
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
+add_subdirectory(ut)
add_library(cpp-actors-http)
target_link_libraries(cpp-actors-http PUBLIC
diff --git a/library/cpp/actors/http/CMakeLists.linux-x86_64.txt b/library/cpp/actors/http/CMakeLists.linux-x86_64.txt
index d6e3868652..ea0055be16 100644
--- a/library/cpp/actors/http/CMakeLists.linux-x86_64.txt
+++ b/library/cpp/actors/http/CMakeLists.linux-x86_64.txt
@@ -8,6 +8,7 @@
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
+add_subdirectory(ut)
add_library(cpp-actors-http)
target_link_libraries(cpp-actors-http PUBLIC
diff --git a/library/cpp/actors/http/CMakeLists.windows-x86_64.txt b/library/cpp/actors/http/CMakeLists.windows-x86_64.txt
index c60599beaa..7dc97fa768 100644
--- a/library/cpp/actors/http/CMakeLists.windows-x86_64.txt
+++ b/library/cpp/actors/http/CMakeLists.windows-x86_64.txt
@@ -8,6 +8,7 @@
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
+add_subdirectory(ut)
add_library(cpp-actors-http)
target_link_libraries(cpp-actors-http PUBLIC
diff --git a/library/cpp/actors/http/ut/CMakeLists.darwin-x86_64.txt b/library/cpp/actors/http/ut/CMakeLists.darwin-x86_64.txt
new file mode 100644
index 0000000000..18360bfd4d
--- /dev/null
+++ b/library/cpp/actors/http/ut/CMakeLists.darwin-x86_64.txt
@@ -0,0 +1,67 @@
+
+# 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_executable(library-cpp-actors-http-ut)
+target_include_directories(library-cpp-actors-http-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/http
+)
+target_link_libraries(library-cpp-actors-http-ut PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-malloc-system
+ library-cpp-cpuid_check
+ cpp-testing-unittest_main
+ cpp-actors-http
+ cpp-actors-testlib
+)
+target_link_options(library-cpp-actors-http-ut PRIVATE
+ -Wl,-no_deduplicate
+ -Wl,-sdk_version,10.15
+ -fPIC
+ -fPIC
+ -framework
+ CoreFoundation
+)
+target_sources(library-cpp-actors-http-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http_ut.cpp
+)
+set_property(
+ TARGET
+ library-cpp-actors-http-ut
+ PROPERTY
+ SPLIT_FACTOR
+ 1
+)
+add_yunittest(
+ NAME
+ library-cpp-actors-http-ut
+ TEST_TARGET
+ library-cpp-actors-http-ut
+ TEST_ARG
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-http-ut
+ PROPERTY
+ LABELS
+ SMALL
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-http-ut
+ PROPERTY
+ PROCESSORS
+ 1
+)
+vcs_info(library-cpp-actors-http-ut)
diff --git a/library/cpp/actors/http/ut/CMakeLists.linux-aarch64.txt b/library/cpp/actors/http/ut/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..15c2e22dc5
--- /dev/null
+++ b/library/cpp/actors/http/ut/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,69 @@
+
+# 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_executable(library-cpp-actors-http-ut)
+target_include_directories(library-cpp-actors-http-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/http
+)
+target_link_libraries(library-cpp-actors-http-ut PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ cpp-malloc-jemalloc
+ cpp-testing-unittest_main
+ cpp-actors-http
+ cpp-actors-testlib
+)
+target_link_options(library-cpp-actors-http-ut PRIVATE
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -fPIC
+ -lpthread
+ -lrt
+ -ldl
+)
+target_sources(library-cpp-actors-http-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http_ut.cpp
+)
+set_property(
+ TARGET
+ library-cpp-actors-http-ut
+ PROPERTY
+ SPLIT_FACTOR
+ 1
+)
+add_yunittest(
+ NAME
+ library-cpp-actors-http-ut
+ TEST_TARGET
+ library-cpp-actors-http-ut
+ TEST_ARG
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-http-ut
+ PROPERTY
+ LABELS
+ SMALL
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-http-ut
+ PROPERTY
+ PROCESSORS
+ 1
+)
+vcs_info(library-cpp-actors-http-ut)
diff --git a/library/cpp/actors/http/ut/CMakeLists.linux-x86_64.txt b/library/cpp/actors/http/ut/CMakeLists.linux-x86_64.txt
new file mode 100644
index 0000000000..1190cc58f3
--- /dev/null
+++ b/library/cpp/actors/http/ut/CMakeLists.linux-x86_64.txt
@@ -0,0 +1,71 @@
+
+# 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_executable(library-cpp-actors-http-ut)
+target_include_directories(library-cpp-actors-http-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/http
+)
+target_link_libraries(library-cpp-actors-http-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-http
+ cpp-actors-testlib
+)
+target_link_options(library-cpp-actors-http-ut PRIVATE
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -fPIC
+ -lpthread
+ -lrt
+ -ldl
+)
+target_sources(library-cpp-actors-http-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/http/http_ut.cpp
+)
+set_property(
+ TARGET
+ library-cpp-actors-http-ut
+ PROPERTY
+ SPLIT_FACTOR
+ 1
+)
+add_yunittest(
+ NAME
+ library-cpp-actors-http-ut
+ TEST_TARGET
+ library-cpp-actors-http-ut
+ TEST_ARG
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-http-ut
+ PROPERTY
+ LABELS
+ SMALL
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-http-ut
+ PROPERTY
+ PROCESSORS
+ 1
+)
+vcs_info(library-cpp-actors-http-ut)
diff --git a/library/cpp/actors/http/ut/CMakeLists.txt b/library/cpp/actors/http/ut/CMakeLists.txt
new file mode 100644
index 0000000000..d90657116d
--- /dev/null
+++ b/library/cpp/actors/http/ut/CMakeLists.txt
@@ -0,0 +1,17 @@
+
+# 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.
+
+
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ 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/ut/CMakeLists.windows-x86_64.txt b/library/cpp/actors/http/ut/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..80bc753531
--- /dev/null
+++ b/library/cpp/actors/http/ut/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,56 @@
+
+# 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_executable(library-cpp-actors-http-ut)
+target_include_directories(library-cpp-actors-http-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/http
+)
+target_link_libraries(library-cpp-actors-http-ut PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-malloc-system
+ library-cpp-cpuid_check
+ cpp-testing-unittest_main
+ cpp-actors-http
+ cpp-actors-testlib
+)
+set_property(
+ TARGET
+ library-cpp-actors-http-ut
+ PROPERTY
+ SPLIT_FACTOR
+ 1
+)
+add_yunittest(
+ NAME
+ library-cpp-actors-http-ut
+ TEST_TARGET
+ library-cpp-actors-http-ut
+ TEST_ARG
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-http-ut
+ PROPERTY
+ LABELS
+ SMALL
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-http-ut
+ PROPERTY
+ PROCESSORS
+ 1
+)
+vcs_info(library-cpp-actors-http-ut)
diff --git a/library/cpp/actors/http/ut/ya.make b/library/cpp/actors/http/ut/ya.make
new file mode 100644
index 0000000000..8404308053
--- /dev/null
+++ b/library/cpp/actors/http/ut/ya.make
@@ -0,0 +1,16 @@
+UNITTEST_FOR(library/cpp/actors/http)
+
+SIZE(SMALL)
+
+PEERDIR(
+ library/cpp/actors/testlib
+)
+
+IF (NOT OS_WINDOWS)
+SRCS(
+ http_ut.cpp
+)
+ELSE()
+ENDIF()
+
+END()
diff --git a/library/cpp/actors/http/ya.make b/library/cpp/actors/http/ya.make
new file mode 100644
index 0000000000..9b66988ea9
--- /dev/null
+++ b/library/cpp/actors/http/ya.make
@@ -0,0 +1,36 @@
+LIBRARY()
+
+SRCS(
+ http_cache.cpp
+ http_cache.h
+ http_compress.cpp
+ http_config.h
+ http_proxy_acceptor.cpp
+ http_proxy_incoming.cpp
+ http_proxy_outgoing.cpp
+ http_proxy_sock_impl.h
+ http_proxy_sock64.h
+ http_proxy_ssl.h
+ http_proxy.cpp
+ http_proxy.h
+ http_static.cpp
+ http_static.h
+ http.cpp
+ http.h
+)
+
+PEERDIR(
+ contrib/libs/openssl
+ contrib/libs/zlib
+ library/cpp/actors/core
+ library/cpp/actors/interconnect
+ library/cpp/dns
+ library/cpp/monlib/metrics
+ library/cpp/string_utils/quote
+)
+
+END()
+
+RECURSE_FOR_TESTS(
+ ut
+)