aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/builtin.cli
AgeCommit message (Collapse)AuthorFilesLines
2023-05-30Add depdb-dyndep --target-extension-type optionBoris Kolpackov1-8/+10
This allows specifying custom extension to target type mapping.
2023-05-29New 'lines' dependency format in depdb-dyndepBoris Kolpackov1-2/+21
2023-05-21Add support for dynamic target extraction in addition to prerequisitesBoris Kolpackov1-8/+33
This functionality is enabled with the depdb-dyndep --dyn-target option. Only the make format is supported, where the listed targets are added as ad hoc group members (unless already specified as static members). This functionality is not available in the --byproduct mode.
2022-03-11Add JSON format support for --structured-result option and info meta operationKaren Arutyunov1-2/+0
2022-02-18Factor out common CLI types (scanners, etc)Karen Arutyunov1-0/+2
2022-01-18Add dynamic prerequisites to $< unless --adhoc is specifiedBoris Kolpackov1-0/+5
Also add a few tests for depdb-dyndep.
2022-01-06Add depdb-dyndep --update-{include,exclude} optionsBoris Kolpackov1-0/+20
These options specify prerequisite targets/patterns to include/exclude (from the static prerequisite set) for update during match as part of dynamic dependency extraction (those excluded will be updated during execute). For example: depdb dyndep ... --update-exclude libue{hello-meta} ... depdb dyndep ... --update-exclude libue{*} ... depdb dyndep ... --update-include $moc --update-include hxx{*} ... The order in which these options are specified is significant with the first target/pattern that matches determining the result. If only the --update-include options are specified, then only the explicitly included prerequisites will be updated. Otherwise, all prerequisites that are not explicitly excluded will be updated. If none of these options is specified, then all the static prerequisites are updated during match. Note also that these options do not apply to ad hoc prerequisites which are always updated during match.
2021-12-03Add depdb-dyndep --drop-cycles optionBoris Kolpackov1-0/+5
2021-11-30Add support for dynamic dependencies as byproduct of script bodyBoris Kolpackov1-7/+23
Specifically, the `depdb dyndep` builtin now has the --byproduct option (which must come first). In this mode only the --file input is supported. For example: obje{hello.o}: cxx{hello} {{ o = $path($>) t = $(o).t depdb dyndep --byproduct --what=header --default-type=h --file $t diag c++ ($<[0]) $cxx.path $cxx.poptions $cc.poptions $cc.coptions $cxx.coptions $cxx.mode -o $o -MD -MF $t -c $path($<[0]) }} Naturally, this mode does not support dynamic auto-generated prerequisites. If present, such prerequisites must be specified statically in the buildfile. Note also that the --default-prereq-type option has been rename to --default-type.
2021-11-23Add support for dynamic dependencies in ad hoc Buildscript recipesBoris Kolpackov1-0/+32
Specifically, add the new `depdb dyndep` builtin that can be used to extract dynamic dependencies from a program run or a file. For example: obje{hello.o}: cxx{hello} {{ s = $path($<[0]) depdb dyndep $cxx.poptions $cc.poptions --what=header --default-prereq-type=h -- $cxx.path $cxx.poptions $cc.poptions $cxx.mode -M -MG $s diag c++ ($<[0]) o = $path($>) $cxx.path $cxx.poptions $cc.poptions $cc.coptions $cxx.coptions $cxx.mode -o $o -c $s }} Currently only the `make` dependency format is supported.