aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libevent
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-10 11:08:43 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-10 11:08:43 +0300
commitd32759b7eb812b4a4033cc61e1e98245544b4992 (patch)
tree22bbb3e9b46c1b55818aaf475f699ae187ce328b /contrib/libs/libevent
parent471e9b902d01b70b2d12146772e30528a216ee82 (diff)
downloadydb-d32759b7eb812b4a4033cc61e1e98245544b4992.tar.gz
intermediate changes
ref:7e819949a28b77d60c98019ed1950733e734a77e
Diffstat (limited to 'contrib/libs/libevent')
-rw-r--r--contrib/libs/libevent/event_core/CMakeLists.darwin.txt41
-rw-r--r--contrib/libs/libevent/event_core/CMakeLists.linux.txt41
-rw-r--r--contrib/libs/libevent/event_core/CMakeLists.txt38
3 files changed, 87 insertions, 33 deletions
diff --git a/contrib/libs/libevent/event_core/CMakeLists.darwin.txt b/contrib/libs/libevent/event_core/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..3ba63c0120
--- /dev/null
+++ b/contrib/libs/libevent/event_core/CMakeLists.darwin.txt
@@ -0,0 +1,41 @@
+
+# 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_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/kqueue.c
+)
diff --git a/contrib/libs/libevent/event_core/CMakeLists.linux.txt b/contrib/libs/libevent/event_core/CMakeLists.linux.txt
new file mode 100644
index 0000000000..4d6103fdb1
--- /dev/null
+++ b/contrib/libs/libevent/event_core/CMakeLists.linux.txt
@@ -0,0 +1,41 @@
+
+# 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_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_core/CMakeLists.txt b/contrib/libs/libevent/event_core/CMakeLists.txt
index 4d6103fdb1..a681d385f3 100644
--- a/contrib/libs/libevent/event_core/CMakeLists.txt
+++ b/contrib/libs/libevent/event_core/CMakeLists.txt
@@ -6,36 +6,8 @@
# 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
-)
-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
-)
+if (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (UNIX)
+ include(CMakeLists.linux.txt)
+endif()