aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libevent
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-03-09 12:42:44 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-03-09 12:42:44 +0300
commit6324d075a5e80b6943b5de6b465b775050fe83df (patch)
treee02ce32e988042438f64df770a528164ac572879 /contrib/libs/libevent
parent039e25e1597bec288de44e5061c1b84e195add08 (diff)
downloadydb-6324d075a5e80b6943b5de6b465b775050fe83df.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/libs/libevent')
-rw-r--r--contrib/libs/libevent/CMakeLists.txt2
-rw-r--r--contrib/libs/libevent/CMakeLists.windows-x86_64.txt23
-rw-r--r--contrib/libs/libevent/event_core/CMakeLists.txt2
-rw-r--r--contrib/libs/libevent/event_core/CMakeLists.windows-x86_64.txt43
-rw-r--r--contrib/libs/libevent/event_extra/CMakeLists.txt2
-rw-r--r--contrib/libs/libevent/event_extra/CMakeLists.windows-x86_64.txt28
-rw-r--r--contrib/libs/libevent/event_openssl/CMakeLists.txt2
-rw-r--r--contrib/libs/libevent/event_openssl/CMakeLists.windows-x86_64.txt27
-rw-r--r--contrib/libs/libevent/event_thread/CMakeLists.txt2
-rw-r--r--contrib/libs/libevent/event_thread/CMakeLists.windows-x86_64.txt25
10 files changed, 156 insertions, 0 deletions
diff --git a/contrib/libs/libevent/CMakeLists.txt b/contrib/libs/libevent/CMakeLists.txt
index 8f8c04afe5..d90657116d 100644
--- a/contrib/libs/libevent/CMakeLists.txt
+++ b/contrib/libs/libevent/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/contrib/libs/libevent/CMakeLists.windows-x86_64.txt b/contrib/libs/libevent/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..6b663371d0
--- /dev/null
+++ b/contrib/libs/libevent/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,23 @@
+
+# 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(event_core)
+add_subdirectory(event_extra)
+add_subdirectory(event_openssl)
+add_subdirectory(event_thread)
+
+add_library(contrib-libs-libevent INTERFACE)
+target_include_directories(contrib-libs-libevent INTERFACE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/include
+)
+target_link_libraries(contrib-libs-libevent INTERFACE
+ libs-libevent-event_core
+ libs-libevent-event_extra
+ libs-libevent-event_openssl
+ libs-libevent-event_thread
+)
diff --git a/contrib/libs/libevent/event_core/CMakeLists.txt b/contrib/libs/libevent/event_core/CMakeLists.txt
index 8f8c04afe5..d90657116d 100644
--- a/contrib/libs/libevent/event_core/CMakeLists.txt
+++ b/contrib/libs/libevent/event_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/contrib/libs/libevent/event_core/CMakeLists.windows-x86_64.txt b/contrib/libs/libevent/event_core/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..baa0967639
--- /dev/null
+++ b/contrib/libs/libevent/event_core/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,43 @@
+
+# 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(libs-libevent-event_core)
+target_compile_options(libs-libevent-event_core PRIVATE
+ -DHAVE_CONFIG_H
+ -DEVENT__HAVE_STRLCPY=1
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
+)
+target_include_directories(libs-libevent-event_core PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/include
+)
+target_link_libraries(libs-libevent-event_core PUBLIC
+ contrib-libs-libc_compat
+)
+target_sources(libs-libevent-event_core PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/buffer.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_filter.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_pair.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_ratelim.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_sock.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/event.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evmap.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evthread.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evutil.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evutil_rand.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evutil_time.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/listener.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/log.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/signal.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/buffer_iocp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_async.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/event_iocp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/win32select.c
+)
diff --git a/contrib/libs/libevent/event_extra/CMakeLists.txt b/contrib/libs/libevent/event_extra/CMakeLists.txt
index 8f8c04afe5..d90657116d 100644
--- a/contrib/libs/libevent/event_extra/CMakeLists.txt
+++ b/contrib/libs/libevent/event_extra/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/contrib/libs/libevent/event_extra/CMakeLists.windows-x86_64.txt b/contrib/libs/libevent/event_extra/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..18fe1e7a8b
--- /dev/null
+++ b/contrib/libs/libevent/event_extra/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,28 @@
+
+# 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(libs-libevent-event_extra)
+target_compile_options(libs-libevent-event_extra PRIVATE
+ -DHAVE_CONFIG_H
+ -DEVENT__HAVE_STRLCPY=1
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
+)
+target_include_directories(libs-libevent-event_extra PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/include
+)
+target_link_libraries(libs-libevent-event_extra PUBLIC
+ contrib-libs-libc_compat
+)
+target_sources(libs-libevent-event_extra PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evdns.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/event_tagging.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evrpc.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/http.c
+)
diff --git a/contrib/libs/libevent/event_openssl/CMakeLists.txt b/contrib/libs/libevent/event_openssl/CMakeLists.txt
index 8f8c04afe5..d90657116d 100644
--- a/contrib/libs/libevent/event_openssl/CMakeLists.txt
+++ b/contrib/libs/libevent/event_openssl/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/contrib/libs/libevent/event_openssl/CMakeLists.windows-x86_64.txt b/contrib/libs/libevent/event_openssl/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..09f088478d
--- /dev/null
+++ b/contrib/libs/libevent/event_openssl/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,27 @@
+
+# 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_library(libs-libevent-event_openssl)
+target_compile_options(libs-libevent-event_openssl PRIVATE
+ -DHAVE_CONFIG_H
+ -DEVENT__HAVE_STRLCPY=1
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
+)
+target_include_directories(libs-libevent-event_openssl PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/include
+)
+target_link_libraries(libs-libevent-event_openssl PUBLIC
+ contrib-libs-libc_compat
+ OpenSSL::OpenSSL
+)
+target_sources(libs-libevent-event_openssl PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_openssl.c
+)
diff --git a/contrib/libs/libevent/event_thread/CMakeLists.txt b/contrib/libs/libevent/event_thread/CMakeLists.txt
index 8f8c04afe5..d90657116d 100644
--- a/contrib/libs/libevent/event_thread/CMakeLists.txt
+++ b/contrib/libs/libevent/event_thread/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/contrib/libs/libevent/event_thread/CMakeLists.windows-x86_64.txt b/contrib/libs/libevent/event_thread/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..486fde92be
--- /dev/null
+++ b/contrib/libs/libevent/event_thread/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(libs-libevent-event_thread)
+target_compile_options(libs-libevent-event_thread PRIVATE
+ -DHAVE_CONFIG_H
+ -DEVENT__HAVE_STRLCPY=1
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
+)
+target_include_directories(libs-libevent-event_thread PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/include
+)
+target_link_libraries(libs-libevent-event_thread PUBLIC
+ contrib-libs-libc_compat
+)
+target_sources(libs-libevent-event_thread PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/evthread_win32.c
+)