aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install
AgeCommit message (Collapse)AuthorFilesLines
2023-03-23Add support for relocatable installation in $install.resolve()Boris Kolpackov3-13/+102
2023-03-23Add support for relocatable installation manifestBoris Kolpackov6-42/+116
2023-03-22Initial work on relocatable install: config.install.relocatable and rpathBoris Kolpackov1-2/+23
2023-03-07Add new include_arch/config.install.include_arch installation locationBoris Kolpackov1-35/+37
It is mean for target architecture-specific headers.
2023-03-01Add support for installation manifestBoris Kolpackov5-19/+485
2023-02-22Set explicit 755 install mode for exe{} targetsBoris Kolpackov1-0/+5
This helps cases where an executable gets installed somewhere else where the default is not 755 (for example to libexec/, which on Debian has the 644 mode).
2022-12-08Normalize extracted header/library search directories (GH issue #235)Boris Kolpackov3-8/+12
2022-11-23Rework diag_buffer interface to facilitate correct destruction orderBoris Kolpackov1-4/+4
2022-11-16Initial low verbosity diagnostics reworkBoris Kolpackov2-38/+117
2022-11-08Make process exit diagnostics consistentBoris Kolpackov1-8/+22
In particular, we now always print error message on non-0 exit except in cases where such exit is ignored.
2022-11-08More work on child process diagnostics bufferingBoris Kolpackov1-6/+11
2022-10-13Improve diagnosticsBoris Kolpackov1-0/+12
2022-10-13Optimize by going straight to public variable pool where applicableBoris Kolpackov2-13/+16
2022-10-13Switch to public/private variables modelBoris Kolpackov3-35/+41
Now unqualified variables are project-private and can be typified.
2022-10-10Preparatory work for public/private variable distinctionBoris Kolpackov1-0/+2
We still always use the public var_pool from context but where required, all access now goes through scope::var_pool().
2022-05-23Cache build.host value in contextBoris Kolpackov1-2/+2
2022-04-19Switch recipe from std::function to butl::move_only_function_exBoris Kolpackov1-1/+1
2022-04-07Rename {match,execute}() to *_sync(), add *_complete()Boris Kolpackov1-5/+5
In particular, the match() rename makes sure it doesn't clash with rule::match() which, after removal of the hint argument in simple_rule, has exactly the same signature, thus making it error-prone to calling recursively.
2022-04-06Add support for rule hintsBoris Kolpackov3-19/+18
A rule hint is a target attribute, for example: [rule_hint=cxx] exe{hello}: c{hello} Rule hints can be used to resolve ambiguity when multiple rules match the same target as well as to override an unambiguous match.
2022-03-21Filter out exe{} prerequisites in install group rule similar to file ruleBoris Kolpackov2-0/+29
2022-03-21Make sure install group rule take precedence over fallback file ruleBoris Kolpackov1-2/+8
2022-03-07Fix operation-specific variables logic for inner/outer operationsBoris Kolpackov2-9/+18
2022-03-02Add update operation-specific variable with unmatch|match additional valuesBoris Kolpackov2-10/+29
Note that the unmatch (match but do not update) and match (update during match) values are only supported by certain rules (and potentially only for certain prerequisite types). Additionally: - All operation-specific variables are now checked for false as an override for the prerequisite-specific include value. In particular, this can now be used to disable a prerequisite for update, for example: ./: exe{test}: update = false - The cc::link_rule now supports the update=match value for headers and ad hoc prerequisites. In particular, this can be used to make sure all the library headers are updated before matching any of its (or dependent's) object files.
2022-01-26Make bash module install into bin/<project>.bash/ to avoid clashesBoris Kolpackov1-1/+0
Also, expect the first component in the import path to be full project name even in case it has the .bash extension.
2021-12-16Pass context to (meta-)operation hooksBoris Kolpackov1-3/+6
2021-11-04Do not apply install scope to update-for-install pre-operationBoris Kolpackov2-2/+6
2021-10-07Allow forcing installation of exe{} prerequisites of file targetsBoris Kolpackov2-2/+12
This can be achieved with prerequisite-specific install=true, for example: exe{foo}: exe{bar}: install = true # foo runs bar
2021-10-07Minor install-related cleanupsBoris Kolpackov2-2/+15
2021-10-06Do not install exe{} prerequisites of file targetsBoris Kolpackov2-7/+18
2021-09-29Add notion of bundle amalgamation scopeBoris Kolpackov2-0/+3
2021-09-28Adapt to libbutl headers extension change from .mxx to .hxxKaren Arutyunov2-2/+2
2021-09-17Add fallback update-for-uninstall rule to global scopeBoris Kolpackov1-3/+6
2021-09-14Fix few issues with new config.install.scopeBoris Kolpackov1-32/+31
2021-09-14Consistently install prerequisites from any scope by defaultBoris Kolpackov5-24/+111
It is also now possible to adjust this behavior with global config.install.scope override. Valid values for this variable are: project -- only from project strong -- from strong amalgamation weak -- from weak amalgamation global -- from all projects (default)
2021-05-04Add config.install.root with data_root/etc/ defaultBoris Kolpackov1-0/+2
2021-04-22Add <version> install directory substitution in addition to <project>Boris Kolpackov1-5/+20
2021-04-07Register environment variables for hermetic build configurationsBoris Kolpackov1-0/+34
2021-02-09Minor simplificationBoris Kolpackov1-2/+2
2020-12-04Mark Buildfile functions as pure or impureBoris Kolpackov1-1/+3
2020-12-01Add clarifying commentBoris Kolpackov1-2/+3
2020-11-30Don't fail if unable to remove empty directory on uninstallBoris Kolpackov1-3/+15
2020-10-20Add operation callback for adhoc rule match and applyBoris Kolpackov1-1/+7
2020-08-25Add missing move() callBoris Kolpackov1-1/+3
2020-08-16Add ability to initialize bootstrapped modules after loading root.buildBoris Kolpackov1-3/+1
2020-07-13Add ability to extend rule interface in source-compatible mannerBoris Kolpackov1-3/+3
2020-07-10Tweak rule namesBoris Kolpackov1-1/+1
2020-07-09Make sure update-for-{test,install} works for files out of any projectBoris Kolpackov1-0/+6
2020-07-09Relax prerequisite filtering semantics of aliases in test and install rulesBoris Kolpackov2-4/+2
2020-07-01Add support for private installationsBoris Kolpackov1-42/+109
2020-07-01Use <project> substitution in install directoriesBoris Kolpackov1-21/+24