aboutsummaryrefslogtreecommitdiff
path: root/build2/context.cxx
AgeCommit message (Collapse)AuthorFilesLines
2018-07-30Make project variable to be of project_name typeKaren Arutyunov1-4/+4
2018-07-28Add build.version.stage boolean variableBoris Kolpackov1-0/+14
It can be used to detection (for example, in tests) whether this is a staged toolchain.
2018-07-16Implement in moduleBoris Kolpackov1-1/+0
Given test.in containing something along these lines: foo = $foo$ Now we can do: using in file{test}: in{test.in} file{test}: foo = FOO The alternative variable substitution symbol can be specified with the in.symbol variable and lax (instead of the default strict) mode with in.substitution. For example: file{test}: in.symbol = '@' file{test}: in.substitution = lax
2018-06-28Add prerequisite variable visibility specification/enforcementBoris Kolpackov1-2/+3
2018-06-28Implement support for excluded and ad hoc prerequisitesBoris Kolpackov1-0/+3
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-06-20Fix race in phase switch during failureBoris Kolpackov1-0/+3
2018-05-19Update copyright yearKaren Arutyunov1-1/+1
2018-05-19Set <module>.booted variable for booted but not yet loaded modulesBoris Kolpackov1-4/+7
2018-05-19Add manifest{} target type ('manifest' file name automatically mapped as such)Boris Kolpackov1-0/+5
2018-05-19Support for deriving target type from file name, handle testscript, buildfileBoris Kolpackov1-0/+5
In particular, instead of: exe{test}: test{testscript} We should now write: exe{test}: testscript
2018-05-02Add support for different backlinking modes, use for Windows DLL assemblyBoris Kolpackov1-3/+3
2018-04-28Expose meta-operation in build.meta_operation variableBoris Kolpackov1-0/+4
2018-04-26Implement forwarded configurations and backlinkingBoris Kolpackov1-20/+28
2018-02-22Make dist diagnostics tidier yetBoris Kolpackov1-0/+1
2018-02-07Add support for update-for-{test,install} operation aliasesBoris Kolpackov1-7/+9
2018-02-07Initial work for default update outer operationBoris Kolpackov1-1/+2
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-01-05Add support for variable aliasesBoris Kolpackov1-1/+1
2017-12-16Improve process execution diagnostics by reusing run_*() APIBoris Kolpackov1-1/+1
2017-12-15Remove unnecessary according to Clang lambda captures to suppress warningsBoris Kolpackov1-4/+4
Apparently, use of a reference to a global variable need not be captured: https://bugs.llvm.org/show_bug.cgi?id=35669
2017-12-13Implement info meta operationBoris Kolpackov1-0/+1
This meta operation can be used to print basic information (name, version, source/output roots, etc) for one or more projects.
2017-12-07Distinguish between "fixed" and "default" target extensionsBoris Kolpackov1-1/+3
This fixes wrong merging of, say, file{README} and file{README.MySQL} (in libmysqlclient).
2017-12-03Allow typification of variables and values across load generationsBoris Kolpackov1-1/+1
The original semantics turned out to be too restrictive. For example, the user may have specified the config.c variable on the command line that is only used by an imported project that is loaded in a subsequent generation. We are also relaxing it for values since conceptually the two feel the same. For a value the (hypothetical) example is a "common" variable set in a project root that is only queried in a subdirectory in a subsequent generation.
2017-12-01Terminate waiting threads if coming off failed load phaseBoris Kolpackov1-2/+148
In this case the build state may no longer be valid.
2017-11-21Improve skipped update diagnosticsBoris Kolpackov1-0/+1
Instead of printing a line for each target skipped we now print a summary with count at the end. We also now show the skip count in progress.
2017-11-09Add support for for-loopBoris Kolpackov1-1/+1
The semantics is similar to the C++11 range-based for: list = 1 2 3 for i: $list print $i Note that there is no scoping of any kind for the loop variable ('i' in the above example). See tests/loop/for.test for some examples/ideas. In the future the plan is to also support more general while-loop as well as break and continue.
2017-10-03Adapt to modularization of libbutlKaren Arutyunov1-1/+1
2017-08-20Add support for not cleaning generated version fileBoris Kolpackov1-0/+4
2017-08-04Make file_rule match mtime_targets that have valid timestampBoris Kolpackov1-2/+2
This can be used to handle installed target groups like lib{}.
2017-08-01Add version, project.summary, project.url built-in variablesBoris Kolpackov1-4/+16
Extract them from manifest in the version module. Use them when generating the pkg-config's .pc files.
2017-07-27Implement displaying build progress (--progress|-p)Boris Kolpackov1-20/+63
2017-05-01Add hxx extension for headersKaren Arutyunov1-11/+11
2017-04-28Align build.version.* variables with standard version/version moduleBoris Kolpackov1-11/+25
2017-04-28Add in{} target type for .in ("input") file (requires preprocessing)Boris Kolpackov1-0/+1
2017-04-25Rename version header to version-impl to give way to version moduleBoris Kolpackov1-1/+0
2017-03-17Implement create meta-operationBoris Kolpackov1-1/+5
2017-03-15Add build.verbosity variable with -v/-V/--verbose valueBoris Kolpackov1-0/+4
2017-03-10Implement support for wildcard patternsBoris Kolpackov1-92/+97
2017-03-02Implement parallel matchBoris Kolpackov1-7/+146
2017-02-13Add MT-safe variable_cache, use for variable overridesBoris Kolpackov1-4/+0
2017-02-13Allow back overriding variables specified in buildfilesBoris Kolpackov1-1/+1
It is still not clear whether this is the right thing to allow, conceptually, but with this disallowed it's hard to test this functionality. Perhaps we should have an attribute [overridable]. The problem is one will also have to set this variable to some value (e.g., [null]) which is not exactly the same as undefined (especially when testing).
2017-02-13Implement parallel error propagation, keep_going modeBoris Kolpackov1-3/+34
Keep going is the default but there is now the -s|--serial-stop that makes the driver run serially and stop at first error. Also fix some lockups, other minor improvements/features.
2017-02-13Introduce target::task_countBoris Kolpackov1-1/+1
2017-02-13Pass const scope& where modification should not happenBoris Kolpackov1-9/+13
2017-02-13Redo variable pattern-typing to match in more specific orderBoris Kolpackov1-8/+12
2017-02-13Add notion of load phase generationBoris Kolpackov1-2/+5
2017-02-13Implement pattern-based variable typing, tighten variable type updateBoris Kolpackov1-1/+16
2017-02-13Add notion of phase, enforceBoris Kolpackov1-0/+2
2017-02-13Add scheduling calls to operation's match()Boris Kolpackov1-2/+2
2017-02-13Add model mutex, make var_pool const by defaultBoris Kolpackov1-19/+41
2017-01-19Get rid of extension_poolBoris Kolpackov1-4/+0