diff options
author | spreis <spreis@yandex-team.com> | 2023-11-13 05:33:49 +0300 |
---|---|---|
committer | spreis <spreis@yandex-team.com> | 2023-11-13 05:51:57 +0300 |
commit | 8037faa61b34ba46c742efe468451b96c4b55c69 (patch) | |
tree | ff4bc7f5a5f57cc2052f4d3b2b7e85f3a0a9a954 /build/ymake.core.conf | |
parent | 4abf85baae59e2393868790fa21539430c9cc1b0 (diff) | |
download | ydb-8037faa61b34ba46c742efe468451b96c4b55c69.tar.gz |
Introduce ALL_RESOURCE_FILES_FROM_DIRS
Diffstat (limited to 'build/ymake.core.conf')
-rw-r--r-- | build/ymake.core.conf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 6fa2cfc7b5..e51a2c19a4 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -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__ } |