aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
AgeCommit message (Collapse)AuthorFilesLines
2020-05-27Review (temp dir)Boris Kolpackov2-7/+14
2020-05-27Add script command redirect aliasesKaren Arutyunov27-316/+781
2020-05-27Make build script to create special files in temporary directoryKaren Arutyunov6-47/+200
2020-05-27Complete dump(ostream,script::lines)Karen Arutyunov5-82/+262
2020-05-27Make build script runner to execute exit-containing expression in dry-run modeKaren Arutyunov2-8/+12
2020-05-27Implement build script variable hashingBoris Kolpackov7-21/+124
2020-05-27Add ability to notice variable expansions in pre-parse modeBoris Kolpackov4-48/+74
2020-05-27Partially implement dump(ostream,script::lines)Karen Arutyunov3-7/+43
2020-05-27Remove redundant script member from build::script::environment classKaren Arutyunov6-12/+10
2020-05-27Add support for dry run mode for build script runnerKaren Arutyunov3-18/+23
2020-05-27Set proper build script command default redirectsKaren Arutyunov8-100/+256
Also add printing of set and exit pseudo-builtin command arguments for verb >= 2 as we do for normal builtins.
2020-05-27Make build script parser unit test compilableKaren Arutyunov1-4/+2
2020-05-27Add recipe library target state to cxx_ruleBoris Kolpackov2-8/+15
2020-05-27Additional ad hoc C++ recipe change detectionBoris Kolpackov1-202/+281
2020-05-27Integrate buildscript running into recipe default_action()Boris Kolpackov8-58/+74
2020-05-27Integrate buildscript pre-parsing into recipe parsingBoris Kolpackov6-33/+41
2020-05-27Fix to compile with ClangKaren Arutyunov1-1/+3
2020-05-27Make build script variable pool local to execution environmentBoris Kolpackov5-65/+53
2020-05-27Add dump(ostream,script::lines) (partial implementation)Karen Arutyunov16-28/+199
2020-05-27Add build scriptKaren Arutyunov30-0/+3325
2020-05-27Factor out generic script parsing/executing functionality from ↵Karen Arutyunov45-7543/+8296
build2::test::script namespace
2020-05-27Add support for recipe location updateBoris Kolpackov3-61/+83
2020-05-27Support for the nested build caseBoris Kolpackov3-34/+56
2020-05-27Implement ad hoc recipe sharing and lockingBoris Kolpackov11-150/+270
2020-05-27Add support for custom constructors in ad hoc C++ recipesBoris Kolpackov1-12/+66
2020-05-27Support for cleaning up recipe buildsBoris Kolpackov4-6/+83
2020-05-27Initial support for ad hoc C++ recipesBoris Kolpackov11-219/+645
2020-05-27Generalize to adhoc_rule/adhoc_script_ruleBoris Kolpackov6-118/+180
2020-05-27Use recipe data in ad hoc ruleBoris Kolpackov4-92/+95
2020-05-27Initial support for parsing and dumping recipesBoris Kolpackov6-140/+413
2020-05-27Handle multi-curly-brace tokens in lexerBoris Kolpackov8-45/+306
2020-05-27Add lexer mode dataBoris Kolpackov4-6/+9
2020-05-27WIPBoris Kolpackov2-8/+147
2020-05-27Add recognition for line-leading `%` as tokenBoris Kolpackov8-28/+104
2020-05-27WIPBoris Kolpackov3-13/+87
2020-05-27Add ad hoc recipes plumbingBoris Kolpackov6-7/+78
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 Kolpackov7-64/+198
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 Kolpackov3-16/+42
Specifically, now the following does the right thing: print +foo
2020-04-30Verify path set by {src,out}-root.build files is absoluteBoris Kolpackov3-35/+55
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 Kolpackov31-302/+1380
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)"