From 0c31d97afd7858af5f8f858c8addf91655ca9ccc Mon Sep 17 00:00:00 2001
From: thegeorg <thegeorg@yandex-team.com>
Date: Thu, 15 Dec 2022 19:25:15 +0300
Subject: Sync linux-headers instead of using system ones

---
 .../cpp/threading/chunk_queue/CMakeLists.darwin.txt   | 18 ++++++++++++++++++
 .../chunk_queue/CMakeLists.linux-aarch64.txt          | 19 +++++++++++++++++++
 .../cpp/threading/chunk_queue/CMakeLists.linux.txt    | 19 +++++++++++++++++++
 library/cpp/threading/chunk_queue/CMakeLists.txt      | 17 +++++++----------
 4 files changed, 63 insertions(+), 10 deletions(-)
 create mode 100644 library/cpp/threading/chunk_queue/CMakeLists.darwin.txt
 create mode 100644 library/cpp/threading/chunk_queue/CMakeLists.linux-aarch64.txt
 create mode 100644 library/cpp/threading/chunk_queue/CMakeLists.linux.txt

(limited to 'library/cpp/threading/chunk_queue')

diff --git a/library/cpp/threading/chunk_queue/CMakeLists.darwin.txt b/library/cpp/threading/chunk_queue/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..25e26b8edf
--- /dev/null
+++ b/library/cpp/threading/chunk_queue/CMakeLists.darwin.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_library(cpp-threading-chunk_queue)
+target_link_libraries(cpp-threading-chunk_queue PUBLIC
+  contrib-libs-cxxsupp
+  yutil
+  cpp-deprecated-atomic
+)
+target_sources(cpp-threading-chunk_queue PRIVATE
+  ${CMAKE_SOURCE_DIR}/library/cpp/threading/chunk_queue/queue.cpp
+)
diff --git a/library/cpp/threading/chunk_queue/CMakeLists.linux-aarch64.txt b/library/cpp/threading/chunk_queue/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..ea370dd426
--- /dev/null
+++ b/library/cpp/threading/chunk_queue/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,19 @@
+
+# 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(cpp-threading-chunk_queue)
+target_link_libraries(cpp-threading-chunk_queue PUBLIC
+  contrib-libs-linux-headers
+  contrib-libs-cxxsupp
+  yutil
+  cpp-deprecated-atomic
+)
+target_sources(cpp-threading-chunk_queue PRIVATE
+  ${CMAKE_SOURCE_DIR}/library/cpp/threading/chunk_queue/queue.cpp
+)
diff --git a/library/cpp/threading/chunk_queue/CMakeLists.linux.txt b/library/cpp/threading/chunk_queue/CMakeLists.linux.txt
new file mode 100644
index 0000000000..ea370dd426
--- /dev/null
+++ b/library/cpp/threading/chunk_queue/CMakeLists.linux.txt
@@ -0,0 +1,19 @@
+
+# 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(cpp-threading-chunk_queue)
+target_link_libraries(cpp-threading-chunk_queue PUBLIC
+  contrib-libs-linux-headers
+  contrib-libs-cxxsupp
+  yutil
+  cpp-deprecated-atomic
+)
+target_sources(cpp-threading-chunk_queue PRIVATE
+  ${CMAKE_SOURCE_DIR}/library/cpp/threading/chunk_queue/queue.cpp
+)
diff --git a/library/cpp/threading/chunk_queue/CMakeLists.txt b/library/cpp/threading/chunk_queue/CMakeLists.txt
index 25e26b8edf..3e0811fb22 100644
--- a/library/cpp/threading/chunk_queue/CMakeLists.txt
+++ b/library/cpp/threading/chunk_queue/CMakeLists.txt
@@ -6,13 +6,10 @@
 # original buildsystem will not be accepted.
 
 
-
-add_library(cpp-threading-chunk_queue)
-target_link_libraries(cpp-threading-chunk_queue PUBLIC
-  contrib-libs-cxxsupp
-  yutil
-  cpp-deprecated-atomic
-)
-target_sources(cpp-threading-chunk_queue PRIVATE
-  ${CMAKE_SOURCE_DIR}/library/cpp/threading/chunk_queue/queue.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()
-- 
cgit v1.2.3