|
@@ -2560,6 +2560,21 @@ macro ALL_RESOURCE_FILES(EXT, PREFIX="", STRIP="", DIRS...) {
|
|
|
_ARF_HELPER(${pre=PREFIX :PREFIX} STRIP ${ARCADIA_ROOT}/${MODDIR}/${STRIP} ${pre=$ALL_RES_:EXT})
|
|
|
}
|
|
|
|
|
|
+### @usage ALL_RESOURCE_FILES_FROM_DIRS([PREFIX {prefix}] [STRIP {strip}] Dirs...)
|
|
|
+###
|
|
|
+### This macro collects all files non-recursively from listed Dirs and
|
|
|
+### Passes them to `RESOURCE_FILES` macro as relative to current directory
|
|
|
+### The macro is usefull if literally all files are needed because `ALL_RESOURCE_FILES` requires extension to be specified
|
|
|
+###
|
|
|
+### `PREFIX` and `STRIP` have the same meaning as in `ROURCES_FILES`, both are applied over moddir-relative paths
|
|
|
+###
|
|
|
+### Note: This macro can be used only once per ya.make
|
|
|
+### Note: Wildcards are not allowed neither as Ext nor in Dirs
|
|
|
+macro ALL_RESOURCE_FILES_FROM_DIRS(PREFIX="", STRIP="", DIRS...) {
|
|
|
+ _GLOB(_ALL_RES_DIRS ${suf=/*:DIRS})
|
|
|
+ _ARF_HELPER(${pre=PREFIX :PREFIX} STRIP ${ARCADIA_ROOT}/${MODDIR}/${STRIP} ${_ALL_RES_DIRS})
|
|
|
+}
|
|
|
+
|
|
|
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__
|
|
|
}
|