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 /tools/enum_parser | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'tools/enum_parser')
-rw-r--r-- | tools/enum_parser/enum_parser/ya.make | 28 | ||||
-rw-r--r-- | tools/enum_parser/enum_serialization_runtime/ya.make | 10 | ||||
-rw-r--r-- | tools/enum_parser/parse_enum/benchmark/ya.make | 9 | ||||
-rw-r--r-- | tools/enum_parser/parse_enum/benchmark_build/lib/ya.make | 22 | ||||
-rw-r--r-- | tools/enum_parser/parse_enum/benchmark_build/ut/ya.make | 11 | ||||
-rw-r--r-- | tools/enum_parser/parse_enum/benchmark_build/ya.make | 4 | ||||
-rw-r--r-- | tools/enum_parser/parse_enum/ut/ya.make | 28 | ||||
-rw-r--r-- | tools/enum_parser/parse_enum/ya.make | 20 |
8 files changed, 132 insertions, 0 deletions
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 +) |