From bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 Mon Sep 17 00:00:00 2001 From: alexv-smirnov Date: Tue, 13 Jun 2023 11:05:01 +0300 Subject: add ymake export to ydb --- library/cpp/lfalloc/alloc_profiler/ut/ya.make | 20 +++++++++++++++++ library/cpp/lfalloc/alloc_profiler/ya.make | 18 ++++++++++++++++ library/cpp/lfalloc/dbg/ya.make | 31 +++++++++++++++++++++++++++ library/cpp/lfalloc/dbg_info/ya.make | 13 +++++++++++ library/cpp/lfalloc/ya.make | 20 +++++++++++++++++ library/cpp/lfalloc/yt/ya.make | 28 ++++++++++++++++++++++++ 6 files changed, 130 insertions(+) create mode 100644 library/cpp/lfalloc/alloc_profiler/ut/ya.make create mode 100644 library/cpp/lfalloc/alloc_profiler/ya.make create mode 100644 library/cpp/lfalloc/dbg/ya.make create mode 100644 library/cpp/lfalloc/dbg_info/ya.make create mode 100644 library/cpp/lfalloc/ya.make create mode 100644 library/cpp/lfalloc/yt/ya.make (limited to 'library/cpp/lfalloc') 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 00000000000..a93b86e365d --- /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 00000000000..73542891c75 --- /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 00000000000..39f3fb94563 --- /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 00000000000..47b7a59f958 --- /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 00000000000..43cc8516da1 --- /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 00000000000..36068c090d8 --- /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() -- cgit v1.3