aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/protoc
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 /contrib/tools/protoc
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'contrib/tools/protoc')
-rw-r--r--contrib/tools/protoc/bin/ya.make20
-rw-r--r--contrib/tools/protoc/plugins/cpp_styleguide/bin/ya.make19
-rw-r--r--contrib/tools/protoc/plugins/cpp_styleguide/ya.make11
-rw-r--r--contrib/tools/protoc/plugins/grpc_cpp/bin/ya.make28
-rw-r--r--contrib/tools/protoc/plugins/grpc_cpp/ya.make14
-rw-r--r--contrib/tools/protoc/plugins/grpc_java/bin/parsever/ya.make11
-rw-r--r--contrib/tools/protoc/plugins/grpc_java/bin/test/ya.make7
-rw-r--r--contrib/tools/protoc/plugins/grpc_java/bin/ya.make20
-rw-r--r--contrib/tools/protoc/plugins/grpc_java/bin/ya.version1
-rw-r--r--contrib/tools/protoc/plugins/grpc_java/ya.make13
-rw-r--r--contrib/tools/protoc/plugins/grpc_python/bin/ya.make26
-rw-r--r--contrib/tools/protoc/plugins/grpc_python/ya.make14
-rw-r--r--contrib/tools/protoc/plugins/ya.make6
-rw-r--r--contrib/tools/protoc/ya.make16
-rw-r--r--contrib/tools/protoc/ya.make.induced_deps30
15 files changed, 236 insertions, 0 deletions
diff --git a/contrib/tools/protoc/bin/ya.make b/contrib/tools/protoc/bin/ya.make
new file mode 100644
index 0000000000..2b9c203938
--- /dev/null
+++ b/contrib/tools/protoc/bin/ya.make
@@ -0,0 +1,20 @@
+PROGRAM(protoc)
+
+LICENSE(BSD-3-Clause)
+
+NO_COMPILER_WARNINGS()
+
+PEERDIR(
+ contrib/libs/protoc
+)
+SRCDIR(
+ contrib/libs/protoc
+)
+
+SRCS(
+ src/google/protobuf/compiler/main.cc
+)
+
+INCLUDE(${ARCADIA_ROOT}/contrib/tools/protoc/ya.make.induced_deps)
+
+END()
diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/bin/ya.make b/contrib/tools/protoc/plugins/cpp_styleguide/bin/ya.make
new file mode 100644
index 0000000000..c6e59ea46d
--- /dev/null
+++ b/contrib/tools/protoc/plugins/cpp_styleguide/bin/ya.make
@@ -0,0 +1,19 @@
+PROGRAM(cpp_styleguide)
+
+NO_COMPILER_WARNINGS()
+
+PEERDIR(
+ contrib/libs/protoc
+)
+
+SRCS(
+ cpp_styleguide.cpp
+)
+
+SRCDIR(
+ contrib/tools/protoc/plugins/cpp_styleguide
+)
+
+INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.induced_deps)
+
+END()
diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/ya.make b/contrib/tools/protoc/plugins/cpp_styleguide/ya.make
new file mode 100644
index 0000000000..ea749e8ca7
--- /dev/null
+++ b/contrib/tools/protoc/plugins/cpp_styleguide/ya.make
@@ -0,0 +1,11 @@
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(${ARCADIA_ROOT}/contrib/tools/protoc/plugins/cpp_styleguide/bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+)
diff --git a/contrib/tools/protoc/plugins/grpc_cpp/bin/ya.make b/contrib/tools/protoc/plugins/grpc_cpp/bin/ya.make
new file mode 100644
index 0000000000..81672852db
--- /dev/null
+++ b/contrib/tools/protoc/plugins/grpc_cpp/bin/ya.make
@@ -0,0 +1,28 @@
+PROGRAM(grpc_cpp)
+
+LICENSE(Apache-2.0)
+
+PEERDIR(
+ contrib/libs/grpc/src/compiler/grpc_plugin_support
+)
+
+ADDINCL(
+ contrib/libs/grpc
+ contrib/libs/grpc/include
+)
+
+NO_COMPILER_WARNINGS()
+
+CFLAGS(
+ -DGRPC_USE_ABSL=0
+)
+
+SRCDIR(contrib/libs/grpc/src/compiler)
+
+SRCS(
+ cpp_plugin.cc
+)
+
+INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.induced_deps)
+
+END()
diff --git a/contrib/tools/protoc/plugins/grpc_cpp/ya.make b/contrib/tools/protoc/plugins/grpc_cpp/ya.make
new file mode 100644
index 0000000000..0d73a27c95
--- /dev/null
+++ b/contrib/tools/protoc/plugins/grpc_cpp/ya.make
@@ -0,0 +1,14 @@
+# Copy of contrib/libs/grpc/src/compiler/grpc_cpp_plugin
+# Generated by devtools/yamaker.
+
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(${ARCADIA_ROOT}/contrib/tools/protoc/plugins/grpc_cpp/bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+)
diff --git a/contrib/tools/protoc/plugins/grpc_java/bin/parsever/ya.make b/contrib/tools/protoc/plugins/grpc_java/bin/parsever/ya.make
new file mode 100644
index 0000000000..2237d039c8
--- /dev/null
+++ b/contrib/tools/protoc/plugins/grpc_java/bin/parsever/ya.make
@@ -0,0 +1,11 @@
+PY3_PROGRAM()
+
+PEERDIR(library/python/resource)
+
+RESOURCE(
+ ${ARCADIA_ROOT}/contrib/libs/grpc-java/core/src/main/java/io/grpc/internal/GrpcUtil.java /GrpcUtil.java
+)
+
+PY_SRCS(__main__.py)
+
+END()
diff --git a/contrib/tools/protoc/plugins/grpc_java/bin/test/ya.make b/contrib/tools/protoc/plugins/grpc_java/bin/test/ya.make
new file mode 100644
index 0000000000..d196ed450b
--- /dev/null
+++ b/contrib/tools/protoc/plugins/grpc_java/bin/test/ya.make
@@ -0,0 +1,7 @@
+EXECTEST()
+
+DEPENDS(contrib/tools/protoc/plugins/grpc_java/bin/parsever)
+INCLUDE(${ARCADIA_ROOT}/contrib/tools/protoc/plugins/grpc_java/bin/ya.version)
+RUN(parsever ${GRPC_JAVA_VERSION})
+
+END()
diff --git a/contrib/tools/protoc/plugins/grpc_java/bin/ya.make b/contrib/tools/protoc/plugins/grpc_java/bin/ya.make
new file mode 100644
index 0000000000..34373aefea
--- /dev/null
+++ b/contrib/tools/protoc/plugins/grpc_java/bin/ya.make
@@ -0,0 +1,20 @@
+PROGRAM(grpc_java)
+
+INCLUDE(ya.version)
+
+VERSION(${GRPC_JAVA_VERSION})
+
+NO_COMPILER_WARNINGS()
+
+PEERDIR(
+ contrib/libs/protoc
+)
+
+SRCDIR(contrib/libs/grpc-java/compiler/src/java_plugin/cpp)
+
+SRCS(
+ java_plugin.cpp
+ java_generator.cpp
+)
+
+END()
diff --git a/contrib/tools/protoc/plugins/grpc_java/bin/ya.version b/contrib/tools/protoc/plugins/grpc_java/bin/ya.version
new file mode 100644
index 0000000000..2990e20e5b
--- /dev/null
+++ b/contrib/tools/protoc/plugins/grpc_java/bin/ya.version
@@ -0,0 +1 @@
+SET(GRPC_JAVA_VERSION 1.43.2)
diff --git a/contrib/tools/protoc/plugins/grpc_java/ya.make b/contrib/tools/protoc/plugins/grpc_java/ya.make
new file mode 100644
index 0000000000..23d63e89ba
--- /dev/null
+++ b/contrib/tools/protoc/plugins/grpc_java/ya.make
@@ -0,0 +1,13 @@
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(${ARCADIA_ROOT}/contrib/tools/protoc/plugins/grpc_java/bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+ bin/parsever
+ bin/test
+)
diff --git a/contrib/tools/protoc/plugins/grpc_python/bin/ya.make b/contrib/tools/protoc/plugins/grpc_python/bin/ya.make
new file mode 100644
index 0000000000..ab21ab6c50
--- /dev/null
+++ b/contrib/tools/protoc/plugins/grpc_python/bin/ya.make
@@ -0,0 +1,26 @@
+PROGRAM(grpc_python)
+
+LICENSE(Apache-2.0)
+
+PEERDIR(
+ contrib/libs/grpc/src/compiler/grpc_plugin_support
+)
+
+ADDINCL(
+ contrib/libs/grpc
+ contrib/libs/grpc/include
+)
+
+NO_COMPILER_WARNINGS()
+
+CFLAGS(
+ -DGRPC_USE_ABSL=0
+)
+
+SRCDIR(contrib/libs/grpc/src/compiler)
+
+SRCS(
+ python_plugin.cc
+)
+
+END()
diff --git a/contrib/tools/protoc/plugins/grpc_python/ya.make b/contrib/tools/protoc/plugins/grpc_python/ya.make
new file mode 100644
index 0000000000..3cd9647f0b
--- /dev/null
+++ b/contrib/tools/protoc/plugins/grpc_python/ya.make
@@ -0,0 +1,14 @@
+# Copy of contrib/libs/grpc/src/compiler/grpc_python_plugin
+# Generated by devtools/yamaker.
+
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(${ARCADIA_ROOT}/contrib/tools/protoc/plugins/grpc_python/bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+)
diff --git a/contrib/tools/protoc/plugins/ya.make b/contrib/tools/protoc/plugins/ya.make
new file mode 100644
index 0000000000..44254ae111
--- /dev/null
+++ b/contrib/tools/protoc/plugins/ya.make
@@ -0,0 +1,6 @@
+RECURSE(
+ cpp_styleguide
+ grpc_cpp
+ grpc_java
+ grpc_python
+)
diff --git a/contrib/tools/protoc/ya.make b/contrib/tools/protoc/ya.make
new file mode 100644
index 0000000000..59b96b2a63
--- /dev/null
+++ b/contrib/tools/protoc/ya.make
@@ -0,0 +1,16 @@
+# WARN:
+# The Piglet sync service (abc:cc-piglet) relies on prebuiltness of protoc.
+# DO NOT REMOVE ya.make.prebuilt.
+
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+ plugins
+)
diff --git a/contrib/tools/protoc/ya.make.induced_deps b/contrib/tools/protoc/ya.make.induced_deps
new file mode 100644
index 0000000000..55ede44772
--- /dev/null
+++ b/contrib/tools/protoc/ya.make.induced_deps
@@ -0,0 +1,30 @@
+INDUCED_DEPS(cpp
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/descriptor.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/generated_message_reflection.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/io/coded_stream.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/reflection_ops.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/stubs/common.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/stubs/once.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/stubs/port.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/wire_format.h
+)
+INDUCED_DEPS(h+cpp
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/arena.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/arenastring.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/extension_set.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/generated_enum_reflection.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/generated_message_bases.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/generated_message_table_driven.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/generated_message_util.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/io/coded_stream.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/map.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/map_entry.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/map_field_inl.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/message.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/metadata_lite.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/port_def.inc
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/port_undef.inc
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/repeated_field.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/stubs/common.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/unknown_field_set.h
+)