aboutsummaryrefslogtreecommitdiff
path: root/build2/install/rule.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-13 13:29:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-13 13:29:54 +0200
commit2da6777d14a1cf600891cdeee6202d692eae48f9 (patch)
tree756cf03db8fceebeaec088f1167aad64ce81a74d /build2/install/rule.hxx
parent8632a68385258e43f73c91a0106b34dcd3f8d733 (diff)
Implement support for chroot'ed install (aka DESTDIR)
For example: b config.install.root=/usr config.install.chroot=/tmp/install The difference between doing just config.install.root=/tmp/install/usr is that everything is installed "as if" into /usr. So, for example, pkg-config files will contain -I/usr/include, -L/usr/lib, etc.
Diffstat (limited to 'build2/install/rule.hxx')
-rw-r--r--build2/install/rule.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/install/rule.hxx b/build2/install/rule.hxx
index 26f568b..642ab96 100644
--- a/build2/install/rule.hxx
+++ b/build2/install/rule.hxx
@@ -79,7 +79,8 @@ namespace build2
// Install a symlink: base/link -> target.
//
static void
- install_l (const install_dir& base,
+ install_l (const scope& rs,
+ const install_dir& base,
const path& target,
const path& link,
bool verbose);
@@ -93,7 +94,8 @@ namespace build2
// exist).
//
static bool
- uninstall_f (const install_dir& base,
+ uninstall_f (const scope& rs,
+ const install_dir& base,
const file* t,
const path& name,
bool verbose);