|
@@ -5307,6 +5307,26 @@ macro COPY_FILE_WITH_CONTEXT(FILE, DEST, AUTO?"AUTO":"", OUTPUT_INCLUDES[]) {
|
|
|
.CMD=$COPY_FILE($FILE $DEST $AUTO OUTPUT_INCLUDES $FILE $OUTPUT_INCLUDES)
|
|
|
}
|
|
|
|
|
|
+### This is to join $ALL_RES_ and $EXT
|
|
|
+macro _ARF_HELPER(Args...) {
|
|
|
+ RESOURCE_FILES($Args)
|
|
|
+}
|
|
|
+
|
|
|
+### @usage ALL_RESOURCE_FILES(Ext [PREFIX {prefix}] [STRIP {strip}] Dirs...)
|
|
|
+###
|
|
|
+### This macro collects all files with extension `Ext` and
|
|
|
+### Passes them to `RESOURCE_FILES` macro as relative to current directory
|
|
|
+###
|
|
|
+### `PREFIX` and `STRIP` have the same meaning as in `ROURCES_FILES`, both are applied over moddir-relative paths
|
|
|
+###
|
|
|
+### Note: This macro can be used multiple times per ya.make, but only once for each Ext value
|
|
|
+### Note: Wildcards are not allowed neither as Ext nor in Dirs
|
|
|
+macro ALL_RESOURCE_FILES(EXT, PREFIX="", STRIP="", DIRS...) {
|
|
|
+ _GLOB(ALL_RES_$EXT ${suf=/*.$EXT:DIRS})
|
|
|
+ _ARF_HELPER(${pre=PREFIX :PREFIX} STRIP ${ARCADIA_ROOT}/${MODDIR}${pre=/:STRIP} ${pre=$ALL_RES_:EXT})
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
macro _BUNDLE_TARGET(Target, Destination) {
|
|
|
.CMD=$MOVE_FILE ${result:Target} ${output;noauto:Destination} ${kv;hide:"p BN"} ${kv;hide:"pc light-cyan"} $VCS_INFO_DISABLE_CACHE__NO_UID__
|
|
|
}
|
|
@@ -7652,9 +7672,9 @@ macro USE_EXT_PROTO(EXTRA_TAGS...) {
|
|
|
### FILES() macro). Currently this macro copies only files with the following
|
|
|
### extensions: .proto, .gztproto, .ev
|
|
|
macro _RAW_PROTO_SRCS(FILES...) {
|
|
|
- COPY_FILES_TO_BUILD_PREFIX(${ext=.proto:FILES} PREFIX ${_EXT_PROTO_DIR})
|
|
|
- COPY_FILES_TO_BUILD_PREFIX(${ext=.gztproto:FILES} PREFIX ${_EXT_PROTO_DIR})
|
|
|
- COPY_FILES_TO_BUILD_PREFIX(${ext=.ev:FILES} PREFIX ${_EXT_PROTO_DIR})
|
|
|
+ _COPY_FILES_TO_BUILD_PREFIX(${ext=.proto:FILES} PREFIX ${_EXT_PROTO_DIR})
|
|
|
+ _COPY_FILES_TO_BUILD_PREFIX(${ext=.gztproto:FILES} PREFIX ${_EXT_PROTO_DIR})
|
|
|
+ _COPY_FILES_TO_BUILD_PREFIX(${ext=.ev:FILES} PREFIX ${_EXT_PROTO_DIR})
|
|
|
}
|
|
|
|
|
|
module PROTO_DESCRIPTIONS: _BARE_UNIT {
|