aboutsummaryrefslogtreecommitdiffstats
path: root/tools
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 /tools
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'tools')
-rw-r--r--tools/archiver/ya.make15
-rw-r--r--tools/enum_parser/enum_parser/ya.make28
-rw-r--r--tools/enum_parser/enum_serialization_runtime/ya.make10
-rw-r--r--tools/enum_parser/parse_enum/benchmark/ya.make9
-rw-r--r--tools/enum_parser/parse_enum/benchmark_build/lib/ya.make22
-rw-r--r--tools/enum_parser/parse_enum/benchmark_build/ut/ya.make11
-rw-r--r--tools/enum_parser/parse_enum/benchmark_build/ya.make4
-rw-r--r--tools/enum_parser/parse_enum/ut/ya.make28
-rw-r--r--tools/enum_parser/parse_enum/ya.make20
-rw-r--r--tools/fix_elf/bin/ya.make15
-rw-r--r--tools/fix_elf/ya.make11
-rw-r--r--tools/rescompiler/bin/ya.make17
-rw-r--r--tools/rescompiler/ya.make11
-rw-r--r--tools/rescompressor/bin/ya.make15
-rw-r--r--tools/rescompressor/ya.make11
-rw-r--r--tools/rorescompiler/bin/ya.make17
-rw-r--r--tools/rorescompiler/ya.make11
17 files changed, 255 insertions, 0 deletions
diff --git a/tools/archiver/ya.make b/tools/archiver/ya.make
new file mode 100644
index 0000000000..028324e02a
--- /dev/null
+++ b/tools/archiver/ya.make
@@ -0,0 +1,15 @@
+PROGRAM()
+
+PEERDIR(
+ library/cpp/archive
+ library/cpp/digest/md5
+ library/cpp/getopt/small
+)
+
+SRCS(
+ main.cpp
+)
+
+SET(IDE_FOLDER "_Builders")
+
+END()
diff --git a/tools/enum_parser/enum_parser/ya.make b/tools/enum_parser/enum_parser/ya.make
new file mode 100644
index 0000000000..1bd2356ff1
--- /dev/null
+++ b/tools/enum_parser/enum_parser/ya.make
@@ -0,0 +1,28 @@
+PROGRAM(enum_parser)
+
+SRCS(
+ main.cpp
+)
+
+INDUCED_DEPS(h+cpp
+ ${ARCADIA_ROOT}/util/generic/typetraits.h
+ ${ARCADIA_ROOT}/util/generic/singleton.h
+ ${ARCADIA_ROOT}/util/generic/string.h
+ ${ARCADIA_ROOT}/util/generic/vector.h
+ ${ARCADIA_ROOT}/util/generic/map.h
+ ${ARCADIA_ROOT}/util/string/cast.h
+ ${ARCADIA_ROOT}/util/stream/output.h
+ ${ARCADIA_ROOT}/tools/enum_parser/enum_serialization_runtime/enum_runtime.h
+ ${ARCADIA_ROOT}/tools/enum_parser/enum_parser/stdlib_deps.h
+)
+
+INDUCED_DEPS(h
+ ${ARCADIA_ROOT}/util/generic/serialized_enum.h
+)
+
+PEERDIR(
+ library/cpp/getopt/small
+ tools/enum_parser/parse_enum
+)
+
+END()
diff --git a/tools/enum_parser/enum_serialization_runtime/ya.make b/tools/enum_parser/enum_serialization_runtime/ya.make
new file mode 100644
index 0000000000..357eb61466
--- /dev/null
+++ b/tools/enum_parser/enum_serialization_runtime/ya.make
@@ -0,0 +1,10 @@
+LIBRARY()
+
+SRCS(
+ dispatch_methods.cpp
+ enum_runtime.cpp
+ ordered_pairs.cpp
+)
+
+
+END()
diff --git a/tools/enum_parser/parse_enum/benchmark/ya.make b/tools/enum_parser/parse_enum/benchmark/ya.make
new file mode 100644
index 0000000000..746389067d
--- /dev/null
+++ b/tools/enum_parser/parse_enum/benchmark/ya.make
@@ -0,0 +1,9 @@
+Y_BENCHMARK()
+
+SRCS(
+ main.cpp
+)
+
+GENERATE_ENUM_SERIALIZATION_WITH_HEADER(enum.h)
+
+END()
diff --git a/tools/enum_parser/parse_enum/benchmark_build/lib/ya.make b/tools/enum_parser/parse_enum/benchmark_build/lib/ya.make
new file mode 100644
index 0000000000..3e5d7a626b
--- /dev/null
+++ b/tools/enum_parser/parse_enum/benchmark_build/lib/ya.make
@@ -0,0 +1,22 @@
+LIBRARY()
+
+SRCS()
+
+RUN_PYTHON3(
+ ${ARCADIA_ROOT}/tools/enum_parser/parse_enum/benchmark_build/lib/gen.py
+ --range 1000
+ --namespace NHuge
+ --enum EHuge 1000
+ STDOUT enum_huge.h
+)
+
+RUN_PYTHON3(
+ ${ARCADIA_ROOT}/tools/enum_parser/parse_enum/benchmark_build/lib/gen.py
+ --enum EEnormous 9000
+ STDOUT enum_enormous.h
+)
+
+GENERATE_ENUM_SERIALIZATION_WITH_HEADER(enum_huge.h)
+GENERATE_ENUM_SERIALIZATION_WITH_HEADER(enum_enormous.h)
+
+END()
diff --git a/tools/enum_parser/parse_enum/benchmark_build/ut/ya.make b/tools/enum_parser/parse_enum/benchmark_build/ut/ya.make
new file mode 100644
index 0000000000..802a84325f
--- /dev/null
+++ b/tools/enum_parser/parse_enum/benchmark_build/ut/ya.make
@@ -0,0 +1,11 @@
+UNITTEST()
+
+PEERDIR(
+ tools/enum_parser/parse_enum/benchmark_build/lib
+)
+
+SRCS(
+ huge_enums_fallback_ut.cpp
+)
+
+END()
diff --git a/tools/enum_parser/parse_enum/benchmark_build/ya.make b/tools/enum_parser/parse_enum/benchmark_build/ya.make
new file mode 100644
index 0000000000..ec7e342027
--- /dev/null
+++ b/tools/enum_parser/parse_enum/benchmark_build/ya.make
@@ -0,0 +1,4 @@
+RECURSE_FOR_TESTS(
+ lib
+ ut
+)
diff --git a/tools/enum_parser/parse_enum/ut/ya.make b/tools/enum_parser/parse_enum/ut/ya.make
new file mode 100644
index 0000000000..eee686134a
--- /dev/null
+++ b/tools/enum_parser/parse_enum/ut/ya.make
@@ -0,0 +1,28 @@
+UNITTEST()
+
+PEERDIR(
+ ADDINCL tools/enum_parser/parse_enum
+ library/cpp/resource
+)
+
+SRCDIR(tools/enum_parser/parse_enum)
+
+RESOURCE(
+ enums.h /enums
+ badcode.h /badcode
+ unbalanced.h /unbalanced
+ alias_before_name.h /alias_before_name
+)
+
+# self-test
+GENERATE_ENUM_SERIALIZATION(enums.h)
+
+# test GENERATE_ENUM_SERIALIZATION_WITH_HEADER macro
+GENERATE_ENUM_SERIALIZATION_WITH_HEADER(enums_with_header.h)
+
+SRCS(
+ parse_enum_ut.cpp
+ enums.cpp
+)
+
+END()
diff --git a/tools/enum_parser/parse_enum/ya.make b/tools/enum_parser/parse_enum/ya.make
new file mode 100644
index 0000000000..c9c2ecb081
--- /dev/null
+++ b/tools/enum_parser/parse_enum/ya.make
@@ -0,0 +1,20 @@
+LIBRARY()
+
+SRCS(
+ parse_enum.cpp
+)
+
+PEERDIR(
+ library/cpp/cppparser
+)
+
+END()
+
+RECURSE(
+ benchmark
+ ut
+)
+
+RECURSE_FOR_TESTS(
+ benchmark_build
+)
diff --git a/tools/fix_elf/bin/ya.make b/tools/fix_elf/bin/ya.make
new file mode 100644
index 0000000000..b18928922a
--- /dev/null
+++ b/tools/fix_elf/bin/ya.make
@@ -0,0 +1,15 @@
+PROGRAM(fix_elf)
+
+SRCDIR(
+ tools/fix_elf
+)
+
+SRCS(
+ patch.cpp
+)
+
+PEERDIR(
+ library/cpp/getopt/small
+)
+
+END()
diff --git a/tools/fix_elf/ya.make b/tools/fix_elf/ya.make
new file mode 100644
index 0000000000..95155de3c8
--- /dev/null
+++ b/tools/fix_elf/ya.make
@@ -0,0 +1,11 @@
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(${ARCADIA_ROOT}/build/prebuilt/tools/fix_elf/ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(${ARCADIA_ROOT}/tools/fix_elf/bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+)
diff --git a/tools/rescompiler/bin/ya.make b/tools/rescompiler/bin/ya.make
new file mode 100644
index 0000000000..741fcc33ff
--- /dev/null
+++ b/tools/rescompiler/bin/ya.make
@@ -0,0 +1,17 @@
+PROGRAM(rescompiler)
+
+PEERDIR(
+ library/cpp/resource
+)
+
+SRCDIR(
+ tools/rescompiler
+)
+
+SRCS(
+ main.cpp
+)
+
+INCLUDE(${ARCADIA_ROOT}/build/prebuilt/tools/rescompiler/ya.make.induced_deps)
+
+END()
diff --git a/tools/rescompiler/ya.make b/tools/rescompiler/ya.make
new file mode 100644
index 0000000000..f9a4ecab16
--- /dev/null
+++ b/tools/rescompiler/ya.make
@@ -0,0 +1,11 @@
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(${ARCADIA_ROOT}/build/prebuilt/tools/rescompiler/ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(${ARCADIA_ROOT}/tools/rescompiler/bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+)
diff --git a/tools/rescompressor/bin/ya.make b/tools/rescompressor/bin/ya.make
new file mode 100644
index 0000000000..c5ec5cd469
--- /dev/null
+++ b/tools/rescompressor/bin/ya.make
@@ -0,0 +1,15 @@
+PROGRAM(rescompressor)
+
+PEERDIR(
+ library/cpp/resource
+)
+
+SRCDIR(
+ tools/rescompressor
+)
+
+SRCS(
+ main.cpp
+)
+
+END()
diff --git a/tools/rescompressor/ya.make b/tools/rescompressor/ya.make
new file mode 100644
index 0000000000..40bd714900
--- /dev/null
+++ b/tools/rescompressor/ya.make
@@ -0,0 +1,11 @@
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(${ARCADIA_ROOT}/build/prebuilt/tools/rescompressor/ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(${ARCADIA_ROOT}/tools/rescompressor/bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+)
diff --git a/tools/rorescompiler/bin/ya.make b/tools/rorescompiler/bin/ya.make
new file mode 100644
index 0000000000..3913b27097
--- /dev/null
+++ b/tools/rorescompiler/bin/ya.make
@@ -0,0 +1,17 @@
+PROGRAM(rorescompiler)
+
+PEERDIR(
+ library/cpp/resource
+)
+
+SRCDIR(
+ tools/rorescompiler
+)
+
+SRCS(
+ main.cpp
+)
+
+INCLUDE(${ARCADIA_ROOT}/build/prebuilt/tools/rorescompiler/ya.make.induced_deps)
+
+END()
diff --git a/tools/rorescompiler/ya.make b/tools/rorescompiler/ya.make
new file mode 100644
index 0000000000..3e131bbdf6
--- /dev/null
+++ b/tools/rorescompiler/ya.make
@@ -0,0 +1,11 @@
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(${ARCADIA_ROOT}/build/prebuilt/tools/rorescompiler/ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(${ARCADIA_ROOT}/tools/rorescompiler/bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+)