add new module PREBUILT_PROGRAM; remove obsolete macros _MAPKIT_CPP_PROTO_CMD and _EXTERNAL_CPP_PROTO_CMD
@@ -489,18 +489,6 @@ macro _CPP_PROTO_EVLOG_CMD(File) {
.PEERDIR=library/eventlog contrib/libs/protobuf
}
-macro _MAPKIT_CPP_PROTO_CMD(File) {
- # We don't support GRPC for protoc used here
- .CMD=$CPP_PROTO_CMDLINE $CPP_PROTO_OUTS ${kv;hide:"p PB"} ${kv;hide:"pc yellow"}
- .PEERDIR=build/external_resources/mapkit_sdk
-}
-
-macro _EXTERNAL_CPP_PROTO_CMD(File) {
- # We don't support GRPC for protoc used here
- .CMD=$CPP_PROTO_CMDLINE $CPP_PROTO_OUTS ${kv;hide:"p PB"} ${kv;hide:"pc yellow"}
- .PEERDIR=build/external_resources/protoc
-}
-
macro _PY_PROTO_CMD_BASE(File, Suf, Args...) {
.CMD=$PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE -I=$ARCADIA_BUILD_ROOT -I=$PROTO_PATH --python_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE ${input;rootrel:File} ${output;hide;noauto;norel;nopath;noext;suf=$Suf:File} ${kv;hide:"p PT"} ${kv;hide:"pc yellow"} $Args
}
@@ -5448,6 +5436,20 @@ module DLL_PROXY_LIBRARY: _PROXY_LIBRARY {
.CMD=_DLL_PROXY_LIBRARY_CMD
}
+_PREBUILT_PROGRAM_CMD=$GENERATE_MF && $COPY_CMD $_PRIMARY_OUTPUT_VALUE ${TARGET} ${kv;hide:"p ld"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"}
+
+### @usage: PREBUILT_PROGRAM([programname]) # internal
+###
+### Program module which uses a prebuilt prgram as its output.
+module PREBUILT_PROGRAM: _LINK_UNIT {
+ .CMD=_PREBUILT_PROGRAM_CMD
+ .SYMLINK_POLICY=EXE
+ .ALLOWED=INDUCED_DEPS PRIMARY_OUTPUT
+ .RESTRICTED=SRCS
+
+ SET(MODULE_TYPE PROGRAM)
+}
+
### @usage: MAPSMOBI_COLLECT_ASSETS_FILES(varname [dir]) # internal
###
### This macro is strictly prohibited to use outside of mapsmobi project
