diff options
author | Devtools Arcadia <arcadia-devtools@yandex-team.ru> | 2022-02-07 18:08:42 +0300 |
---|---|---|
committer | Devtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net> | 2022-02-07 18:08:42 +0300 |
commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /build/prebuilt/contrib/tools/flatc | |
download | ydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'build/prebuilt/contrib/tools/flatc')
4 files changed, 35 insertions, 0 deletions
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() |