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/http | |
parent | 039e25e1597bec288de44e5061c1b84e195add08 (diff) | |
download | ydb-6324d075a5e80b6943b5de6b465b775050fe83df.tar.gz |
Intermediate changes
Diffstat (limited to 'library/cpp/http')
-rw-r--r-- | library/cpp/http/fetch/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/http/fetch/CMakeLists.windows-x86_64.txt | 46 | ||||
-rw-r--r-- | library/cpp/http/io/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/http/io/CMakeLists.windows-x86_64.txt | 24 | ||||
-rw-r--r-- | library/cpp/http/misc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/http/misc/CMakeLists.windows-x86_64.txt | 35 | ||||
-rw-r--r-- | library/cpp/http/server/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/http/server/CMakeLists.windows-x86_64.txt | 25 | ||||
-rw-r--r-- | library/cpp/http/simple/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/http/simple/CMakeLists.windows-x86_64.txt | 21 |
10 files changed, 161 insertions, 0 deletions
diff --git a/library/cpp/http/fetch/CMakeLists.txt b/library/cpp/http/fetch/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/http/fetch/CMakeLists.txt +++ b/library/cpp/http/fetch/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/http/fetch/CMakeLists.windows-x86_64.txt b/library/cpp/http/fetch/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..b507fb8c2e --- /dev/null +++ b/library/cpp/http/fetch/CMakeLists.windows-x86_64.txt @@ -0,0 +1,46 @@ + +# 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(ZLIB REQUIRED) +get_built_tool_path( + TOOL_enum_parser_bin + TOOL_enum_parser_dependency + tools/enum_parser/enum_parser + enum_parser +) + +add_library(cpp-http-fetch) +target_link_libraries(cpp-http-fetch PUBLIC + contrib-libs-cxxsupp + yutil + ZLIB::ZLIB + library-cpp-charset + cpp-digest-md5 + cpp-http-misc + library-cpp-logger + cpp-mime-types + library-cpp-uri + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-http-fetch PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/http/fetch/http_digest.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/fetch/http_socket.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/fetch/httpheader.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/fetch/httpload.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/fetch/exthttpcodes.cpp +) +generate_enum_serilization(cpp-http-fetch + ${CMAKE_SOURCE_DIR}/library/cpp/http/fetch/httpheader.h + INCLUDE_HEADERS + library/cpp/http/fetch/httpheader.h +) +target_ragel_lexers(cpp-http-fetch + PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/http/fetch/httpfsm.rl6 + -CG1 +) diff --git a/library/cpp/http/io/CMakeLists.txt b/library/cpp/http/io/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/http/io/CMakeLists.txt +++ b/library/cpp/http/io/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/http/io/CMakeLists.windows-x86_64.txt b/library/cpp/http/io/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..1f1eab359c --- /dev/null +++ b/library/cpp/http/io/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-http-io) +target_link_libraries(cpp-http-io PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-blockcodecs + cpp-streams-brotli + cpp-streams-bzip2 + cpp-streams-lzma +) +target_sources(cpp-http-io PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/http/io/chunk.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/io/compression.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/io/headers.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/io/stream.cpp +) diff --git a/library/cpp/http/misc/CMakeLists.txt b/library/cpp/http/misc/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/http/misc/CMakeLists.txt +++ b/library/cpp/http/misc/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/http/misc/CMakeLists.windows-x86_64.txt b/library/cpp/http/misc/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..c909854a9a --- /dev/null +++ b/library/cpp/http/misc/CMakeLists.windows-x86_64.txt @@ -0,0 +1,35 @@ + +# 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 +) + +add_library(cpp-http-misc) +target_link_libraries(cpp-http-misc PUBLIC + contrib-libs-cxxsupp + yutil + tools-enum_parser-enum_serialization_runtime + library-cpp-case_insensitive_string + library-cpp-cgiparam + cpp-digest-lower_case +) +target_sources(cpp-http-misc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/http/misc/httpcodes.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/misc/httpdate.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/misc/httpreqdata.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/misc/parsed_request.cpp +) +generate_enum_serilization(cpp-http-misc + ${CMAKE_SOURCE_DIR}/library/cpp/http/misc/httpcodes.h + INCLUDE_HEADERS + library/cpp/http/misc/httpcodes.h +) diff --git a/library/cpp/http/server/CMakeLists.txt b/library/cpp/http/server/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/http/server/CMakeLists.txt +++ b/library/cpp/http/server/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/http/server/CMakeLists.windows-x86_64.txt b/library/cpp/http/server/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..9d8b2182ba --- /dev/null +++ b/library/cpp/http/server/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_library(cpp-http-server) +target_link_libraries(cpp-http-server PUBLIC + contrib-libs-cxxsupp + yutil + cpp-http-misc + cpp-http-io + cpp-threading-equeue + cpp-deprecated-atomic +) +target_sources(cpp-http-server PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/http/server/conn.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/server/http.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/server/http_ex.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/server/options.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/http/server/response.cpp +) diff --git a/library/cpp/http/simple/CMakeLists.txt b/library/cpp/http/simple/CMakeLists.txt index 8f8c04afe5..d90657116d 100644 --- a/library/cpp/http/simple/CMakeLists.txt +++ b/library/cpp/http/simple/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/http/simple/CMakeLists.windows-x86_64.txt b/library/cpp/http/simple/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..68c2fb64a3 --- /dev/null +++ b/library/cpp/http/simple/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-http-simple) +target_link_libraries(cpp-http-simple PUBLIC + contrib-libs-cxxsupp + yutil + cpp-http-io + cpp-openssl-io + cpp-string_utils-url + library-cpp-uri +) +target_sources(cpp-http-simple PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/http/simple/http_client.cpp +) |