aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorhrustyashko <hrustyashko@yandex-team.ru>2022-04-07 10:47:49 +0300
committerhrustyashko <hrustyashko@yandex-team.ru>2022-04-07 10:47:49 +0300
commit18dcbc27f5d6c6d5a79cc85d30587dc2f14485cd (patch)
tree2f5f0cadb5822f8c712e961b0933722157f7e51e /contrib
parentfcb0844ab2c3ff96971288ec2d7b024051eb1658 (diff)
downloadydb-18dcbc27f5d6c6d5a79cc85d30587dc2f14485cd.tar.gz
YQ-1003 ExternalFunction provider
store connection name at resolved function rename expr nodes to dq_function dq function data provider ref:23fa1160965eb31574ae1c31a5a9152781f238c2
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/expat/CMakeLists.linux.txt22
-rw-r--r--contrib/libs/expat/CMakeLists.txt17
-rw-r--r--contrib/libs/sqlite3/CMakeLists.txt42
-rw-r--r--contrib/libs/xz/common/CMakeLists.txt24
-rw-r--r--contrib/libs/xz/liblzma/CMakeLists.txt108
-rw-r--r--contrib/restricted/libffi/CMakeLists.darwin.txt38
-rw-r--r--contrib/restricted/libffi/CMakeLists.linux.txt38
-rw-r--r--contrib/restricted/libffi/CMakeLists.txt13
-rw-r--r--contrib/tools/python3/lib/CMakeLists.txt21
-rw-r--r--contrib/tools/python3/src/CMakeLists.darwin.txt163
-rw-r--r--contrib/tools/python3/src/CMakeLists.linux.txt157
-rw-r--r--contrib/tools/python3/src/CMakeLists.txt13
-rw-r--r--contrib/tools/python3/src/Modules/CMakeLists.darwin.txt137
-rw-r--r--contrib/tools/python3/src/Modules/CMakeLists.linux.txt136
-rw-r--r--contrib/tools/python3/src/Modules/CMakeLists.txt13
-rw-r--r--contrib/tools/python3/src/Modules/_sqlite/CMakeLists.txt34
16 files changed, 951 insertions, 25 deletions
diff --git a/contrib/libs/expat/CMakeLists.linux.txt b/contrib/libs/expat/CMakeLists.linux.txt
deleted file mode 100644
index 242054b589..0000000000
--- a/contrib/libs/expat/CMakeLists.linux.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-
-# 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(contrib-libs-expat)
-target_compile_options(contrib-libs-expat PRIVATE
- -DHAVE_EXPAT_CONFIG_H
-)
-target_include_directories(contrib-libs-expat PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/expat
- ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib
-)
-target_sources(contrib-libs-expat PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmlparse.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmlrole.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmltok.c
-)
diff --git a/contrib/libs/expat/CMakeLists.txt b/contrib/libs/expat/CMakeLists.txt
index c031ddb850..242054b589 100644
--- a/contrib/libs/expat/CMakeLists.txt
+++ b/contrib/libs/expat/CMakeLists.txt
@@ -6,6 +6,17 @@
# original buildsystem will not be accepted.
-if (UNIX)
- include(CMakeLists.linux.txt)
-endif()
+
+add_library(contrib-libs-expat)
+target_compile_options(contrib-libs-expat PRIVATE
+ -DHAVE_EXPAT_CONFIG_H
+)
+target_include_directories(contrib-libs-expat PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/expat
+ ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib
+)
+target_sources(contrib-libs-expat PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmlparse.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmlrole.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/expat/lib/xmltok.c
+)
diff --git a/contrib/libs/sqlite3/CMakeLists.txt b/contrib/libs/sqlite3/CMakeLists.txt
new file mode 100644
index 0000000000..7a5a1ce6c1
--- /dev/null
+++ b/contrib/libs/sqlite3/CMakeLists.txt
@@ -0,0 +1,42 @@
+
+# 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(contrib-libs-sqlite3)
+target_compile_options(contrib-libs-sqlite3 PRIVATE
+ -DBUILD_sqlite
+ -DHAVE_USLEEP
+ -DSQLITE_ENABLE_COLUMN_METADATA
+ -DSQLITE_ENABLE_DBSTAT_VTAB
+ -DSQLITE_ENABLE_FTS3
+ -DSQLITE_ENABLE_FTS3_PARENTHESIS
+ -DSQLITE_ENABLE_FTS3_TOKENIZER
+ -DSQLITE_ENABLE_FTS4
+ -DSQLITE_ENABLE_FTS5
+ -DSQLITE_ENABLE_JSON1
+ -DSQLITE_ENABLE_MATH_FUNCTIONS
+ -DSQLITE_ENABLE_RTREE
+ -DSQLITE_ENABLE_STMT_SCANSTATUS
+ -DSQLITE_ENABLE_UNLOCK_NOTIFY
+ -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
+ -DSQLITE_HAVE_ZLIB=1
+ -DSQLITE_MAX_EXPR_DEPTH=10000
+ -DSQLITE_MAX_VARIABLE_NUMBER=250000
+ -DSQLITE_SECURE_DELETE
+ -DSQLITE_SOUNDEX
+ -DSQLITE_TEMP_STORE=1
+ -DSQLITE_THREADSAFE=1
+ -DSQLITE_OS_UNIX
+)
+target_include_directories(contrib-libs-sqlite3 PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/sqlite3
+)
+target_sources(contrib-libs-sqlite3 PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/sqlite3/sqlite3.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/sqlite3/test_multiplex.c
+)
diff --git a/contrib/libs/xz/common/CMakeLists.txt b/contrib/libs/xz/common/CMakeLists.txt
new file mode 100644
index 0000000000..a9f5098f6d
--- /dev/null
+++ b/contrib/libs/xz/common/CMakeLists.txt
@@ -0,0 +1,24 @@
+
+# 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-xz-common)
+target_compile_options(libs-xz-common PRIVATE
+ -DTUKLIB_SYMBOL_PREFIX=lzma_
+)
+target_include_directories(libs-xz-common PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/common
+)
+target_link_libraries(libs-xz-common PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(libs-xz-common PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/common/tuklib_cpucores.c
+)
diff --git a/contrib/libs/xz/liblzma/CMakeLists.txt b/contrib/libs/xz/liblzma/CMakeLists.txt
new file mode 100644
index 0000000000..3926ba1729
--- /dev/null
+++ b/contrib/libs/xz/liblzma/CMakeLists.txt
@@ -0,0 +1,108 @@
+
+# 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-xz-liblzma)
+target_compile_options(libs-xz-liblzma PUBLIC
+ -DLZMA_API_STATIC
+)
+target_compile_options(libs-xz-liblzma PRIVATE
+ -DHAVE_CONFIG_H
+ -DTUKLIB_SYMBOL_PREFIX=lzma_
+)
+target_include_directories(libs-xz-liblzma PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/api
+)
+target_include_directories(libs-xz-liblzma PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/api
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/delta
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lz
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/rangecoder
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/common
+)
+target_link_libraries(libs-xz-liblzma PUBLIC
+ contrib-libs-cxxsupp
+ libs-xz-common
+)
+target_sources(libs-xz-liblzma PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/check.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/crc32_fast.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/crc32_table.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/crc64_fast.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/crc64_table.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/check/sha256.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/alone_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/alone_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/auto_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_buffer_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_buffer_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_header_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_header_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/block_util.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/common.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_buffer_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_decoder_memusage.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_encoder_memusage.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/easy_preset.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_buffer_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_buffer_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_common.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_flags_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/filter_flags_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/hardware_cputhreads.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/index.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/index_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/index_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/index_hash.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/outqueue.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_buffer_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_buffer_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_encoder_mt.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_flags_common.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_flags_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/stream_flags_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/vli_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/vli_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/common/vli_size.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/delta/delta_common.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/delta/delta_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/delta/delta_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lz/lz_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lz/lz_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lz/lz_encoder_mf.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/fastpos_table.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma2_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma2_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_encoder_optimum_fast.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_encoder_optimum_normal.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/lzma/lzma_encoder_presets.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/rangecoder/price_table.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/arm.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/armthumb.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/ia64.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/powerpc.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/simple_coder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/simple_decoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/simple_encoder.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/sparc.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/xz/liblzma/simple/x86.c
+)
diff --git a/contrib/restricted/libffi/CMakeLists.darwin.txt b/contrib/restricted/libffi/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..09883b16d1
--- /dev/null
+++ b/contrib/restricted/libffi/CMakeLists.darwin.txt
@@ -0,0 +1,38 @@
+
+# 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(contrib-restricted-libffi)
+target_compile_options(contrib-restricted-libffi PUBLIC
+ -DFFI_BUILDING
+)
+target_compile_options(contrib-restricted-libffi PRIVATE
+ -DHAVE_CONFIG_H
+)
+target_include_directories(contrib-restricted-libffi PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/include
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/configs/x86_64-apple-macosx/include
+)
+target_include_directories(contrib-restricted-libffi PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/include
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/configs/x86_64-apple-macosx
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/configs/x86_64-apple-macosx/include
+)
+target_sources(contrib-restricted-libffi PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/closures.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/java_raw_api.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/prep_cif.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/raw_api.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/types.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/x86/ffi64.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/x86/ffiw64.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/x86/unix64.S
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/x86/win64.S
+)
diff --git a/contrib/restricted/libffi/CMakeLists.linux.txt b/contrib/restricted/libffi/CMakeLists.linux.txt
new file mode 100644
index 0000000000..838df7bbc8
--- /dev/null
+++ b/contrib/restricted/libffi/CMakeLists.linux.txt
@@ -0,0 +1,38 @@
+
+# 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(contrib-restricted-libffi)
+target_compile_options(contrib-restricted-libffi PUBLIC
+ -DFFI_BUILDING
+)
+target_compile_options(contrib-restricted-libffi PRIVATE
+ -DHAVE_CONFIG_H
+)
+target_include_directories(contrib-restricted-libffi PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/include
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/configs/x86_64-pc-linux-gnu/include
+)
+target_include_directories(contrib-restricted-libffi PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/include
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/configs/x86_64-pc-linux-gnu
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/configs/x86_64-pc-linux-gnu/include
+)
+target_sources(contrib-restricted-libffi PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/closures.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/java_raw_api.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/prep_cif.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/raw_api.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/types.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/x86/ffi64.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/x86/ffiw64.c
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/x86/unix64.S
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/src/x86/win64.S
+)
diff --git a/contrib/restricted/libffi/CMakeLists.txt b/contrib/restricted/libffi/CMakeLists.txt
new file mode 100644
index 0000000000..a681d385f3
--- /dev/null
+++ b/contrib/restricted/libffi/CMakeLists.txt
@@ -0,0 +1,13 @@
+
+# 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.
+
+
+if (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (UNIX)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/tools/python3/lib/CMakeLists.txt b/contrib/tools/python3/lib/CMakeLists.txt
new file mode 100644
index 0000000000..879b9caf41
--- /dev/null
+++ b/contrib/tools/python3/lib/CMakeLists.txt
@@ -0,0 +1,21 @@
+
+# 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(tools-python3-lib INTERFACE)
+target_link_libraries(tools-python3-lib INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ tools-python3-src
+ contrib-libs-cxxsupp
+ yutil
+ certs
+ contrib-libs-cxxsupp
+ yutil
+ python3-src-Modules
+)
diff --git a/contrib/tools/python3/src/CMakeLists.darwin.txt b/contrib/tools/python3/src/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..23cecd74f4
--- /dev/null
+++ b/contrib/tools/python3/src/CMakeLists.darwin.txt
@@ -0,0 +1,163 @@
+
+# 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(tools-python3-src)
+target_compile_options(tools-python3-src PRIVATE
+ -DPy_BUILD_CORE
+)
+target_include_directories(tools-python3-src PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include/internal
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/PC
+)
+target_link_libraries(tools-python3-src PUBLIC
+ contrib-libs-cxxsupp
+ python3-src-Modules
+)
+target_link_options(tools-python3-src INTERFACE
+ -framework
+ CoreFoundation
+ -framework
+ SystemConfiguration
+)
+target_sources(tools-python3-src PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_functoolsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/_iomodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/bufferedio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/bytesio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/fileio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/iobase.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/stringio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/textio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/winconsoleio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_threadmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/config.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/gcmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/main.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/mmapmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/posixmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/signalmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/timemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/abstract.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/accu.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/boolobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/bytearrayobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/bytes_methods.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/bytesobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/call.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/capsule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/cellobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/classobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/codeobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/complexobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/descrobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/dictobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/enumobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/exceptions.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/fileobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/floatobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/frameobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/funcobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/genericaliasobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/genobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/interpreteridobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/iterobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/listobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/longobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/memoryobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/methodobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/moduleobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/namespaceobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/object.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/obmalloc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/odictobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/picklebufobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/rangeobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/setobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/sliceobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/structseq.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/tupleobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/typeobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/unicodectype.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/unicodeobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/weakrefobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/acceler.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/grammar1.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/listnode.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/myreadline.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/node.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/parser.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/parsetok.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/pegen/parse.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/pegen/parse_string.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/pegen/peg_api.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/pegen/pegen.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/token.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/tokenizer.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/Python-ast.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/_warnings.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/asdl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/ast.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/ast_opt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/ast_unparse.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/bltinmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/bootstrap_hash.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/ceval.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/codecs.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/compile.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/context.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/dtoa.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/dynamic_annotations.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/errors.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/fileutils.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/formatter_unicode.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/frozen.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/frozenmain.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/future.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getargs.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getcompiler.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getcopyright.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getopt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getplatform.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getversion.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/graminit.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/hamt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/hashtable.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/import.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/importdl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/initconfig.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/marshal.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/modsupport.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/mysnprintf.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/mystrtoul.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pathconfig.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/peephole.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/preconfig.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pyarena.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pyctype.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pyfpe.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pyhash.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pylifecycle.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pymath.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pystate.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pystrcmp.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pystrhex.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pystrtod.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pythonrun.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pytime.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/structmember.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/symtable.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/sysmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/thread.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/traceback.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/getpath.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/dynload_shlib.c
+)
diff --git a/contrib/tools/python3/src/CMakeLists.linux.txt b/contrib/tools/python3/src/CMakeLists.linux.txt
new file mode 100644
index 0000000000..4ec036fbe1
--- /dev/null
+++ b/contrib/tools/python3/src/CMakeLists.linux.txt
@@ -0,0 +1,157 @@
+
+# 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(tools-python3-src)
+target_compile_options(tools-python3-src PRIVATE
+ -DPy_BUILD_CORE
+)
+target_include_directories(tools-python3-src PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include/internal
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/PC
+)
+target_link_libraries(tools-python3-src PUBLIC
+ contrib-libs-cxxsupp
+ python3-src-Modules
+)
+target_sources(tools-python3-src PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_functoolsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/_iomodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/bufferedio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/bytesio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/fileio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/iobase.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/stringio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/textio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_io/winconsoleio.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_threadmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/config.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/gcmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/main.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/mmapmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/posixmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/signalmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/timemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/abstract.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/accu.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/boolobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/bytearrayobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/bytes_methods.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/bytesobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/call.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/capsule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/cellobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/classobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/codeobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/complexobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/descrobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/dictobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/enumobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/exceptions.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/fileobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/floatobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/frameobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/funcobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/genericaliasobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/genobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/interpreteridobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/iterobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/listobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/longobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/memoryobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/methodobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/moduleobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/namespaceobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/object.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/obmalloc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/odictobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/picklebufobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/rangeobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/setobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/sliceobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/structseq.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/tupleobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/typeobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/unicodectype.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/unicodeobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Objects/weakrefobject.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/acceler.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/grammar1.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/listnode.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/myreadline.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/node.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/parser.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/parsetok.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/pegen/parse.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/pegen/parse_string.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/pegen/peg_api.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/pegen/pegen.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/token.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Parser/tokenizer.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/Python-ast.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/_warnings.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/asdl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/ast.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/ast_opt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/ast_unparse.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/bltinmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/bootstrap_hash.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/ceval.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/codecs.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/compile.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/context.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/dtoa.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/dynamic_annotations.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/errors.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/fileutils.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/formatter_unicode.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/frozen.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/frozenmain.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/future.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getargs.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getcompiler.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getcopyright.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getopt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getplatform.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/getversion.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/graminit.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/hamt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/hashtable.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/import.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/importdl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/initconfig.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/marshal.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/modsupport.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/mysnprintf.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/mystrtoul.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pathconfig.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/peephole.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/preconfig.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pyarena.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pyctype.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pyfpe.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pyhash.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pylifecycle.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pymath.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pystate.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pystrcmp.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pystrhex.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pystrtod.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pythonrun.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/pytime.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/structmember.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/symtable.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/sysmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/thread.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/traceback.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/getpath.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Python/dynload_shlib.c
+)
diff --git a/contrib/tools/python3/src/CMakeLists.txt b/contrib/tools/python3/src/CMakeLists.txt
new file mode 100644
index 0000000000..a681d385f3
--- /dev/null
+++ b/contrib/tools/python3/src/CMakeLists.txt
@@ -0,0 +1,13 @@
+
+# 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.
+
+
+if (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (UNIX)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/tools/python3/src/Modules/CMakeLists.darwin.txt b/contrib/tools/python3/src/Modules/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..3e2d70ca0a
--- /dev/null
+++ b/contrib/tools/python3/src/Modules/CMakeLists.darwin.txt
@@ -0,0 +1,137 @@
+
+# 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.
+
+
+find_package(OpenSSL REQUIRED)
+find_package(ZLIB REQUIRED)
+
+add_library(python3-src-Modules)
+target_compile_options(python3-src-Modules PRIVATE
+ -DPy_BUILD_CORE_MODULE
+)
+target_include_directories(python3-src-Modules PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/expat
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libbz2
+ ${CMAKE_SOURCE_DIR}/contrib/libs/openssl
+ ${CMAKE_SOURCE_DIR}/contrib/libs/zlib
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/include
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include/internal
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/PC
+)
+target_link_libraries(python3-src-Modules PUBLIC
+ contrib-libs-expat
+ contrib-libs-libbz2
+ OpenSSL::OpenSSL
+ ZLIB::ZLIB
+ libs-xz-liblzma
+ contrib-restricted-libffi
+)
+target_sources(python3-src-Modules PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_abc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_asynciomodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_bisectmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_blake2/blake2b_impl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_blake2/blake2module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_blake2/blake2s_impl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_bz2module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_codecsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_collectionsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_contextvarsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_csv.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/_ctypes.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/callbacks.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/callproc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/cfield.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/stgdict.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_datetimemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/_decimal.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/basearith.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/constants.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/context.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/convolute.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/crt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/difradix2.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/fnt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/fourstep.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/io.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/mpalloc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/mpdecimal.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/numbertheory.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/sixstep.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/transpose.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_elementtree.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_hashopenssl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_heapqmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_json.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_localemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_lsprof.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_lzmamodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_math.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_multiprocessing/multiprocessing.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_multiprocessing/posixshmem.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_multiprocessing/semaphore.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_opcode.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_operator.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_peg_parser.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_pickle.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_queuemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_randommodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sha3/sha3module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sre.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ssl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_stat.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_statisticsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_struct.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_tracemalloc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_weakref.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_xxsubinterpretersmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_xxtestfuzz/_xxtestfuzz.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_xxtestfuzz/fuzzer.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_zoneinfo.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/arraymodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/atexitmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/audioop.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/binascii.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_cn.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_hk.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_iso2022.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_jp.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_kr.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_tw.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/multibytecodec.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cmathmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/errnomodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/faulthandler.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/getbuildinfo.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/itertoolsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/mathmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/md5module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/parsermodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/pyexpat.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/rotatingtree.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/selectmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/sha1module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/sha256module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/sha512module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/socketmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/symtablemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/unicodedata.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/zlibmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_cryptmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_posixsubprocess.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/fcntlmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/grpmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/pwdmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/resource.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/syslogmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/termios.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/darwin/dlfcn_simple.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_scproxy.c
+)
diff --git a/contrib/tools/python3/src/Modules/CMakeLists.linux.txt b/contrib/tools/python3/src/Modules/CMakeLists.linux.txt
new file mode 100644
index 0000000000..044d4878b5
--- /dev/null
+++ b/contrib/tools/python3/src/Modules/CMakeLists.linux.txt
@@ -0,0 +1,136 @@
+
+# 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.
+
+
+find_package(OpenSSL REQUIRED)
+find_package(ZLIB REQUIRED)
+
+add_library(python3-src-Modules)
+target_compile_options(python3-src-Modules PRIVATE
+ -DPy_BUILD_CORE_MODULE
+)
+target_include_directories(python3-src-Modules PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/expat
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libbz2
+ ${CMAKE_SOURCE_DIR}/contrib/libs/openssl
+ ${CMAKE_SOURCE_DIR}/contrib/libs/zlib
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/include
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include/internal
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/PC
+)
+target_link_libraries(python3-src-Modules PUBLIC
+ contrib-libs-expat
+ contrib-libs-libbz2
+ OpenSSL::OpenSSL
+ ZLIB::ZLIB
+ libs-xz-liblzma
+ contrib-restricted-libffi
+)
+target_sources(python3-src-Modules PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_abc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_asynciomodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_bisectmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_blake2/blake2b_impl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_blake2/blake2module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_blake2/blake2s_impl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_bz2module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_codecsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_collectionsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_contextvarsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_csv.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/_ctypes.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/callbacks.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/callproc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/cfield.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/stgdict.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_datetimemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/_decimal.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/basearith.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/constants.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/context.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/convolute.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/crt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/difradix2.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/fnt.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/fourstep.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/io.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/mpalloc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/mpdecimal.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/numbertheory.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/sixstep.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/transpose.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_elementtree.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_hashopenssl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_heapqmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_json.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_localemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_lsprof.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_lzmamodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_math.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_multiprocessing/multiprocessing.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_multiprocessing/posixshmem.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_multiprocessing/semaphore.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_opcode.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_operator.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_peg_parser.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_pickle.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_queuemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_randommodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sha3/sha3module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sre.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ssl.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_stat.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_statisticsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_struct.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_tracemalloc.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_weakref.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_xxsubinterpretersmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_xxtestfuzz/_xxtestfuzz.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_xxtestfuzz/fuzzer.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_zoneinfo.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/arraymodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/atexitmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/audioop.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/binascii.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_cn.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_hk.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_iso2022.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_jp.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_kr.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_tw.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/multibytecodec.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cmathmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/errnomodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/faulthandler.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/getbuildinfo.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/itertoolsmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/mathmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/md5module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/parsermodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/pyexpat.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/rotatingtree.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/selectmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/sha1module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/sha256module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/sha512module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/socketmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/symtablemodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/unicodedata.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/zlibmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_cryptmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_posixsubprocess.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/fcntlmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/grpmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/pwdmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/resource.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/syslogmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/termios.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/spwdmodule.c
+)
diff --git a/contrib/tools/python3/src/Modules/CMakeLists.txt b/contrib/tools/python3/src/Modules/CMakeLists.txt
new file mode 100644
index 0000000000..a681d385f3
--- /dev/null
+++ b/contrib/tools/python3/src/Modules/CMakeLists.txt
@@ -0,0 +1,13 @@
+
+# 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.
+
+
+if (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (UNIX)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/tools/python3/src/Modules/_sqlite/CMakeLists.txt b/contrib/tools/python3/src/Modules/_sqlite/CMakeLists.txt
new file mode 100644
index 0000000000..eb51a0826b
--- /dev/null
+++ b/contrib/tools/python3/src/Modules/_sqlite/CMakeLists.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(src-Modules-_sqlite)
+target_compile_options(src-Modules-_sqlite PRIVATE
+ -DMODULE_NAME="sqlite3"
+)
+target_include_directories(src-Modules-_sqlite PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/python/Include
+)
+target_include_directories(src-Modules-_sqlite PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/sqlite3
+ ${CMAKE_SOURCE_DIR}/contrib/libs/python/Include
+)
+target_link_libraries(src-Modules-_sqlite PUBLIC
+ contrib-libs-sqlite3
+)
+target_sources(src-Modules-_sqlite PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sqlite/cache.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sqlite/connection.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sqlite/cursor.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sqlite/microprotocols.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sqlite/module.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sqlite/prepare_protocol.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sqlite/row.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sqlite/statement.c
+ ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sqlite/util.c
+)