aboutsummaryrefslogtreecommitdiff
path: root/build2/cli/rule.cxx
AgeCommit message (Collapse)AuthorFilesLines
2018-06-29Use depdb to track changes to cli compiler, options, etcBoris Kolpackov1-16/+61
2018-06-28Implement support for excluded and ad hoc prerequisitesBoris Kolpackov1-41/+36
The inclusion/exclusion is controlled via the 'include' prerequisite-specific variable. Valid values are: false - exclude true - include adhoc - include but treat as an ad hoc input For example: lib{foo}: cxx{win32-utility}: include = ($cxx.targe.class == 'windows') exe{bar}: libs{plugin}: include = adhoc
2018-05-19Update copyright yearKaren Arutyunov1-1/+1
2018-02-07Initial work for default update outer operationBoris Kolpackov1-3/+3
While update still uses the old "all update rules update all their prerequisites" assumption, test and install have been fixed not to rely on this.
2018-02-03Get rid of action rule override semanticsBoris Kolpackov1-4/+4
Instead we now have two more or less separate match states for outer and inner parts of an action.
2017-12-16Improve process execution diagnostics by reusing run_*() APIBoris Kolpackov1-18/+2
2017-08-23Add perform_clean_group(), use instead of ad hoc implementation in cli ruleBoris Kolpackov1-30/+1
2017-05-01Add hxx extension for headersKaren Arutyunov1-8/+8
2017-04-28Implement support for pre-processing version headers (or other files)Boris Kolpackov1-14/+14
Also implement the build system version check.
2017-04-27Pass target to prerequisite searchBoris Kolpackov1-3/+6
2017-04-10Adapt to process_error changeKaren Arutyunov1-1/+1
2017-03-02Implement parallel matchBoris Kolpackov1-55/+38
2017-02-13Tighten target constness furtherBoris Kolpackov1-1/+1
2017-02-13Use target:as<> instead of static_cast for target castingBoris Kolpackov1-3/+3
2017-02-13Pass const target& to recipesBoris Kolpackov1-6/+6
2017-02-13Implement target_set locking, including extension updateBoris Kolpackov1-7/+5
2017-02-13Store extension in target map key rather than in targetBoris Kolpackov1-4/+7
This is in preparation for locking its modification/access.
2017-02-13Pass const scope& where modification should not happenBoris Kolpackov1-1/+1
2017-02-13Add model mutex, make var_pool const by defaultBoris Kolpackov1-8/+8
2017-01-23Go back to storing scope instead of target in prerequisiteBoris Kolpackov1-1/+1
Turns out this was semantically the right way to do it.
2017-01-20Remove prerequisite caching in scopeBoris Kolpackov1-1/+1
We don't share them often and those that are shared (e.g., cxx{} in obja/objs{}) are lightweight (SOO).
2017-01-19Get rid of extension_poolBoris Kolpackov1-4/+4
2017-01-18Ignore prerequisite mtimes that are not linker inputsBoris Kolpackov1-4/+10
This makes sure, for example, that we don't unnecessarily re-link an executable when its testscript prerequisite is changes.
2017-01-09Make use of operator<<(ostream, exception)Karen Arutyunov1-1/+1
2017-01-05Update copyright yearBoris Kolpackov1-1/+1
2016-12-17Add support for specifying individual paths of imported targetsBoris Kolpackov1-1/+1
The new config.import.* variable format is: config.import.<proj>.<name>[.<type>] For example: b config.import.build2.b=/opt/build2/bin/b b config.import.build2.b.exe=b-boot
2016-11-04Cleanup match_result messBoris Kolpackov1-7/+7
2016-09-17Audit all print_process()/process ctor for path_search()Karen Arutyunov1-3/+4
2016-07-08Add dependency on fsdir{} in alias rulesBoris Kolpackov1-1/+1
This makes sure that a directory with only dir{} target gets cleaned up.
2016-07-08Move filesystem-related functions from context to new filesystem filesBoris Kolpackov1-0/+3
2016-04-21Implement short-circuiting to group stateBoris Kolpackov1-5/+5
This is necessary to get rid of bogus restarts in inject_prerequisites() where it think a group member was updated since its state changed from unknown to (group's) changed.
2016-04-19Redesign src/out scopingBoris Kolpackov1-5/+5
We no longer enter paths from the src tree into scope map. Instead, targets from the src tree now include their out tree directory (in essence their "configuration"). This is then used to find a target's scope. See the comment in class target for details. The result of this change is that we can now again build multiple configurations (out trees) for same project at once.
2016-03-28Clean up variable usageBoris Kolpackov1-2/+2
2016-03-28Add variable cast from lookupBoris Kolpackov1-1/+1
2016-03-28New variable architectureBoris Kolpackov1-1/+1
2016-03-11Implement --config-{guess,sub} optionsBoris Kolpackov1-2/+0
2016-02-29Rename level[1-6]() to l[1-6]()Boris Kolpackov1-7/+7
2016-02-29Implement auxiliary dependency database (.d files), use in cxx.compileBoris Kolpackov1-4/+2
This is part of the "High Fidelity Build" work.
2016-02-12<types>/<utility> scheme cleanupBoris Kolpackov1-2/+1
2016-01-11Add support for cli's --output-{prefix,suffix} optionsBoris Kolpackov1-3/+43
2016-01-09Update copyright yearBoris Kolpackov1-1/+1
2016-01-05Rename build directory/namespace to build2Boris Kolpackov1-0/+305