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/yt | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'library/cpp/yt')
-rw-r--r-- | library/cpp/yt/assert/ya.make | 9 | ||||
-rw-r--r-- | library/cpp/yt/coding/unittests/ya.make | 15 | ||||
-rw-r--r-- | library/cpp/yt/coding/ya.make | 22 | ||||
-rw-r--r-- | library/cpp/yt/containers/ya.make | 16 | ||||
-rw-r--r-- | library/cpp/yt/cpu_clock/ya.make | 21 | ||||
-rw-r--r-- | library/cpp/yt/exception/ya.make | 9 | ||||
-rw-r--r-- | library/cpp/yt/malloc/ya.make | 9 | ||||
-rw-r--r-- | library/cpp/yt/memory/unittests/ya.make | 29 | ||||
-rw-r--r-- | library/cpp/yt/memory/ya.make | 40 | ||||
-rw-r--r-- | library/cpp/yt/misc/unittests/ya.make | 15 | ||||
-rw-r--r-- | library/cpp/yt/misc/ya.make | 29 | ||||
-rw-r--r-- | library/cpp/yt/small_containers/unittests/ya.make | 17 | ||||
-rw-r--r-- | library/cpp/yt/small_containers/ya.make | 23 | ||||
-rw-r--r-- | library/cpp/yt/string/unittests/ya.make | 17 | ||||
-rw-r--r-- | library/cpp/yt/string/ya.make | 34 | ||||
-rw-r--r-- | library/cpp/yt/system/ya.make | 9 | ||||
-rw-r--r-- | library/cpp/yt/threading/ya.make | 31 | ||||
-rw-r--r-- | library/cpp/yt/ya_cpp.make.inc | 7 | ||||
-rw-r--r-- | library/cpp/yt/yson/ya.make | 13 | ||||
-rw-r--r-- | library/cpp/yt/yson_string/unittests/ya.make | 15 | ||||
-rw-r--r-- | library/cpp/yt/yson_string/ya.make | 23 |
21 files changed, 403 insertions, 0 deletions
diff --git a/library/cpp/yt/assert/ya.make b/library/cpp/yt/assert/ya.make new file mode 100644 index 0000000000..a9833ab70e --- /dev/null +++ b/library/cpp/yt/assert/ya.make @@ -0,0 +1,9 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + assert.cpp +) + +END() diff --git a/library/cpp/yt/coding/unittests/ya.make b/library/cpp/yt/coding/unittests/ya.make new file mode 100644 index 0000000000..ab94ee8796 --- /dev/null +++ b/library/cpp/yt/coding/unittests/ya.make @@ -0,0 +1,15 @@ +GTEST() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + zig_zag_ut.cpp + varint_ut.cpp +) + +PEERDIR( + library/cpp/yt/coding + library/cpp/testing/gtest +) + +END() diff --git a/library/cpp/yt/coding/ya.make b/library/cpp/yt/coding/ya.make new file mode 100644 index 0000000000..639d94e755 --- /dev/null +++ b/library/cpp/yt/coding/ya.make @@ -0,0 +1,22 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( +) + +PEERDIR( + library/cpp/yt/exception +) + +END() + +RECURSE_FOR_TESTS( + unittests +) + +IF (NOT OPENSOURCE) + RECURSE( + benchmark + ) +ENDIF() diff --git a/library/cpp/yt/containers/ya.make b/library/cpp/yt/containers/ya.make new file mode 100644 index 0000000000..fbc70dbd7c --- /dev/null +++ b/library/cpp/yt/containers/ya.make @@ -0,0 +1,16 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( +) + +PEERDIR( + library/cpp/yt/assert +) + +END() + +RECURSE_FOR_TESTS( + unittests +) diff --git a/library/cpp/yt/cpu_clock/ya.make b/library/cpp/yt/cpu_clock/ya.make new file mode 100644 index 0000000000..60ea0e940e --- /dev/null +++ b/library/cpp/yt/cpu_clock/ya.make @@ -0,0 +1,21 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + clock.cpp +) + +PEERDIR( + library/cpp/yt/assert +) + +END() + +RECURSE( + benchmark +) + +RECURSE_FOR_TESTS( + unittests +) diff --git a/library/cpp/yt/exception/ya.make b/library/cpp/yt/exception/ya.make new file mode 100644 index 0000000000..ff0014adcf --- /dev/null +++ b/library/cpp/yt/exception/ya.make @@ -0,0 +1,9 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + exception.cpp +) + +END() diff --git a/library/cpp/yt/malloc/ya.make b/library/cpp/yt/malloc/ya.make new file mode 100644 index 0000000000..252f7f7b3d --- /dev/null +++ b/library/cpp/yt/malloc/ya.make @@ -0,0 +1,9 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + malloc.cpp +) + +END() diff --git a/library/cpp/yt/memory/unittests/ya.make b/library/cpp/yt/memory/unittests/ya.make new file mode 100644 index 0000000000..54f8f4f1a5 --- /dev/null +++ b/library/cpp/yt/memory/unittests/ya.make @@ -0,0 +1,29 @@ +GTEST(unittester-library-memory) + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +IF (NOT OS_WINDOWS) + ALLOCATOR(YT) +ENDIF() + +SRCS( + atomic_intrusive_ptr_ut.cpp + chunked_memory_pool_ut.cpp + chunked_memory_pool_output_ut.cpp + free_list_ut.cpp + intrusive_ptr_ut.cpp + weak_ptr_ut.cpp +) + +IF (NOT OS_WINDOWS) + SRCS( + safe_memory_reader_ut.cpp + ) +ENDIF() + +PEERDIR( + library/cpp/testing/gtest + library/cpp/yt/memory +) + +END() diff --git a/library/cpp/yt/memory/ya.make b/library/cpp/yt/memory/ya.make new file mode 100644 index 0000000000..171bfd5cbf --- /dev/null +++ b/library/cpp/yt/memory/ya.make @@ -0,0 +1,40 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + blob.cpp + chunked_input_stream.cpp + chunked_memory_allocator.cpp + chunked_memory_pool.cpp + chunked_memory_pool_output.cpp + chunked_output_stream.cpp + memory_tag.cpp + ref.cpp + ref_tracked.cpp + safe_memory_reader.cpp + shared_range.cpp +) + +PEERDIR( + library/cpp/yt/assert + library/cpp/yt/misc + library/cpp/yt/malloc +) + +CHECK_DEPENDENT_DIRS( + ALLOW_ONLY ALL + build + contrib + library + util + library/cpp/yt/assert + library/cpp/yt/misc + library/cpp/yt/malloc +) + +END() + +RECURSE_FOR_TESTS( + unittests +) diff --git a/library/cpp/yt/misc/unittests/ya.make b/library/cpp/yt/misc/unittests/ya.make new file mode 100644 index 0000000000..bc985812ed --- /dev/null +++ b/library/cpp/yt/misc/unittests/ya.make @@ -0,0 +1,15 @@ +GTEST(unittester-library-misc) + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + enum_ut.cpp + guid_ut.cpp + preprocessor_ut.cpp +) + +PEERDIR( + library/cpp/yt/misc +) + +END() diff --git a/library/cpp/yt/misc/ya.make b/library/cpp/yt/misc/ya.make new file mode 100644 index 0000000000..586d14f6ee --- /dev/null +++ b/library/cpp/yt/misc/ya.make @@ -0,0 +1,29 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + guid.cpp + source_location.cpp + thread_name.cpp + variant.cpp +) + +PEERDIR( + library/cpp/yt/exception +) + +CHECK_DEPENDENT_DIRS( + ALLOW_ONLY ALL + build + contrib + library + util + yt/yt/library/small_containers +) + +END() + +RECURSE_FOR_TESTS( + unittests +) diff --git a/library/cpp/yt/small_containers/unittests/ya.make b/library/cpp/yt/small_containers/unittests/ya.make new file mode 100644 index 0000000000..bf3deade90 --- /dev/null +++ b/library/cpp/yt/small_containers/unittests/ya.make @@ -0,0 +1,17 @@ +GTEST(unittester-small-containers) + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + compact_flat_map_ut.cpp + compact_heap_ut.cpp + compact_set_ut.cpp + compact_vector_ut.cpp +) + +PEERDIR( + library/cpp/yt/small_containers + library/cpp/testing/gtest +) + +END() diff --git a/library/cpp/yt/small_containers/ya.make b/library/cpp/yt/small_containers/ya.make new file mode 100644 index 0000000000..e52beb943c --- /dev/null +++ b/library/cpp/yt/small_containers/ya.make @@ -0,0 +1,23 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +PEERDIR( + library/cpp/yt/assert + library/cpp/yt/malloc + library/cpp/yt/misc +) + +CHECK_DEPENDENT_DIRS( + ALLOW_ONLY ALL + build + contrib + library + util +) + +END() + +RECURSE_FOR_TESTS( + unittests +) diff --git a/library/cpp/yt/string/unittests/ya.make b/library/cpp/yt/string/unittests/ya.make new file mode 100644 index 0000000000..8fd64d3662 --- /dev/null +++ b/library/cpp/yt/string/unittests/ya.make @@ -0,0 +1,17 @@ +GTEST(unittester-library-string) + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + enum_ut.cpp + format_ut.cpp + guid_ut.cpp + string_ut.cpp +) + +PEERDIR( + library/cpp/yt/string + library/cpp/testing/gtest +) + +END() diff --git a/library/cpp/yt/string/ya.make b/library/cpp/yt/string/ya.make new file mode 100644 index 0000000000..95b07ee0d1 --- /dev/null +++ b/library/cpp/yt/string/ya.make @@ -0,0 +1,34 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + enum.cpp + guid.cpp + string.cpp + format.cpp +) + +PEERDIR( + library/cpp/yt/assert + library/cpp/yt/exception + library/cpp/yt/misc + library/cpp/yt/small_containers +) + +CHECK_DEPENDENT_DIRS( + ALLOW_ONLY ALL + build + contrib + library + util + library/cpp/yt/assert + library/cpp/yt/misc + library/cpp/yt/small_containers +) + +END() + +RECURSE_FOR_TESTS( + unittests +) diff --git a/library/cpp/yt/system/ya.make b/library/cpp/yt/system/ya.make new file mode 100644 index 0000000000..22aab5151e --- /dev/null +++ b/library/cpp/yt/system/ya.make @@ -0,0 +1,9 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + thread_id.cpp +) + +END() diff --git a/library/cpp/yt/threading/ya.make b/library/cpp/yt/threading/ya.make new file mode 100644 index 0000000000..4f1d7fbdde --- /dev/null +++ b/library/cpp/yt/threading/ya.make @@ -0,0 +1,31 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + at_fork.cpp + count_down_latch.cpp + event_count.cpp + fork_aware_spin_lock.cpp + fork_aware_rw_spin_lock.cpp + futex.cpp + notification_handle.cpp + public.cpp + recursive_spin_lock.cpp + rw_spin_lock.cpp + spin_lock_base.cpp + spin_lock.cpp + spin_wait.cpp + spin_wait_hook.cpp +) + +PEERDIR( + library/cpp/yt/assert + library/cpp/yt/cpu_clock + library/cpp/yt/system + library/cpp/yt/memory +) + +END() + +RECURSE_FOR_TESTS(unittests) diff --git a/library/cpp/yt/ya_cpp.make.inc b/library/cpp/yt/ya_cpp.make.inc new file mode 100644 index 0000000000..cfd07909eb --- /dev/null +++ b/library/cpp/yt/ya_cpp.make.inc @@ -0,0 +1,7 @@ +# This file should be included in all YT projects (including YT ORM installations). + +IF (NOT MSVC) + CXXFLAGS( + -Wdeprecated-this-capture + ) +ENDIF() diff --git a/library/cpp/yt/yson/ya.make b/library/cpp/yt/yson/ya.make new file mode 100644 index 0000000000..f8bd9fc15d --- /dev/null +++ b/library/cpp/yt/yson/ya.make @@ -0,0 +1,13 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + consumer.cpp +) + +PEERDIR( + library/cpp/yt/yson_string +) + +END() diff --git a/library/cpp/yt/yson_string/unittests/ya.make b/library/cpp/yt/yson_string/unittests/ya.make new file mode 100644 index 0000000000..f301e5b438 --- /dev/null +++ b/library/cpp/yt/yson_string/unittests/ya.make @@ -0,0 +1,15 @@ +GTEST() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + convert_ut.cpp +) + +PEERDIR( + library/cpp/yt/yson_string + library/cpp/testing/gtest + library/cpp/testing/gtest_extensions +) + +END() diff --git a/library/cpp/yt/yson_string/ya.make b/library/cpp/yt/yson_string/ya.make new file mode 100644 index 0000000000..ba693760f1 --- /dev/null +++ b/library/cpp/yt/yson_string/ya.make @@ -0,0 +1,23 @@ +LIBRARY() + +INCLUDE(${ARCADIA_ROOT}/library/cpp/yt/ya_cpp.make.inc) + +SRCS( + convert.cpp + string.cpp +) + +PEERDIR( + library/cpp/yt/assert + library/cpp/yt/coding + library/cpp/yt/exception + library/cpp/yt/string + library/cpp/yt/memory + library/cpp/yt/misc +) + +END() + +RECURSE_FOR_TESTS( + unittests +) |