diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
commit | bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch) | |
tree | 1d1df72c0541a59a81439842f46d95396d3e7189 /library/cpp/malloc | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'library/cpp/malloc')
-rw-r--r-- | library/cpp/malloc/api/helpers/ya.make | 11 | ||||
-rw-r--r-- | library/cpp/malloc/api/ut/ya.make | 11 | ||||
-rw-r--r-- | library/cpp/malloc/api/ya.make | 14 | ||||
-rw-r--r-- | library/cpp/malloc/jemalloc/ya.make | 20 | ||||
-rw-r--r-- | library/cpp/malloc/mimalloc/link_test/ya.make | 9 | ||||
-rw-r--r-- | library/cpp/malloc/mimalloc/ya.make | 19 | ||||
-rw-r--r-- | library/cpp/malloc/system/ya.make | 17 | ||||
-rw-r--r-- | library/cpp/malloc/tcmalloc/ya.make | 14 |
8 files changed, 115 insertions, 0 deletions
diff --git a/library/cpp/malloc/api/helpers/ya.make b/library/cpp/malloc/api/helpers/ya.make new file mode 100644 index 00000000000..b09146f2fee --- /dev/null +++ b/library/cpp/malloc/api/helpers/ya.make @@ -0,0 +1,11 @@ +LIBRARY() + +PEERDIR( + library/cpp/malloc/api +) + +SRCS( + io.cpp +) + +END() diff --git a/library/cpp/malloc/api/ut/ya.make b/library/cpp/malloc/api/ut/ya.make new file mode 100644 index 00000000000..5580da99d73 --- /dev/null +++ b/library/cpp/malloc/api/ut/ya.make @@ -0,0 +1,11 @@ +UNITTEST() + +PEERDIR( + library/cpp/malloc/api/helpers +) + +SRCS( + ut.cpp +) + +END() diff --git a/library/cpp/malloc/api/ya.make b/library/cpp/malloc/api/ya.make new file mode 100644 index 00000000000..499792ba197 --- /dev/null +++ b/library/cpp/malloc/api/ya.make @@ -0,0 +1,14 @@ +LIBRARY() + +NO_UTIL() + +SRCS( + malloc.cpp +) + +END() + +RECURSE( + helpers + ut +) diff --git a/library/cpp/malloc/jemalloc/ya.make b/library/cpp/malloc/jemalloc/ya.make new file mode 100644 index 00000000000..035133b0f5d --- /dev/null +++ b/library/cpp/malloc/jemalloc/ya.make @@ -0,0 +1,20 @@ +LIBRARY() + +NO_UTIL() +ALLOCATOR_IMPL() + +IF (OS_ANDROID) + PEERDIR( + library/cpp/malloc/system + ) +ELSE() + PEERDIR( + library/cpp/malloc/api + contrib/libs/jemalloc + ) + SRCS( + malloc-info.cpp + ) +ENDIF() + +END() diff --git a/library/cpp/malloc/mimalloc/link_test/ya.make b/library/cpp/malloc/mimalloc/link_test/ya.make new file mode 100644 index 00000000000..1488b55072f --- /dev/null +++ b/library/cpp/malloc/mimalloc/link_test/ya.make @@ -0,0 +1,9 @@ +PROGRAM() + +ALLOCATOR(MIM) + +SRCS( + main.cpp +) + +END() diff --git a/library/cpp/malloc/mimalloc/ya.make b/library/cpp/malloc/mimalloc/ya.make new file mode 100644 index 00000000000..fe0f2fd0b52 --- /dev/null +++ b/library/cpp/malloc/mimalloc/ya.make @@ -0,0 +1,19 @@ +LIBRARY() + +NO_UTIL() +ALLOCATOR_IMPL() + +PEERDIR( + library/cpp/malloc/api + contrib/libs/mimalloc +) + +SRCS( + info.cpp +) + +END() + +RECURSE( + link_test +) diff --git a/library/cpp/malloc/system/ya.make b/library/cpp/malloc/system/ya.make new file mode 100644 index 00000000000..e8454480c3b --- /dev/null +++ b/library/cpp/malloc/system/ya.make @@ -0,0 +1,17 @@ +# External build system generator for opensource export relies on the name system_allocator. +# Change it carefully. +LIBRARY(system_allocator) + +ALLOCATOR_IMPL() + +NO_UTIL() + +PEERDIR( + library/cpp/malloc/api +) + +SRCS( + malloc-info.cpp +) + +END() diff --git a/library/cpp/malloc/tcmalloc/ya.make b/library/cpp/malloc/tcmalloc/ya.make new file mode 100644 index 00000000000..a558a514f47 --- /dev/null +++ b/library/cpp/malloc/tcmalloc/ya.make @@ -0,0 +1,14 @@ +LIBRARY() + +NO_UTIL() +ALLOCATOR_IMPL() + +PEERDIR( + library/cpp/malloc/api + contrib/libs/tcmalloc/malloc_extension +) +SRCS( + malloc-info.cpp +) + +END() |