aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libevent
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
commitb4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch)
tree6a64ab25a145265287789bceed3f59e953561206 /contrib/libs/libevent
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'contrib/libs/libevent')
-rw-r--r--contrib/libs/libevent/CMakeLists.txt10
-rw-r--r--contrib/libs/libevent/event_core/CMakeLists.txt32
-rw-r--r--contrib/libs/libevent/event_extra/CMakeLists.txt18
-rw-r--r--contrib/libs/libevent/event_openssl/CMakeLists.txt18
-rw-r--r--contrib/libs/libevent/event_thread/CMakeLists.txt15
5 files changed, 93 insertions, 0 deletions
diff --git a/contrib/libs/libevent/CMakeLists.txt b/contrib/libs/libevent/CMakeLists.txt
new file mode 100644
index 0000000000..9e07b6167f
--- /dev/null
+++ b/contrib/libs/libevent/CMakeLists.txt
@@ -0,0 +1,10 @@
+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
new file mode 100644
index 0000000000..c01b202938
--- /dev/null
+++ b/contrib/libs/libevent/event_core/CMakeLists.txt
@@ -0,0 +1,32 @@
+add_library(libs-libevent-event_core)
+target_compile_options(libs-libevent-event_core PRIVATE
+ -DHAVE_CONFIG_H
+ -DEVENT__HAVE_STRLCPY=1
+)
+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/poll.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/select.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/epoll.c
+)
diff --git a/contrib/libs/libevent/event_extra/CMakeLists.txt b/contrib/libs/libevent/event_extra/CMakeLists.txt
new file mode 100644
index 0000000000..72db0c0d43
--- /dev/null
+++ b/contrib/libs/libevent/event_extra/CMakeLists.txt
@@ -0,0 +1,18 @@
+add_library(libs-libevent-event_extra)
+target_compile_options(libs-libevent-event_extra PRIVATE
+ -DHAVE_CONFIG_H
+ -DEVENT__HAVE_STRLCPY=1
+)
+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
new file mode 100644
index 0000000000..976898ab8c
--- /dev/null
+++ b/contrib/libs/libevent/event_openssl/CMakeLists.txt
@@ -0,0 +1,18 @@
+find_package(OpenSSL)
+
+add_library(libs-libevent-event_openssl)
+target_compile_options(libs-libevent-event_openssl PRIVATE
+ -DHAVE_CONFIG_H
+ -DEVENT__HAVE_STRLCPY=1
+)
+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
new file mode 100644
index 0000000000..8014c02172
--- /dev/null
+++ b/contrib/libs/libevent/event_thread/CMakeLists.txt
@@ -0,0 +1,15 @@
+add_library(libs-libevent-event_thread)
+target_compile_options(libs-libevent-event_thread PRIVATE
+ -DHAVE_CONFIG_H
+ -DEVENT__HAVE_STRLCPY=1
+)
+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_pthread.c
+)