aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
AgeCommit message (Collapse)AuthorFilesLines
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)"
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-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.