aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lfalloc
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
committeralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
commitbf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch)
tree1d1df72c0541a59a81439842f46d95396d3e7189 /library/cpp/lfalloc
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'library/cpp/lfalloc')
-rw-r--r--library/cpp/lfalloc/alloc_profiler/ut/ya.make20
-rw-r--r--library/cpp/lfalloc/alloc_profiler/ya.make18
-rw-r--r--library/cpp/lfalloc/dbg/ya.make31
-rw-r--r--library/cpp/lfalloc/dbg_info/ya.make13
-rw-r--r--library/cpp/lfalloc/ya.make20
-rw-r--r--library/cpp/lfalloc/yt/ya.make28
6 files changed, 130 insertions, 0 deletions
diff --git a/library/cpp/lfalloc/alloc_profiler/ut/ya.make b/library/cpp/lfalloc/alloc_profiler/ut/ya.make
new file mode 100644
index 0000000000..a93b86e365
--- /dev/null
+++ b/library/cpp/lfalloc/alloc_profiler/ut/ya.make
@@ -0,0 +1,20 @@
+UNITTEST_FOR(library/cpp/lfalloc/alloc_profiler)
+
+PEERDIR(
+ library/cpp/testing/unittest
+)
+
+IF (ARCH_AARCH64)
+ PEERDIR(
+ contrib/libs/jemalloc
+ )
+ELSE()
+ ALLOCATOR(LF_DBG)
+ENDIF()
+
+SRCS(
+ profiler_ut.cpp
+ align_ut.cpp
+)
+
+END()
diff --git a/library/cpp/lfalloc/alloc_profiler/ya.make b/library/cpp/lfalloc/alloc_profiler/ya.make
new file mode 100644
index 0000000000..73542891c7
--- /dev/null
+++ b/library/cpp/lfalloc/alloc_profiler/ya.make
@@ -0,0 +1,18 @@
+LIBRARY()
+
+SRCS(
+ profiler.cpp
+ stackcollect.cpp
+)
+
+PEERDIR(
+ library/cpp/lfalloc/dbg_info
+ library/cpp/cache
+ library/cpp/deprecated/atomic
+)
+
+END()
+
+RECURSE(
+ ut
+)
diff --git a/library/cpp/lfalloc/dbg/ya.make b/library/cpp/lfalloc/dbg/ya.make
new file mode 100644
index 0000000000..39f3fb9456
--- /dev/null
+++ b/library/cpp/lfalloc/dbg/ya.make
@@ -0,0 +1,31 @@
+LIBRARY()
+
+ALLOCATOR_IMPL()
+NO_UTIL()
+
+NO_COMPILER_WARNINGS()
+
+IF (ARCH_AARCH64)
+ PEERDIR(
+ contrib/libs/jemalloc
+ )
+ELSE()
+ IF ("${YMAKE}" MATCHES "devtools")
+ CFLAGS(-DYMAKE=1)
+ ENDIF()
+ CXXFLAGS(
+ -DLFALLOC_DBG
+ -DLFALLOC_YT
+ )
+ SRCS(
+ ../lf_allocX64.cpp
+ )
+ENDIF()
+
+PEERDIR(
+ library/cpp/malloc/api
+)
+
+SET(IDE_FOLDER "util")
+
+END()
diff --git a/library/cpp/lfalloc/dbg_info/ya.make b/library/cpp/lfalloc/dbg_info/ya.make
new file mode 100644
index 0000000000..47b7a59f95
--- /dev/null
+++ b/library/cpp/lfalloc/dbg_info/ya.make
@@ -0,0 +1,13 @@
+LIBRARY()
+
+PEERDIR(
+ library/cpp/malloc/api
+)
+
+SRCS(
+ dbg_info.cpp
+)
+
+SET(IDE_FOLDER "util")
+
+END()
diff --git a/library/cpp/lfalloc/ya.make b/library/cpp/lfalloc/ya.make
new file mode 100644
index 0000000000..43cc8516da
--- /dev/null
+++ b/library/cpp/lfalloc/ya.make
@@ -0,0 +1,20 @@
+LIBRARY()
+
+BUILD_ONLY_IF(FATAL_ERROR ARCH_TYPE_64)
+
+ALLOCATOR_IMPL()
+NO_UTIL()
+
+NO_COMPILER_WARNINGS()
+
+SRCS(
+ lf_allocX64.cpp
+)
+
+PEERDIR(
+ library/cpp/malloc/api
+)
+
+SET(IDE_FOLDER "util")
+
+END()
diff --git a/library/cpp/lfalloc/yt/ya.make b/library/cpp/lfalloc/yt/ya.make
new file mode 100644
index 0000000000..36068c090d
--- /dev/null
+++ b/library/cpp/lfalloc/yt/ya.make
@@ -0,0 +1,28 @@
+LIBRARY()
+
+NO_UTIL()
+ALLOCATOR_IMPL()
+
+NO_COMPILER_WARNINGS()
+
+IF (ARCH_AARCH64)
+ PEERDIR(
+ contrib/libs/jemalloc
+ )
+ELSE()
+ IF ("${YMAKE}" MATCHES "devtools")
+ CFLAGS(-DYMAKE=1)
+ ENDIF()
+ CXXFLAGS(-DLFALLOC_YT)
+ SRCS(
+ ../lf_allocX64.cpp
+ )
+ENDIF()
+
+PEERDIR(
+ library/cpp/malloc/api
+)
+
+SET(IDE_FOLDER "util")
+
+END()