aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsvidyuk <svidyuk@yandex-team.ru>2022-04-27 08:16:51 +0300
committersvidyuk <svidyuk@yandex-team.ru>2022-04-27 08:16:51 +0300
commitf8cb939ce134ab4402acd871c05f85ee76fb1a2e (patch)
treee9ae78cf4484b393a1917980dd445b33d357266c
parenta88d20022e2c2dca66cd8266945efb4f1a3d2376 (diff)
downloadydb-f8cb939ce134ab4402acd871c05f85ee76fb1a2e.tar.gz
_SRC('xsyn' ...) moved to core conf
ref:08f88057452b451069f8c628317236b868421b43
-rw-r--r--build/plugins/xsyn.py34
-rw-r--r--build/ymake.core.conf4
2 files changed, 4 insertions, 34 deletions
diff --git a/build/plugins/xsyn.py b/build/plugins/xsyn.py
deleted file mode 100644
index ab7c1639db..0000000000
--- a/build/plugins/xsyn.py
+++ /dev/null
@@ -1,34 +0,0 @@
-import _import_wrapper as iw
-import _common as common
-
-
-class Xsyn(iw.CustomCommand):
-
- def __init__(self, path, unit):
- self._path = path
-
- def descr(self):
- return 'XN', self._path, 'yellow'
-
- def tools(self):
- return []
-
- def input(self):
- return common.make_tuples([
- '$S/library/cpp/xml/parslib/xsyn2ragel.py',
- self._path,
- '$S/library/cpp/xml/parslib/xmlpars.xh'
- ])
-
- def output(self):
- return common.make_tuples([
- common.tobuilddir(self._path + '.h.rl5')
- ])
-
- def run(self, extra_args, interpeter):
- self.call(interpeter + [self.resolve_path(common.get(self.input, 0)), self.resolve_path(common.get(self.input, 1)),
- self.resolve_path(common.get(self.input, 2)), 'dontuse'], stdout=common.get(self.output, 0))
-
-
-def init():
- iw.addrule('xsyn', Xsyn)
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index c5f9d52012..b0208179a3 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -5754,6 +5754,10 @@ macro _SRC("rl", SRC, SRCFLAGS...) {
.CMD=$RUN_NO_SANITIZE ${tool:"contrib/tools/ragel5/ragel"} $RAGEL_FLAGS ${SRCFLAGS} -o ${tmp:SRC.tmp} ${input:SRC} && $RUN_NO_SANITIZE ${tool:"contrib/tools/ragel5/rlgen-cd"} $RLGEN_FLAGS -o ${output;nopath;noext;defext=.rl5.cpp:SRC} ${tmp:SRC.tmp} ${kv;hide:"p R5"} ${kv;hide:"pc yellow"}
}
+macro _SRC("xsyn", SRC, SRCFLAGS...) {
+ .CMD=$YMAKE_PYTHON ${input:"library/cpp/xml/parslib/xsyn2ragel.py"} ${input:SRC} ${input:"library/cpp/xml/parslib/xmlpars.xh"} dontuse ${output;stdout;suf=.h.rl5:SRC} ${kv;hide:"p XN"} ${kv;hide:"pc yellow"}
+}
+
# tag:src-processing
macro _SRC("rl5", SRC, SRCFLAGS...) {
.CMD=$_SRC(rl $SRC $SRCFLAGS)