|
@@ -3834,43 +3834,6 @@ macro CONFIGURE_FILE(Src, Dst) {
|
|
|
.SEM=set_vars ${CFG_VARS} && configure_file $S/${input;rootrel:Src} $B/${output;addincl;rootrel:Dst}
|
|
|
}
|
|
|
|
|
|
-### @usage: BASE_CODEGEN(tool_path prefix)
|
|
|
-###
|
|
|
-### Generator ${prefix}.cpp + ${prefix}.h files based on ${prefix}.in.
|
|
|
-macro BASE_CODEGEN(Tool, Prefix, Opts...) {
|
|
|
- .CMD=${tool:Tool} ${input:Prefix.in} ${output;nopath;noauto:Prefix.cpp} ${output;nopath:Prefix.h} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc yellow"}
|
|
|
-}
|
|
|
-
|
|
|
-# tag:internal
|
|
|
-### @usage: _SPLIT_CODEGEN_BASE(tool prefix OUTS[] OUTPUT_INCLUDES[]) # internal
|
|
|
-###
|
|
|
-### Generator of a certain number .the. cpp file + one header .h file from .in.
|
|
|
-### This is the call of the generator. Python macro SPLIT_CODEGEN() is defined in order to properly fill command outputs from OUT_NUM argument.
|
|
|
-macro _SPLIT_CODEGEN_BASE(Tool, Prefix, OUT[], OPTS[], OUTPUT_INCLUDES[]) {
|
|
|
- .CMD=${tool:Tool} ${input:Prefix.in} ${output;hide:OUT} ${output;nopath;noauto:Prefix.cpp} ${output;nopath:Prefix.h} $OPTS ${output_include;hide:OUTPUT_INCLUDES} ${kv;hide:"p SC"} ${kv;hide:"pc yellow"}
|
|
|
-}
|
|
|
-
|
|
|
-STRUCT_CODEGEN_OUTPUT_INCLUDES=${output_include;hide:"util/generic/singleton.h"} \
|
|
|
-${output_include;hide:"util/generic/strbuf.h"} \
|
|
|
-${output_include;hide:"util/generic/vector.h"} \
|
|
|
-${output_include;hide:"util/generic/ptr.h"} \
|
|
|
-${output_include;hide:"util/generic/yexception.h"} \
|
|
|
-${output_include;hide:"kernel/struct_codegen/reflection/reflection.h"} \
|
|
|
-${output_include;hide:"kernel/struct_codegen/reflection/floats.h"}
|
|
|
-
|
|
|
-### @usage: STRUCT_CODEGEN(Prefix)
|
|
|
-### A special case BASE_CODEGEN, in which the kernel/struct_codegen/codegen_tool tool is used.
|
|
|
-macro STRUCT_CODEGEN(Prefix) {
|
|
|
- .CMD=$BASE_CODEGEN(kernel/struct_codegen/codegen_tool, $Prefix, $STRUCT_CODEGEN_OUTPUT_INCLUDES)
|
|
|
- .PEERDIR=kernel/struct_codegen/metadata kernel/struct_codegen/reflection
|
|
|
-}
|
|
|
-
|
|
|
-### @usage: DUMPERF_CODEGEN(Prefix)
|
|
|
-### A special case BASE_CODEGEN, in which the extsearch/images/robot/tools/dumperf/codegen tool is used
|
|
|
-macro DUMPERF_CODEGEN(Prefix) {
|
|
|
- .CMD=$BASE_CODEGEN(extsearch/images/robot/tools/dumperf/codegen, $Prefix, ${output_include;hide:"extsearch/images/kernel/erf/erf_format.h"})
|
|
|
-}
|
|
|
-
|
|
|
# tag:flags
|
|
|
### @usage: LDFLAGS(LinkerFlags...)
|
|
|
###
|
|
@@ -4130,8 +4093,6 @@ macro _LUAJIT_OPENRESTY_OBJDUMP(Src, OUT="") {
|
|
|
.CMD=${cwd:LUAJIT_OPENRESTY_PATH} ${tool:"contrib/libs/luajit_openresty/compiler"} -b -g ${input:Src} ${output;noauto:OUT} ${kv;hide:"p LJ"} ${kv;hide:"pc light-cyan"}
|
|
|
}
|
|
|
|
|
|
-RELEV_FML_CODEGEN_INCLS=${output_include;hide:"kernel/relevfml/relev_fml.h"} ${output_include;hide:"library/cpp/sse/sse.h"}
|
|
|
-
|
|
|
### @usage: GENERATE_ENUM_SERIALIZATION(File.h)
|
|
|
###
|
|
|
### Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module.
|