aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-03-23 09:17:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-03-23 09:17:13 +0200
commit112f44f7f863e34d42657ad3bf14d160cc3e11e8 (patch)
treed5f02e5890839222aa87ca896c86bb46eb751f0a /libbuild2/install/utility.hxx
parent5a763a5552184090602f0a9303b9266f5412f020 (diff)
Add support for relocatable installation in $install.resolve()
Diffstat (limited to 'libbuild2/install/utility.hxx')
-rw-r--r--libbuild2/install/utility.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/libbuild2/install/utility.hxx b/libbuild2/install/utility.hxx
index 7ab8114..2ba7b18 100644
--- a/libbuild2/install/utility.hxx
+++ b/libbuild2/install/utility.hxx
@@ -74,13 +74,22 @@ namespace build2
// and fail unless fail_unknown is false, in which case return empty
// directory.
//
+ // For rel_base semantics, see the $install.resolve() documentation. Note
+ // that fail_unknown does not apply to the rel_base resolution.
+ //
// Note: implemented in rule.cxx.
//
LIBBUILD2_SYMEXPORT dir_path
- resolve_dir (const target&, dir_path, bool fail_unknown = true);
+ resolve_dir (const target&,
+ dir_path,
+ dir_path rel_base = {},
+ bool fail_unknown = true);
LIBBUILD2_SYMEXPORT dir_path
- resolve_dir (const scope&, dir_path, bool fail_unknown = true);
+ resolve_dir (const scope&,
+ dir_path,
+ dir_path rel_base = {},
+ bool fail_unknown = true);
// Resolve file installation path returning empty path if not installable.
//