aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-02-09Add dyndep_rule::inject_group_member()Boris Kolpackov2-1/+69
2022-02-09Don't use fallback file_rule to clean real targetsBoris Kolpackov3-3/+22
2022-02-09Improve commentsBoris Kolpackov1-3/+6
2022-02-09Don't skip empty see-through target groupsBoris Kolpackov3-38/+34
2022-02-09Add perform_clean_group_extra()Boris Kolpackov2-123/+151
2022-02-09Add read-only mode to depdbBoris Kolpackov3-58/+98
2022-02-07Add support for meta-operation wildcard in scope::insert_rule()Boris Kolpackov3-12/+36
2022-02-07Make match_inc_dependents() part of public APIBoris Kolpackov3-5/+10
2022-02-07Use target::as instead of static_cast everywhereBoris Kolpackov3-8/+8
2022-02-02Work around issue in older Clang versionsBoris Kolpackov1-0/+2
2022-02-02Redo diagnostics without operator<< in namespace stdBoris Kolpackov7-113/+103
2022-01-28Add note to buildfileKaren Arutyunov1-0/+3
2022-01-26Make bash module install into bin/<project>.bash/ to avoid clashesBoris Kolpackov6-34/+74
Also, expect the first component in the import path to be full project name even in case it has the .bash extension.
2022-01-21Add another overload of to_target(), declare in functions-name.hxxBoris Kolpackov3-6/+44
2022-01-21Add search_new() and search_new_locked() variants of search()Boris Kolpackov4-10/+132
2022-01-20Add in::rule::perform_update_{pre,post}() hooksBoris Kolpackov2-9/+41
Also fix bug in depdb line parsing.
2022-01-18Add dynamic prerequisites to $< unless --adhoc is specifiedBoris Kolpackov10-87/+260
Also add a few tests for depdb-dyndep.
2022-01-17Comment out 'requires: ? cli' in package manifest until rewrittenKaren Arutyunov1-2/+2
2022-01-17Use UTF-8 as default input/source charset for C/C++ compilationBoris Kolpackov8-35/+110
2022-01-16Expand on extension escaping in manualBoris Kolpackov1-2/+8
2022-01-16Minor clarifications to wildcard name patterns section in manualBoris Kolpackov1-7/+16
2022-01-16Minor tweak to NEWS fileBoris Kolpackov1-0/+4
2022-01-13Update NEWS file with support for dynamic dependenciesBoris Kolpackov1-0/+127
2022-01-11Work around VC14 bugBoris Kolpackov2-10/+2
2022-01-11Add note on MSVC warning C4819Boris Kolpackov1-0/+2
2022-01-10Add psapi.lib and iphlpapi.lib to list of Windows system librariesBoris Kolpackov1-0/+2
2022-01-10Consider implied targets when resolving dynamic dependenciesBoris Kolpackov2-7/+21
2022-01-06Add depdb-dyndep --update-{include,exclude} optionsBoris Kolpackov10-180/+504
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.
2022-01-06Factor reusable code to target_key::effective_name()Boris Kolpackov4-47/+56
2022-01-04Update copyrightBoris Kolpackov1-1/+1
2021-12-17Add TODO commentBoris Kolpackov1-0/+5
2021-12-16Verify targets that alias same path are read-onlyBoris Kolpackov3-4/+121
2021-12-16Pass context to (meta-)operation hooksBoris Kolpackov8-94/+104
2021-12-16Don't consider implied existing targets in dyndep logicBoris Kolpackov2-9/+39
While considering implied targets should be harmless, the result is racy.
2021-12-15Return stable imported target name from import_direct()Boris Kolpackov6-33/+78
2021-12-14Clarify commentBoris Kolpackov1-3/+2
2021-12-14Clean .t file in ad hoc recipeBoris Kolpackov2-3/+21
2021-12-06Recognize absolute Windows paths in make parserBoris Kolpackov7-49/+111
2021-12-06Redo make_parser interface to return path, handle invalid_path exceptionBoris Kolpackov5-20/+27
2021-12-03Get rid of unused lambda capturesBoris Kolpackov1-1/+1
2021-12-03Add depdb-dyndep --drop-cycles optionBoris Kolpackov7-60/+107
2021-12-02Automatically register pattern rules for dist meta-operationBoris Kolpackov2-4/+33
We need to do this in order to inject additional pattern prerequisites which may "pull" additional sources into the distribution.
2021-12-02Fix path function test failure on WindowsBoris Kolpackov1-1/+1
2021-12-02Add $root_directory(<path>) functionBoris Kolpackov2-1/+64
2021-12-02Add $relative(<path>,<dir-path>) functionBoris Kolpackov2-1/+72
2021-12-01Don't save test configuration variables to ~build2 configurationKaren Arutyunov1-11/+14
Also stop saving blank lines between groups of options.
2021-11-30Get rid of unused lambda capturesBoris Kolpackov1-4/+4
2021-11-30Add support for dynamic dependencies as byproduct of script bodyBoris Kolpackov13-327/+1136
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-30Add support for reopening depdbBoris Kolpackov2-16/+101
2021-11-29Fix bug in in::ruleBoris Kolpackov2-4/+4