aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-06-03Add versioning for ad hoc C++ recipesBoris Kolpackov4-21/+60
This will allow us to deal with backward-incompatible changes to cxx_rule interface and semantics.
2020-06-03Factor implementation-specific ad hoc recipe parsing to adhoc_*_ruleBoris Kolpackov5-93/+128
2020-06-02Hash checksum metadata of exe prerequisites in ad hoc script ruleBoris Kolpackov1-16/+56
2020-06-02Add $target.process_path() analogous to $target.path()Boris Kolpackov3-3/+33
2020-06-02Add process_path_ex with program stable name and checksumBoris Kolpackov10-58/+305
2020-06-01Fix buildscript unit test to compileBoris Kolpackov1-1/+1
2020-06-01Extend target metadata to include variable prefix, stable nameBoris Kolpackov4-31/+106
2020-05-29Move low-verbosity command name from adhoc_script_rule to scriptBoris Kolpackov6-17/+27
2020-05-29Add support for is-else, switch in ad hoc recipesBoris Kolpackov2-131/+278
2020-05-28Allow calling certain search_existing() versions during load phaseBoris Kolpackov4-10/+9
This is necessary for $target.path() implementation.
2020-05-28Regenerate options parsing codeBoris Kolpackov2-48/+50
2020-05-27Add support for value subscript after expansionsBoris Kolpackov10-85/+308
Value subscript is only recognized in evaluation contexts (due to ambiguity with wildcard patterns; consider: $x[123].txt) and should be unseparated from the previous token. For example: x = ($y[1]) x = (($f ? $y : $z)[1]) x = ($identity($y)[$z])
2020-05-27Initial support for ad hoc recipes (still work in progress)Boris Kolpackov129-8192/+16218
2020-05-27Improve ternary diagnostics with info for wildcard pattern escapeBoris Kolpackov1-2/+13
2020-05-27Suppress skip count diagnostics if no progress was requestedBoris Kolpackov1-2/+5
2020-05-27Fix unregistered .regex file cleanup error in testscriptKaren Arutyunov1-1/+5
2020-05-27Amalgamation cutoff supportBoris Kolpackov8-66/+200
Now a project that disables amalgamation will not logically "see" an outer project even if it's physically inside its scope.
2020-05-27Use location_value in module_stateBoris Kolpackov2-4/+4
2020-05-22Get rid of now deprecated std::is_pod usageBoris Kolpackov2-9/+18
2020-05-22Fix bug in previous commitBoris Kolpackov1-1/+1
2020-05-22Make template definition available in all translation units where usedBoris Kolpackov5-30/+40
We were trying to be clever but GCC 10's IPA-SRA optimization didn't like it.
2020-05-01Fix outstanding issue with directive vs assignment differentiationBoris Kolpackov4-16/+65
Specifically, now the following does the right thing: print +foo
2020-04-30Verify path set by {src,out}-root.build files is absoluteBoris Kolpackov4-38/+56
2020-04-30Rename target::member to target::adhoc_memberBoris Kolpackov8-26/+34
2020-04-30Factor recipe to separate header/source filesBoris Kolpackov8-58/+86
2020-04-27Get rid of warningsBoris Kolpackov3-21/+32
2020-04-27Rework tool importation along with cli moduleBoris Kolpackov38-595/+1624
Specifically, now config.<tool> (like config.cli) is handled by the import machinery (it is like a shorter alias for config.import.<tool>.<tool>.exe that we already had). And the cli module now uses that instead of custom logic. This also adds support for uniform tool metadata extraction that is handled by the import machinery. As a result, a tool that follows the "build2 way" can be imported with metadata by the buildfile and/or corresponding module without any tool-specific code or brittleness associated with parsing --version or similar outputs. See the cli tool/module for details. Finally, two new flavors of the import directive are now supported: import! triggers immediate importation skipping any rule-specific logic while import? is optional import (analogous to using?). Note that optional import is always immediate. There is also the import-specific metadata attribute which can be specified for these two import flavors in order to trigger metadata importation. For example: import? [metadata] cli = cli%exe{cli} if ($cli != [null]) info "cli version $($cli:cli.version)"
2020-04-27Add utility config::{assign,append}_config() functionsBoris Kolpackov1-1/+43
2020-04-27Require explicit variable type in scope::{assign,append}()Boris Kolpackov2-30/+44
2020-04-27Make rule non-copyableBoris Kolpackov1-0/+5
2020-04-27Add support for untyped assignment to valueBoris Kolpackov2-1/+19
2020-04-27Add another search_existing() overloadBoris Kolpackov2-0/+19
2020-04-27Don't switch projects when switching scopes during bootstrapBoris Kolpackov5-30/+47
2020-04-27Add inject() for injecting additional dependencies during matchBoris Kolpackov2-0/+14
2020-04-27Fix assertion failure when name extension pattern is usedKaren Arutyunov1-0/+4
2020-04-16Fix crashing on unhandled io_error thrown by depdb::flush()Karen Arutyunov1-0/+9
2020-04-13Add ../share/pkgconfig/ search directory by default on LinuxBoris Kolpackov2-10/+20
2020-04-11Pass LC_ALL=C when extracting locale-dependent information in bin module on ↵Karen Arutyunov2-10/+50
POSIX
2020-04-10Replace build-email manifest value with build-warning-emailKaren Arutyunov1-1/+1
2020-04-08Proofreading fixes to manualBoris Kolpackov1-11/+11
2020-04-08Allow configuration variables in unnamed projectsBoris Kolpackov2-13/+40
While generally a bad idea, there are valid situations where this may happen, such as a standalone build of the tests subproject in test-installed.
2020-04-08Document project-specific configuration supportBoris Kolpackov3-20/+778
2020-04-07Pass LC_ALL=C when extracting locale-dependent information on POSIXBoris Kolpackov5-26/+117
2020-04-07Bump build2 version requirement to 0.13.0- (need config directive)Boris Kolpackov1-2/+2
Note that this means there will be no upgrade support for this release.
2020-04-03Tweak ~host configuration extraction regexBoris Kolpackov1-4/+6
2020-04-03Skip unmatched lines in $regex.replace_lines() if format_no_copy flag is ↵Karen Arutyunov2-3/+25
specified
2020-04-02Fix ~host config to only contain cc and bin modules configurationBoris Kolpackov5-14/+31
Also add ~build2 that contains everything (except config.dist.*) to be used for build system modules.
2020-03-31Tweak variable patterns not to break overridesBoris Kolpackov1-29/+32
2020-03-31Fix bug in install_path() call (Windows-specific)Boris Kolpackov1-2/+6
2020-03-31Handle duplicate config directives for same variableBoris Kolpackov3-3/+29