aboutsummaryrefslogtreecommitdiffstats
path: root/build/ymake.core.conf
diff options
context:
space:
mode:
authorreshilkin <reshilkin@yandex-team.com>2023-08-02 14:07:40 +0300
committerreshilkin <reshilkin@yandex-team.com>2023-08-02 14:07:40 +0300
commite59e20ae2d1e498c1a2ee4c6f9036475b45b8329 (patch)
tree3d13375b78f4564e6750704a4b538dd3da5e2a9f /build/ymake.core.conf
parenta98df246dd365c2c1ce33e8d65a5a1ec2f175bff (diff)
downloadydb-e59e20ae2d1e498c1a2ee4c6f9036475b45b8329.tar.gz
Using deprecated flatc for compiling PY2FBS
Diffstat (limited to 'build/ymake.core.conf')
-rw-r--r--build/ymake.core.conf6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index c5a48a78e6..3f1a1e9e26 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -953,7 +953,11 @@ _PY_FBS_DEPS=contrib/python/flatbuffers
### processed when --add-flatbuf-result flag is specified on the command line
### for 'ya make ...' (tar archive is extracted to output directory).
macro FBS_TO_PYSRC(OUT_NAME, IN_FBS_FILES...) {
- .CMD=${cwd:ARCADIA_BUILD_ROOT} ${tool:"contrib/tools/flatc"} --python --gen-mutable ${FLATC_FLAGS_VALUE} ${pre=-I :_FLATC__INCLUDE} -o ${BINDIR} ${input:IN_FBS_FILES} && $YMAKE_PYTHON3 ${input:"build/scripts/tar_sources.py"} --exts .py --input $BINDIR --output ${output;noauto;tared:OUT_NAME.fbs.pysrc} ${kv;hide:"p FP"} ${kv;hide:"pc light-green"} ${kv;hide:"tared_kind nodir"}
+ .CMD=${cwd:ARCADIA_BUILD_ROOT} ${tool:"contrib/tools/flatc"} --python --gen-mutable ${FLATC_FLAGS_VALUE} ${pre=-I :_FLATC__INCLUDE} -o ${BINDIR} ${input:IN_FBS_FILES} && $YMAKE_PYTHON3 ${input:"build/scripts/tar_sources.py"} --exts .py --input $BINDIR --output ${output;noauto;tared:OUT_NAME.py3.fbs.pysrc} ${kv;hide:"p FP"} ${kv;hide:"pc light-green"} ${kv;hide:"tared_kind nodir"}
+}
+
+macro FBS_TO_PY2SRC(OUT_NAME, IN_FBS_FILES...) {
+ .CMD=${cwd:ARCADIA_BUILD_ROOT} ${tool:"contrib/deprecated/flatc"} --python --gen-mutable ${FLATC_FLAGS_VALUE} ${pre=-I :_FLATC__INCLUDE} -o ${BINDIR} ${input:IN_FBS_FILES} && $YMAKE_PYTHON3 ${input:"build/scripts/tar_sources.py"} --exts .py --input $BINDIR --output ${output;noauto;tared:OUT_NAME.py2.fbs.pysrc} ${kv;hide:"p FP"} ${kv;hide:"pc light-green"} ${kv;hide:"tared_kind nodir"}
}
# tag:fbs tag:go-specific