ADDITIONAL_CLEAN_FILES¶
在 3.15 版被加入.
A ;-list of files or directories that will be
removed as a part of the global clean
target. It can be used to specify
files and directories that are generated as part of building the target or
that are directly associated with the target in some way (e.g. created as a
result of running the target).
For custom targets, if such files can be captured as outputs or byproducts
instead, then that should be preferred over adding them to this property.
If an additional clean file is used by multiple targets or isn't
target-specific, then the ADDITIONAL_CLEAN_FILES
directory
property may be the more appropriate property to use.
Relative paths are allowed and are interpreted relative to the current binary directory.
ADDITIONAL_CLEAN_FILES
的內容可以使用生成器表達式
。
該屬性只對 Ninja
和 Makefile 生成器有效。其他生成器會忽略它。