diff options
author | dcherednik <dcherednik@ydb.tech> | 2023-11-20 13:23:37 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2023-11-20 14:34:20 +0300 |
commit | ffff7a34e41bf0dd7d5e0f3d78aeaebbf56200e6 (patch) | |
tree | 47612a33d11873a4ffb450f68a720efeb9b21cb4 /contrib/libs/libevent | |
parent | 6d8d9a430dea2bfa0e6ce219a8e4f62f02fd2884 (diff) | |
download | ydb-ffff7a34e41bf0dd7d5e0f3d78aeaebbf56200e6.tar.gz |
add darwin-arm64 CMakeLists
Diffstat (limited to 'contrib/libs/libevent')
10 files changed, 154 insertions, 0 deletions
diff --git a/contrib/libs/libevent/CMakeLists.darwin-arm64.txt b/contrib/libs/libevent/CMakeLists.darwin-arm64.txt new file mode 100644 index 0000000000..6b663371d0 --- /dev/null +++ b/contrib/libs/libevent/CMakeLists.darwin-arm64.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/CMakeLists.txt b/contrib/libs/libevent/CMakeLists.txt index f8b31df0c1..2dce3a77fe 100644 --- a/contrib/libs/libevent/CMakeLists.txt +++ b/contrib/libs/libevent/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarc include(CMakeLists.linux-aarch64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + include(CMakeLists.darwin-arm64.txt) elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) diff --git a/contrib/libs/libevent/event_core/CMakeLists.darwin-arm64.txt b/contrib/libs/libevent/event_core/CMakeLists.darwin-arm64.txt new file mode 100644 index 0000000000..76257b1032 --- /dev/null +++ b/contrib/libs/libevent/event_core/CMakeLists.darwin-arm64.txt @@ -0,0 +1,42 @@ + +# 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/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.txt b/contrib/libs/libevent/event_core/CMakeLists.txt index f8b31df0c1..2dce3a77fe 100644 --- a/contrib/libs/libevent/event_core/CMakeLists.txt +++ b/contrib/libs/libevent/event_core/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarc include(CMakeLists.linux-aarch64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + include(CMakeLists.darwin-arm64.txt) elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) diff --git a/contrib/libs/libevent/event_extra/CMakeLists.darwin-arm64.txt b/contrib/libs/libevent/event_extra/CMakeLists.darwin-arm64.txt new file mode 100644 index 0000000000..18fe1e7a8b --- /dev/null +++ b/contrib/libs/libevent/event_extra/CMakeLists.darwin-arm64.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_extra/CMakeLists.txt b/contrib/libs/libevent/event_extra/CMakeLists.txt index f8b31df0c1..2dce3a77fe 100644 --- a/contrib/libs/libevent/event_extra/CMakeLists.txt +++ b/contrib/libs/libevent/event_extra/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarc include(CMakeLists.linux-aarch64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + include(CMakeLists.darwin-arm64.txt) elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) diff --git a/contrib/libs/libevent/event_openssl/CMakeLists.darwin-arm64.txt b/contrib/libs/libevent/event_openssl/CMakeLists.darwin-arm64.txt new file mode 100644 index 0000000000..7444bff323 --- /dev/null +++ b/contrib/libs/libevent/event_openssl/CMakeLists.darwin-arm64.txt @@ -0,0 +1,26 @@ + +# 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_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 + contrib-libs-openssl +) +target_sources(libs-libevent-event_openssl PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/libevent/bufferevent_openssl.c +) diff --git a/contrib/libs/libevent/event_openssl/CMakeLists.txt b/contrib/libs/libevent/event_openssl/CMakeLists.txt index f8b31df0c1..2dce3a77fe 100644 --- a/contrib/libs/libevent/event_openssl/CMakeLists.txt +++ b/contrib/libs/libevent/event_openssl/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarc include(CMakeLists.linux-aarch64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + include(CMakeLists.darwin-arm64.txt) elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) diff --git a/contrib/libs/libevent/event_thread/CMakeLists.darwin-arm64.txt b/contrib/libs/libevent/event_thread/CMakeLists.darwin-arm64.txt new file mode 100644 index 0000000000..0cbd83fbf4 --- /dev/null +++ b/contrib/libs/libevent/event_thread/CMakeLists.darwin-arm64.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_pthread.c +) diff --git a/contrib/libs/libevent/event_thread/CMakeLists.txt b/contrib/libs/libevent/event_thread/CMakeLists.txt index f8b31df0c1..2dce3a77fe 100644 --- a/contrib/libs/libevent/event_thread/CMakeLists.txt +++ b/contrib/libs/libevent/event_thread/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarc include(CMakeLists.linux-aarch64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + include(CMakeLists.darwin-arm64.txt) elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) |