diff options
author | egovol <egovol@yandex-team.com> | 2024-05-08 22:10:22 +0300 |
---|---|---|
committer | egovol <egovol@yandex-team.com> | 2024-05-08 22:22:19 +0300 |
commit | 5125038c3297541c96dda189c9fe2fd61a594d9d (patch) | |
tree | 32d0888b75aaccc16a9060c6fcb26718226d6635 | |
parent | 65c7668fade840d2c45f77a24dfdccecdebf54ae (diff) | |
download | ydb-5125038c3297541c96dda189c9fe2fd61a594d9d.tar.gz |
HEADERS macro
309672fc45c700b977182e068736589cb6650407
-rw-r--r-- | build/ymake.core.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf index b40ced38b7..b719374da7 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -5823,6 +5823,14 @@ macro STYLE_CPP() { _ADD_LINTER_CHECK(cpp_style tools/cpp_style_checker/cpp_style_checker DEPENDS contrib/libs/clang16/tools/clang-format CONFIGS build/config/tests/cpp_style/config.clang-format) } +### @usage: HEADERS([Dir1 Dir2 ...]) +### +### Add all C/C++ header files (h/hh/hpp) in given directories to SRCS +macro HEADERS(Dirs...) { + _GLOB(_HEADERS ${suf=/*.(h|hh|hpp):Dirs}) + SRCS($_HEADERS) +} + ### @usage: CLANG_EMIT_AST_CXX_RUN_TOOL(Tool Args... [SOURCES ...] [OPTS ...] [IN ...] [IN_NOPARSE ...] [TOOL ...] [OUTPUT_INCLUDES ...] [INDUCED_DEPS ...] [IN_DEPS ...] [STDOUT out-file-name] [STDOUT_NOAUTO out-file-name] [CWD cwd]) ### ### Emit Clang ASTs from .cpp files listed in SOURCES parameter (CXXFLAGS and LLVM_OPTS are passed in, while CFLAGS and C_FLAGS_PLATFORM are not) and run tool Tool with Args... . |