aboutsummaryrefslogtreecommitdiffstats
path: root/certs
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 /certs
parentd1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff)
downloadydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz
Sync linux-headers instead of using system ones
Diffstat (limited to 'certs')
-rw-r--r--certs/CMakeLists.darwin.txt32
-rw-r--r--certs/CMakeLists.linux-aarch64.txt34
-rw-r--r--certs/CMakeLists.linux.txt34
-rw-r--r--certs/CMakeLists.txt31
4 files changed, 107 insertions, 24 deletions
diff --git a/certs/CMakeLists.darwin.txt b/certs/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..299a37ddfe
--- /dev/null
+++ b/certs/CMakeLists.darwin.txt
@@ -0,0 +1,32 @@
+
+# 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(certs INTERFACE)
+target_link_libraries(certs INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-resource
+)
+
+add_global_library_for(certs.global certs)
+target_link_libraries(certs.global PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-resource
+)
+target_sources(certs.global PRIVATE
+ ${CMAKE_BINARY_DIR}/certs/b03c08f91a00a60ac9d7daef45f3075a.cpp
+)
+resources(certs.global
+ ${CMAKE_BINARY_DIR}/certs/b03c08f91a00a60ac9d7daef45f3075a.cpp
+ INPUTS
+ ${CMAKE_SOURCE_DIR}/certs/cacert.pem
+ KEYS
+ /builtin/cacert
+)
diff --git a/certs/CMakeLists.linux-aarch64.txt b/certs/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..eeb7fdf63e
--- /dev/null
+++ b/certs/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,34 @@
+
+# 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(certs INTERFACE)
+target_link_libraries(certs INTERFACE
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-resource
+)
+
+add_global_library_for(certs.global certs)
+target_link_libraries(certs.global PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-resource
+)
+target_sources(certs.global PRIVATE
+ ${CMAKE_BINARY_DIR}/certs/b03c08f91a00a60ac9d7daef45f3075a.cpp
+)
+resources(certs.global
+ ${CMAKE_BINARY_DIR}/certs/b03c08f91a00a60ac9d7daef45f3075a.cpp
+ INPUTS
+ ${CMAKE_SOURCE_DIR}/certs/cacert.pem
+ KEYS
+ /builtin/cacert
+)
diff --git a/certs/CMakeLists.linux.txt b/certs/CMakeLists.linux.txt
new file mode 100644
index 0000000000..eeb7fdf63e
--- /dev/null
+++ b/certs/CMakeLists.linux.txt
@@ -0,0 +1,34 @@
+
+# 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(certs INTERFACE)
+target_link_libraries(certs INTERFACE
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-resource
+)
+
+add_global_library_for(certs.global certs)
+target_link_libraries(certs.global PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ library-cpp-resource
+)
+target_sources(certs.global PRIVATE
+ ${CMAKE_BINARY_DIR}/certs/b03c08f91a00a60ac9d7daef45f3075a.cpp
+)
+resources(certs.global
+ ${CMAKE_BINARY_DIR}/certs/b03c08f91a00a60ac9d7daef45f3075a.cpp
+ INPUTS
+ ${CMAKE_SOURCE_DIR}/certs/cacert.pem
+ KEYS
+ /builtin/cacert
+)
diff --git a/certs/CMakeLists.txt b/certs/CMakeLists.txt
index 299a37ddfe..3e0811fb22 100644
--- a/certs/CMakeLists.txt
+++ b/certs/CMakeLists.txt
@@ -6,27 +6,10 @@
# original buildsystem will not be accepted.
-
-add_library(certs INTERFACE)
-target_link_libraries(certs INTERFACE
- contrib-libs-cxxsupp
- yutil
- library-cpp-resource
-)
-
-add_global_library_for(certs.global certs)
-target_link_libraries(certs.global PUBLIC
- contrib-libs-cxxsupp
- yutil
- library-cpp-resource
-)
-target_sources(certs.global PRIVATE
- ${CMAKE_BINARY_DIR}/certs/b03c08f91a00a60ac9d7daef45f3075a.cpp
-)
-resources(certs.global
- ${CMAKE_BINARY_DIR}/certs/b03c08f91a00a60ac9d7daef45f3075a.cpp
- INPUTS
- ${CMAKE_SOURCE_DIR}/certs/cacert.pem
- KEYS
- /builtin/cacert
-)
+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()