aboutsummaryrefslogtreecommitdiffstats
path: root/build/prebuilt/contrib
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /build/prebuilt/contrib
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'build/prebuilt/contrib')
-rw-r--r--build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make7
-rw-r--r--build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make.prebuilt13
-rw-r--r--build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make7
-rw-r--r--build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.prebuilt13
-rw-r--r--build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/flatc/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/flatc/ya.make.induced_deps4
-rw-r--r--build/prebuilt/contrib/tools/flatc/ya.make.prebuilt15
-rw-r--r--build/prebuilt/contrib/tools/flatc/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/flatc64/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/flatc64/ya.make.induced_deps3
-rw-r--r--build/prebuilt/contrib/tools/flatc64/ya.make.prebuilt15
-rw-r--r--build/prebuilt/contrib/tools/flatc64/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.induced_deps6
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.prebuilt15
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.induced_deps29
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.prebuilt15
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make.prebuilt13
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make.prebuilt13
-rw-r--r--build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/protoc/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/protoc/ya.make.induced_deps29
-rw-r--r--build/prebuilt/contrib/tools/protoc/ya.make.prebuilt15
-rw-r--r--build/prebuilt/contrib/tools/protoc/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/protoc_std/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/protoc_std/ya.make.induced_deps24
-rw-r--r--build/prebuilt/contrib/tools/protoc_std/ya.make.prebuilt15
-rw-r--r--build/prebuilt/contrib/tools/protoc_std/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/python/bootstrap/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/python/bootstrap/ya.make.prebuilt13
-rw-r--r--build/prebuilt/contrib/tools/python/bootstrap/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/python3/pycc/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/python3/pycc/ya.make.prebuilt13
-rw-r--r--build/prebuilt/contrib/tools/python3/pycc/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/ragel6/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/ragel6/ya.make.prebuilt13
-rw-r--r--build/prebuilt/contrib/tools/ragel6/ya.make.resource9
-rw-r--r--build/prebuilt/contrib/tools/yasm/ya.make7
-rw-r--r--build/prebuilt/contrib/tools/yasm/ya.make.prebuilt13
-rw-r--r--build/prebuilt/contrib/tools/yasm/ya.make.resource9
48 files changed, 513 insertions, 0 deletions
diff --git a/build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make b/build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make
new file mode 100644
index 0000000000..6c588a1b09
--- /dev/null
+++ b/build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt uca9dump tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make.prebuilt b/build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make.prebuilt
new file mode 100644
index 0000000000..907121ce31
--- /dev/null
+++ b/build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make.prebuilt
@@ -0,0 +1,13 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(UCA9DUMP sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${UCA9DUMP_RESOURCE_GLOBAL}/uca9dump${MODULE_SUFFIX})
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make.resource b/build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make.resource
new file mode 100644
index 0000000000..d72d47b803
--- /dev/null
+++ b/build/prebuilt/contrib/libs/libmysql_r/strings/uca9dump/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1623743666)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1623751939)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1623746337)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make b/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make
new file mode 100644
index 0000000000..7f1e2d135f
--- /dev/null
+++ b/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt mypy-protobuf tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.prebuilt b/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.prebuilt
new file mode 100644
index 0000000000..607ec865b4
--- /dev/null
+++ b/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.prebuilt
@@ -0,0 +1,13 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM(protoc-gen-mypy)
+
+ DECLARE_EXTERNAL_RESOURCE(MYPY_PROTOBUF sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${MYPY_PROTOBUF_RESOURCE_GLOBAL}/protoc-gen-mypy${MODULE_SUFFIX})
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.resource b/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.resource
new file mode 100644
index 0000000000..8edf2e5d4a
--- /dev/null
+++ b/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2433625017)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2433625425)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2433624379)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/flatc/ya.make b/build/prebuilt/contrib/tools/flatc/ya.make
new file mode 100644
index 0000000000..b8bf0fa869
--- /dev/null
+++ b/build/prebuilt/contrib/tools/flatc/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt flatc tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/flatc/ya.make.induced_deps b/build/prebuilt/contrib/tools/flatc/ya.make.induced_deps
new file mode 100644
index 0000000000..9dbdb62e07
--- /dev/null
+++ b/build/prebuilt/contrib/tools/flatc/ya.make.induced_deps
@@ -0,0 +1,4 @@
+INDUCED_DEPS(h
+ ${ARCADIA_ROOT}/contrib/libs/flatbuffers/include/flatbuffers/flatbuffers.h
+ ${ARCADIA_ROOT}/contrib/libs/flatbuffers/include/flatbuffers/flatbuffers_iter.h
+)
diff --git a/build/prebuilt/contrib/tools/flatc/ya.make.prebuilt b/build/prebuilt/contrib/tools/flatc/ya.make.prebuilt
new file mode 100644
index 0000000000..029dbb9a3e
--- /dev/null
+++ b/build/prebuilt/contrib/tools/flatc/ya.make.prebuilt
@@ -0,0 +1,15 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(FLATC sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${FLATC_RESOURCE_GLOBAL}/flatc${MODULE_SUFFIX})
+
+ INCLUDE(ya.make.induced_deps)
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/flatc/ya.make.resource b/build/prebuilt/contrib/tools/flatc/ya.make.resource
new file mode 100644
index 0000000000..9be11f95f2
--- /dev/null
+++ b/build/prebuilt/contrib/tools/flatc/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2266417119)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2266417608)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2266416624)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/flatc64/ya.make b/build/prebuilt/contrib/tools/flatc64/ya.make
new file mode 100644
index 0000000000..2cac72a3f1
--- /dev/null
+++ b/build/prebuilt/contrib/tools/flatc64/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt flatc64 tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/flatc64/ya.make.induced_deps b/build/prebuilt/contrib/tools/flatc64/ya.make.induced_deps
new file mode 100644
index 0000000000..444da5bfaa
--- /dev/null
+++ b/build/prebuilt/contrib/tools/flatc64/ya.make.induced_deps
@@ -0,0 +1,3 @@
+INDUCED_DEPS(h
+ ${ARCADIA_ROOT}/contrib/libs/flatbuffers64/include/flatbuffers/flatbuffers.h
+)
diff --git a/build/prebuilt/contrib/tools/flatc64/ya.make.prebuilt b/build/prebuilt/contrib/tools/flatc64/ya.make.prebuilt
new file mode 100644
index 0000000000..fbd09edcd1
--- /dev/null
+++ b/build/prebuilt/contrib/tools/flatc64/ya.make.prebuilt
@@ -0,0 +1,15 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(FLATC64 sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${FLATC64_RESOURCE_GLOBAL}/flatc64${MODULE_SUFFIX})
+
+ INCLUDE(ya.make.induced_deps)
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/flatc64/ya.make.resource b/build/prebuilt/contrib/tools/flatc64/ya.make.resource
new file mode 100644
index 0000000000..49e1fe8cf5
--- /dev/null
+++ b/build/prebuilt/contrib/tools/flatc64/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2266401575)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2266402127)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2266400964)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make b/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make
new file mode 100644
index 0000000000..a829e49648
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF(NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt cpp_styleguide tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.induced_deps b/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.induced_deps
new file mode 100644
index 0000000000..af24c0aa4d
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.induced_deps
@@ -0,0 +1,6 @@
+INDUCED_DEPS(cpp
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/messagext.h
+)
+INDUCED_DEPS(h+cpp
+ ${ARCADIA_ROOT}/contrib/libs/protobuf/src/google/protobuf/json_util.h
+)
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.prebuilt b/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.prebuilt
new file mode 100644
index 0000000000..e853626aea
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.prebuilt
@@ -0,0 +1,15 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(CPP_STYLEGUIDE sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${CPP_STYLEGUIDE_RESOURCE_GLOBAL}/cpp_styleguide${MODULE_SUFFIX})
+
+ INCLUDE(ya.make.induced_deps)
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.resource b/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.resource
new file mode 100644
index 0000000000..48d9ac46cb
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2340617812)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2340619844)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2340616765)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make b/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make
new file mode 100644
index 0000000000..1e9e0eaa87
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt grpc_cpp tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.induced_deps b/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.induced_deps
new file mode 100644
index 0000000000..c08ef9b905
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.induced_deps
@@ -0,0 +1,29 @@
+INDUCED_DEPS(cpp
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/async_stream.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/async_unary_call.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/channel_interface.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/client_unary_call.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/method_handler_impl.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/rpc_service_method.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/service_type.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/sync_stream.h
+)
+INDUCED_DEPS(h+cpp
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/async_stream.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/async_unary_call.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/method_handler_impl.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/proto_utils.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/rpc_method.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/service_type.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/status.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/stub_options.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpc++/impl/codegen/sync_stream.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpcpp/impl/codegen/async_stream.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpcpp/impl/codegen/async_generic_service.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpcpp/impl/codegen/client_callback.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpcpp/impl/codegen/server_callback.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpcpp/impl/codegen/client_context.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpcpp/impl/codegen/completion_queue.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpcpp/impl/codegen/server_context.h
+ ${ARCADIA_ROOT}/contrib/libs/grpc/include/grpcpp/impl/codegen/method_handler.h
+)
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.prebuilt b/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.prebuilt
new file mode 100644
index 0000000000..3b18d1c192
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.prebuilt
@@ -0,0 +1,15 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(GRPC_CPP sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${GRPC_CPP_RESOURCE_GLOBAL}/grpc_cpp${MODULE_SUFFIX})
+
+ INCLUDE(ya.make.induced_deps)
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.resource b/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.resource
new file mode 100644
index 0000000000..abdf7a9a1a
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_cpp/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2584304489)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2584305537)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2584303873)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make b/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make
new file mode 100644
index 0000000000..7f2c29c699
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt grpc_java tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make.prebuilt b/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make.prebuilt
new file mode 100644
index 0000000000..4636c8594c
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make.prebuilt
@@ -0,0 +1,13 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(GRPC_JAVA sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${GRPC_JAVA_RESOURCE_GLOBAL}/grpc_java${MODULE_SUFFIX})
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make.resource b/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make.resource
new file mode 100644
index 0000000000..ae75538a60
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_java/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2584508133)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2584508870)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2584507401)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make b/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make
new file mode 100644
index 0000000000..1ff11262eb
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt grpc_python tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make.prebuilt b/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make.prebuilt
new file mode 100644
index 0000000000..81fccbc086
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make.prebuilt
@@ -0,0 +1,13 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(GRPC_PYTHON sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${GRPC_PYTHON_RESOURCE_GLOBAL}/grpc_python${MODULE_SUFFIX})
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make.resource b/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make.resource
new file mode 100644
index 0000000000..c8b0b04166
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/plugins/grpc_python/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2584497118)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2584497759)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2584496517)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/ya.make b/build/prebuilt/contrib/tools/protoc/ya.make
new file mode 100644
index 0000000000..65d08147a7
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt protoc tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/ya.make.induced_deps b/build/prebuilt/contrib/tools/protoc/ya.make.induced_deps
new file mode 100644
index 0000000000..fe5a21c374
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/ya.make.induced_deps
@@ -0,0 +1,29 @@
+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_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
+)
diff --git a/build/prebuilt/contrib/tools/protoc/ya.make.prebuilt b/build/prebuilt/contrib/tools/protoc/ya.make.prebuilt
new file mode 100644
index 0000000000..f3500a0e13
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/ya.make.prebuilt
@@ -0,0 +1,15 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(PROTOC sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${PROTOC_RESOURCE_GLOBAL}/protoc${MODULE_SUFFIX})
+
+ INCLUDE(ya.make.induced_deps)
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc/ya.make.resource b/build/prebuilt/contrib/tools/protoc/ya.make.resource
new file mode 100644
index 0000000000..dea93b0d30
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2318808466)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2318809046)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 2318807898)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc_std/ya.make b/build/prebuilt/contrib/tools/protoc_std/ya.make
new file mode 100644
index 0000000000..5118243498
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc_std/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt protoc_std tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc_std/ya.make.induced_deps b/build/prebuilt/contrib/tools/protoc_std/ya.make.induced_deps
new file mode 100644
index 0000000000..6b33b300bb
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc_std/ya.make.induced_deps
@@ -0,0 +1,24 @@
+INDUCED_DEPS(cpp
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/extension_set.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/io/coded_stream.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/io/zero_copy_stream_impl_lite.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/port_def.inc
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/port_undef.inc
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/reflection_ops.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/wire_format.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/wire_format_lite.h
+)
+INDUCED_DEPS(h+cpp
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/arena.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/arenastring.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/extension_set.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/generated_enum_util.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/generated_message_table_driven.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/generated_message_util.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/io/coded_stream.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/message_lite.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/metadata_lite.h
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/port_def.inc
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/port_undef.inc
+ ${ARCADIA_ROOT}/contrib/libs/protobuf_std/src/google/protobuf/repeated_field.h
+)
diff --git a/build/prebuilt/contrib/tools/protoc_std/ya.make.prebuilt b/build/prebuilt/contrib/tools/protoc_std/ya.make.prebuilt
new file mode 100644
index 0000000000..b0706a1100
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc_std/ya.make.prebuilt
@@ -0,0 +1,15 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM(protoc)
+
+ DECLARE_EXTERNAL_RESOURCE(PROTOC_STD sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${PROTOC_STD_RESOURCE_GLOBAL}/protoc${MODULE_SUFFIX})
+
+ INCLUDE(ya.make.induced_deps)
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/protoc_std/ya.make.resource b/build/prebuilt/contrib/tools/protoc_std/ya.make.resource
new file mode 100644
index 0000000000..738c7da7ec
--- /dev/null
+++ b/build/prebuilt/contrib/tools/protoc_std/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1714771857)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1714772118)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1714771351)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/python/bootstrap/ya.make b/build/prebuilt/contrib/tools/python/bootstrap/ya.make
new file mode 100644
index 0000000000..e2b736b1ca
--- /dev/null
+++ b/build/prebuilt/contrib/tools/python/bootstrap/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt python bootstrap tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/python/bootstrap/ya.make.prebuilt b/build/prebuilt/contrib/tools/python/bootstrap/ya.make.prebuilt
new file mode 100644
index 0000000000..b913fc767a
--- /dev/null
+++ b/build/prebuilt/contrib/tools/python/bootstrap/ya.make.prebuilt
@@ -0,0 +1,13 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(PYTHON_BOOTSTRAP sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${PYTHON_BOOTSTRAP_RESOURCE_GLOBAL}/bootstrap${MODULE_SUFFIX})
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/python/bootstrap/ya.make.resource b/build/prebuilt/contrib/tools/python/bootstrap/ya.make.resource
new file mode 100644
index 0000000000..0d93faef4c
--- /dev/null
+++ b/build/prebuilt/contrib/tools/python/bootstrap/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1623751539)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1623751959)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1623751763)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/python3/pycc/ya.make b/build/prebuilt/contrib/tools/python3/pycc/ya.make
new file mode 100644
index 0000000000..02359db517
--- /dev/null
+++ b/build/prebuilt/contrib/tools/python3/pycc/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt python3 pycc tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/python3/pycc/ya.make.prebuilt b/build/prebuilt/contrib/tools/python3/pycc/ya.make.prebuilt
new file mode 100644
index 0000000000..94be584928
--- /dev/null
+++ b/build/prebuilt/contrib/tools/python3/pycc/ya.make.prebuilt
@@ -0,0 +1,13 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(PYTHON3_PYCC sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${PYTHON3_PYCC_RESOURCE_GLOBAL}/pycc${MODULE_SUFFIX})
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/python3/pycc/ya.make.resource b/build/prebuilt/contrib/tools/python3/pycc/ya.make.resource
new file mode 100644
index 0000000000..86fb31e84f
--- /dev/null
+++ b/build/prebuilt/contrib/tools/python3/pycc/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1980692765)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1980693356)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1980693002)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/ragel6/ya.make b/build/prebuilt/contrib/tools/ragel6/ya.make
new file mode 100644
index 0000000000..09718e2927
--- /dev/null
+++ b/build/prebuilt/contrib/tools/ragel6/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt ragel6 tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/ragel6/ya.make.prebuilt b/build/prebuilt/contrib/tools/ragel6/ya.make.prebuilt
new file mode 100644
index 0000000000..51ee82f82e
--- /dev/null
+++ b/build/prebuilt/contrib/tools/ragel6/ya.make.prebuilt
@@ -0,0 +1,13 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(RAGEL6 sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${RAGEL6_RESOURCE_GLOBAL}/ragel6${MODULE_SUFFIX})
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/ragel6/ya.make.resource b/build/prebuilt/contrib/tools/ragel6/ya.make.resource
new file mode 100644
index 0000000000..e37012f682
--- /dev/null
+++ b/build/prebuilt/contrib/tools/ragel6/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1959624378)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1969915297)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1959624268)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/yasm/ya.make b/build/prebuilt/contrib/tools/yasm/ya.make
new file mode 100644
index 0000000000..244e9a343b
--- /dev/null
+++ b/build/prebuilt/contrib/tools/yasm/ya.make
@@ -0,0 +1,7 @@
+OWNER(g:ymake)
+
+INCLUDE(ya.make.prebuilt)
+
+IF (NOT PREBUILT)
+ MESSAGE(FATAL_ERROR Unsupported host platform for prebuilt yasm tool)
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/yasm/ya.make.prebuilt b/build/prebuilt/contrib/tools/yasm/ya.make.prebuilt
new file mode 100644
index 0000000000..7bb58bd669
--- /dev/null
+++ b/build/prebuilt/contrib/tools/yasm/ya.make.prebuilt
@@ -0,0 +1,13 @@
+INCLUDE(ya.make.resource)
+
+IF (SANDBOX_RESOURCE_ID != "")
+ ENABLE(PREBUILT)
+
+ PREBUILT_PROGRAM()
+
+ DECLARE_EXTERNAL_RESOURCE(YASM sbr:${SANDBOX_RESOURCE_ID})
+
+ PRIMARY_OUTPUT(${YASM_RESOURCE_GLOBAL}/yasm${MODULE_SUFFIX})
+
+ END()
+ENDIF()
diff --git a/build/prebuilt/contrib/tools/yasm/ya.make.resource b/build/prebuilt/contrib/tools/yasm/ya.make.resource
new file mode 100644
index 0000000000..0a4e958b20
--- /dev/null
+++ b/build/prebuilt/contrib/tools/yasm/ya.make.resource
@@ -0,0 +1,9 @@
+IF (OS_DARWIN AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1601295306)
+ELSEIF (OS_LINUX AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1601295551)
+ELSEIF (OS_WINDOWS AND ARCH_X86_64)
+ SET(SANDBOX_RESOURCE_ID 1601295437)
+ELSE()
+ SET(SANDBOX_RESOURCE_ID)
+ENDIF()