aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
committerthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
commit0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch)
tree4d8a246db168f7beaafcd06d486c034115c2123d /contrib/libs/cxxsupp
parentd1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff)
downloadydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz
Sync linux-headers instead of using system ones
Diffstat (limited to 'contrib/libs/cxxsupp')
-rw-r--r--contrib/libs/cxxsupp/CMakeLists.darwin.txt17
-rw-r--r--contrib/libs/cxxsupp/CMakeLists.linux-aarch64.txt18
-rw-r--r--contrib/libs/cxxsupp/CMakeLists.linux.txt18
-rw-r--r--contrib/libs/cxxsupp/CMakeLists.txt16
-rw-r--r--contrib/libs/cxxsupp/builtins/CMakeLists.linux-aarch64.txt3
-rw-r--r--contrib/libs/cxxsupp/builtins/CMakeLists.linux.txt3
-rw-r--r--contrib/libs/cxxsupp/libcxx/CMakeLists.darwin.txt78
-rw-r--r--contrib/libs/cxxsupp/libcxx/CMakeLists.linux-aarch64.txt79
-rw-r--r--contrib/libs/cxxsupp/libcxx/CMakeLists.linux.txt79
-rw-r--r--contrib/libs/cxxsupp/libcxx/CMakeLists.txt77
-rw-r--r--contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt3
-rw-r--r--contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt3
-rw-r--r--contrib/libs/cxxsupp/libcxxrt/CMakeLists.darwin.txt29
-rw-r--r--contrib/libs/cxxsupp/libcxxrt/CMakeLists.linux-aarch64.txt30
-rw-r--r--contrib/libs/cxxsupp/libcxxrt/CMakeLists.linux.txt30
-rw-r--r--contrib/libs/cxxsupp/libcxxrt/CMakeLists.txt28
16 files changed, 411 insertions, 100 deletions
diff --git a/contrib/libs/cxxsupp/CMakeLists.darwin.txt b/contrib/libs/cxxsupp/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..236767d79f
--- /dev/null
+++ b/contrib/libs/cxxsupp/CMakeLists.darwin.txt
@@ -0,0 +1,17 @@
+
+# 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_subdirectory(builtins)
+add_subdirectory(libcxx)
+add_subdirectory(libcxxabi-parts)
+add_subdirectory(libcxxrt)
+
+add_library(contrib-libs-cxxsupp INTERFACE)
+target_link_libraries(contrib-libs-cxxsupp INTERFACE
+ libs-cxxsupp-libcxx
+)
diff --git a/contrib/libs/cxxsupp/CMakeLists.linux-aarch64.txt b/contrib/libs/cxxsupp/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..37eaee68ed
--- /dev/null
+++ b/contrib/libs/cxxsupp/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,18 @@
+
+# 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_subdirectory(builtins)
+add_subdirectory(libcxx)
+add_subdirectory(libcxxabi-parts)
+add_subdirectory(libcxxrt)
+
+add_library(contrib-libs-cxxsupp INTERFACE)
+target_link_libraries(contrib-libs-cxxsupp INTERFACE
+ contrib-libs-linux-headers
+ libs-cxxsupp-libcxx
+)
diff --git a/contrib/libs/cxxsupp/CMakeLists.linux.txt b/contrib/libs/cxxsupp/CMakeLists.linux.txt
new file mode 100644
index 0000000000..37eaee68ed
--- /dev/null
+++ b/contrib/libs/cxxsupp/CMakeLists.linux.txt
@@ -0,0 +1,18 @@
+
+# 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_subdirectory(builtins)
+add_subdirectory(libcxx)
+add_subdirectory(libcxxabi-parts)
+add_subdirectory(libcxxrt)
+
+add_library(contrib-libs-cxxsupp INTERFACE)
+target_link_libraries(contrib-libs-cxxsupp INTERFACE
+ contrib-libs-linux-headers
+ libs-cxxsupp-libcxx
+)
diff --git a/contrib/libs/cxxsupp/CMakeLists.txt b/contrib/libs/cxxsupp/CMakeLists.txt
index 236767d79f..3e0811fb22 100644
--- a/contrib/libs/cxxsupp/CMakeLists.txt
+++ b/contrib/libs/cxxsupp/CMakeLists.txt
@@ -6,12 +6,10 @@
# original buildsystem will not be accepted.
-add_subdirectory(builtins)
-add_subdirectory(libcxx)
-add_subdirectory(libcxxabi-parts)
-add_subdirectory(libcxxrt)
-
-add_library(contrib-libs-cxxsupp INTERFACE)
-target_link_libraries(contrib-libs-cxxsupp INTERFACE
- libs-cxxsupp-libcxx
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/libs/cxxsupp/builtins/CMakeLists.linux-aarch64.txt b/contrib/libs/cxxsupp/builtins/CMakeLists.linux-aarch64.txt
index d2753ebe29..f8b9607b5c 100644
--- a/contrib/libs/cxxsupp/builtins/CMakeLists.linux-aarch64.txt
+++ b/contrib/libs/cxxsupp/builtins/CMakeLists.linux-aarch64.txt
@@ -11,6 +11,9 @@ add_library(libs-cxxsupp-builtins)
target_compile_options(libs-cxxsupp-builtins PRIVATE
-Wno-everything
)
+target_link_libraries(libs-cxxsupp-builtins PUBLIC
+ contrib-libs-linux-headers
+)
target_sources(libs-cxxsupp-builtins PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/addtf3.c
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/ashlti3.c
diff --git a/contrib/libs/cxxsupp/builtins/CMakeLists.linux.txt b/contrib/libs/cxxsupp/builtins/CMakeLists.linux.txt
index 81ad830478..77eea34d68 100644
--- a/contrib/libs/cxxsupp/builtins/CMakeLists.linux.txt
+++ b/contrib/libs/cxxsupp/builtins/CMakeLists.linux.txt
@@ -11,6 +11,9 @@ add_library(libs-cxxsupp-builtins)
target_compile_options(libs-cxxsupp-builtins PRIVATE
-Wno-everything
)
+target_link_libraries(libs-cxxsupp-builtins PUBLIC
+ contrib-libs-linux-headers
+)
target_sources(libs-cxxsupp-builtins PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/addtf3.c
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/builtins/ashlti3.c
diff --git a/contrib/libs/cxxsupp/libcxx/CMakeLists.darwin.txt b/contrib/libs/cxxsupp/libcxx/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..a885e188cf
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxx/CMakeLists.darwin.txt
@@ -0,0 +1,78 @@
+
+# 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-cxxsupp-libcxx)
+target_compile_options(libs-cxxsupp-libcxx PUBLIC
+ -nostdinc++
+ -DLIBCXX_BUILDING_LIBCXXRT
+ -D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES
+)
+target_compile_options(libs-cxxsupp-libcxx PRIVATE
+ -D_LIBCPP_BUILDING_LIBRARY
+ -Wno-everything
+)
+target_include_directories(libs-cxxsupp-libcxx PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/include
+)
+target_include_directories(libs-cxxsupp-libcxx PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src
+)
+target_link_libraries(libs-cxxsupp-libcxx PUBLIC
+ libs-cxxsupp-libcxxabi-parts
+ libs-cxxsupp-libcxxrt
+ libs-cxxsupp-builtins
+)
+target_sources(libs-cxxsupp-libcxx PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/algorithm.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/any.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/assert.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/atomic.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/barrier.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/bind.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/charconv.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/chrono.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/condition_variable.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/condition_variable_destructor.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/debug.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/exception.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/filesystem/directory_iterator.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/filesystem/operations.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/functional.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/future.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/hash.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ios.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ios.instantiations.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/iostream.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/legacy_pointer_safety.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/locale.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/memory.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/mutex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/mutex_destructor.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/optional.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/random.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/random_shuffle.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/regex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/d2fixed.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/d2s.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/f2s.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/shared_mutex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/stdexcept.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/string.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/strstream.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/system_error.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/thread.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/typeinfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/utility.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/valarray.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/variant.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/vector.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/format.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/new.cpp
+)
diff --git a/contrib/libs/cxxsupp/libcxx/CMakeLists.linux-aarch64.txt b/contrib/libs/cxxsupp/libcxx/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..26b67859e8
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxx/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,79 @@
+
+# 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-cxxsupp-libcxx)
+target_compile_options(libs-cxxsupp-libcxx PUBLIC
+ -nostdinc++
+ -DLIBCXX_BUILDING_LIBCXXRT
+ -D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES
+)
+target_compile_options(libs-cxxsupp-libcxx PRIVATE
+ -D_LIBCPP_BUILDING_LIBRARY
+ -Wno-everything
+)
+target_include_directories(libs-cxxsupp-libcxx PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/include
+)
+target_include_directories(libs-cxxsupp-libcxx PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src
+)
+target_link_libraries(libs-cxxsupp-libcxx PUBLIC
+ contrib-libs-linux-headers
+ libs-cxxsupp-libcxxabi-parts
+ libs-cxxsupp-libcxxrt
+ libs-cxxsupp-builtins
+)
+target_sources(libs-cxxsupp-libcxx PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/algorithm.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/any.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/assert.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/atomic.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/barrier.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/bind.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/charconv.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/chrono.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/condition_variable.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/condition_variable_destructor.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/debug.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/exception.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/filesystem/directory_iterator.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/filesystem/operations.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/functional.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/future.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/hash.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ios.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ios.instantiations.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/iostream.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/legacy_pointer_safety.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/locale.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/memory.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/mutex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/mutex_destructor.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/optional.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/random.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/random_shuffle.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/regex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/d2fixed.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/d2s.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/f2s.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/shared_mutex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/stdexcept.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/string.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/strstream.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/system_error.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/thread.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/typeinfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/utility.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/valarray.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/variant.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/vector.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/format.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/new.cpp
+)
diff --git a/contrib/libs/cxxsupp/libcxx/CMakeLists.linux.txt b/contrib/libs/cxxsupp/libcxx/CMakeLists.linux.txt
new file mode 100644
index 0000000000..26b67859e8
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxx/CMakeLists.linux.txt
@@ -0,0 +1,79 @@
+
+# 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-cxxsupp-libcxx)
+target_compile_options(libs-cxxsupp-libcxx PUBLIC
+ -nostdinc++
+ -DLIBCXX_BUILDING_LIBCXXRT
+ -D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES
+)
+target_compile_options(libs-cxxsupp-libcxx PRIVATE
+ -D_LIBCPP_BUILDING_LIBRARY
+ -Wno-everything
+)
+target_include_directories(libs-cxxsupp-libcxx PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/include
+)
+target_include_directories(libs-cxxsupp-libcxx PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src
+)
+target_link_libraries(libs-cxxsupp-libcxx PUBLIC
+ contrib-libs-linux-headers
+ libs-cxxsupp-libcxxabi-parts
+ libs-cxxsupp-libcxxrt
+ libs-cxxsupp-builtins
+)
+target_sources(libs-cxxsupp-libcxx PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/algorithm.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/any.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/assert.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/atomic.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/barrier.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/bind.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/charconv.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/chrono.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/condition_variable.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/condition_variable_destructor.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/debug.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/exception.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/filesystem/directory_iterator.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/filesystem/operations.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/functional.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/future.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/hash.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ios.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ios.instantiations.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/iostream.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/legacy_pointer_safety.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/locale.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/memory.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/mutex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/mutex_destructor.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/optional.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/random.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/random_shuffle.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/regex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/d2fixed.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/d2s.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/f2s.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/shared_mutex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/stdexcept.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/string.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/strstream.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/system_error.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/thread.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/typeinfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/utility.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/valarray.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/variant.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/vector.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/format.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/new.cpp
+)
diff --git a/contrib/libs/cxxsupp/libcxx/CMakeLists.txt b/contrib/libs/cxxsupp/libcxx/CMakeLists.txt
index a885e188cf..3e0811fb22 100644
--- a/contrib/libs/cxxsupp/libcxx/CMakeLists.txt
+++ b/contrib/libs/cxxsupp/libcxx/CMakeLists.txt
@@ -6,73 +6,10 @@
# original buildsystem will not be accepted.
-
-add_library(libs-cxxsupp-libcxx)
-target_compile_options(libs-cxxsupp-libcxx PUBLIC
- -nostdinc++
- -DLIBCXX_BUILDING_LIBCXXRT
- -D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES
-)
-target_compile_options(libs-cxxsupp-libcxx PRIVATE
- -D_LIBCPP_BUILDING_LIBRARY
- -Wno-everything
-)
-target_include_directories(libs-cxxsupp-libcxx PUBLIC
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/include
-)
-target_include_directories(libs-cxxsupp-libcxx PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src
-)
-target_link_libraries(libs-cxxsupp-libcxx PUBLIC
- libs-cxxsupp-libcxxabi-parts
- libs-cxxsupp-libcxxrt
- libs-cxxsupp-builtins
-)
-target_sources(libs-cxxsupp-libcxx PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/algorithm.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/any.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/assert.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/atomic.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/barrier.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/bind.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/charconv.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/chrono.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/condition_variable.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/condition_variable_destructor.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/debug.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/exception.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/filesystem/directory_iterator.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/filesystem/operations.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/functional.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/future.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/hash.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ios.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ios.instantiations.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/iostream.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/legacy_pointer_safety.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/locale.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/memory.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/mutex.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/mutex_destructor.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/optional.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/random.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/random_shuffle.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/regex.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/d2fixed.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/d2s.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/ryu/f2s.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/shared_mutex.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/stdexcept.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/string.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/strstream.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/system_error.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/thread.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/typeinfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/utility.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/valarray.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/variant.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/vector.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/format.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/src/new.cpp
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt
index b23a1c1005..9ecfb3a972 100644
--- a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt
+++ b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux-aarch64.txt
@@ -20,6 +20,9 @@ target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx
)
+target_link_libraries(libs-cxxsupp-libcxxabi-parts PUBLIC
+ contrib-libs-linux-headers
+)
target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp
diff --git a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt
index b5c3cdc400..c24eb6a887 100644
--- a/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt
+++ b/contrib/libs/cxxsupp/libcxxabi-parts/CMakeLists.linux.txt
@@ -20,6 +20,9 @@ target_include_directories(libs-cxxsupp-libcxxabi-parts PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx/include
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxx
)
+target_link_libraries(libs-cxxsupp-libcxxabi-parts PUBLIC
+ contrib-libs-linux-headers
+)
target_sources(libs-cxxsupp-libcxxabi-parts PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/cxa_thread_atexit.cpp
${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxabi/src/abort_message.cpp
diff --git a/contrib/libs/cxxsupp/libcxxrt/CMakeLists.darwin.txt b/contrib/libs/cxxsupp/libcxxrt/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..833e0ce2d7
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxxrt/CMakeLists.darwin.txt
@@ -0,0 +1,29 @@
+
+# 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-cxxsupp-libcxxrt)
+target_compile_options(libs-cxxsupp-libcxxrt PRIVATE
+ -nostdinc++
+ -Wno-everything
+)
+target_include_directories(libs-cxxsupp-libcxxrt PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt
+)
+target_link_libraries(libs-cxxsupp-libcxxrt PUBLIC
+ contrib-libs-libunwind
+)
+target_sources(libs-cxxsupp-libcxxrt PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/auxhelper.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/dynamic_cast.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/exception.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/guard.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/memory.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/stdexcept.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/typeinfo.cc
+)
diff --git a/contrib/libs/cxxsupp/libcxxrt/CMakeLists.linux-aarch64.txt b/contrib/libs/cxxsupp/libcxxrt/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..6d76cead49
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxxrt/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,30 @@
+
+# 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-cxxsupp-libcxxrt)
+target_compile_options(libs-cxxsupp-libcxxrt PRIVATE
+ -nostdinc++
+ -Wno-everything
+)
+target_include_directories(libs-cxxsupp-libcxxrt PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt
+)
+target_link_libraries(libs-cxxsupp-libcxxrt PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-libunwind
+)
+target_sources(libs-cxxsupp-libcxxrt PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/auxhelper.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/dynamic_cast.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/exception.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/guard.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/memory.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/stdexcept.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/typeinfo.cc
+)
diff --git a/contrib/libs/cxxsupp/libcxxrt/CMakeLists.linux.txt b/contrib/libs/cxxsupp/libcxxrt/CMakeLists.linux.txt
new file mode 100644
index 0000000000..6d76cead49
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxxrt/CMakeLists.linux.txt
@@ -0,0 +1,30 @@
+
+# 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-cxxsupp-libcxxrt)
+target_compile_options(libs-cxxsupp-libcxxrt PRIVATE
+ -nostdinc++
+ -Wno-everything
+)
+target_include_directories(libs-cxxsupp-libcxxrt PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt
+)
+target_link_libraries(libs-cxxsupp-libcxxrt PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-libunwind
+)
+target_sources(libs-cxxsupp-libcxxrt PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/auxhelper.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/dynamic_cast.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/exception.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/guard.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/memory.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/stdexcept.cc
+ ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/typeinfo.cc
+)
diff --git a/contrib/libs/cxxsupp/libcxxrt/CMakeLists.txt b/contrib/libs/cxxsupp/libcxxrt/CMakeLists.txt
index 833e0ce2d7..3e0811fb22 100644
--- a/contrib/libs/cxxsupp/libcxxrt/CMakeLists.txt
+++ b/contrib/libs/cxxsupp/libcxxrt/CMakeLists.txt
@@ -6,24 +6,10 @@
# original buildsystem will not be accepted.
-
-add_library(libs-cxxsupp-libcxxrt)
-target_compile_options(libs-cxxsupp-libcxxrt PRIVATE
- -nostdinc++
- -Wno-everything
-)
-target_include_directories(libs-cxxsupp-libcxxrt PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt
-)
-target_link_libraries(libs-cxxsupp-libcxxrt PUBLIC
- contrib-libs-libunwind
-)
-target_sources(libs-cxxsupp-libcxxrt PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/auxhelper.cc
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/dynamic_cast.cc
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/exception.cc
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/guard.cc
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/memory.cc
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/stdexcept.cc
- ${CMAKE_SOURCE_DIR}/contrib/libs/cxxsupp/libcxxrt/typeinfo.cc
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()