aboutsummaryrefslogtreecommitdiff
path: root/build2/install/rule
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-07 08:09:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:42 +0200
commit7b9eb752cad04aaadc4552d0f26d307b04af1869 (patch)
treed19cdb450ddec384ec41d9129f8d4afecc14acb7 /build2/install/rule
parentbe773edfa2c8f8f3230509bbd713542d20fbb37e (diff)
Pass const target& to recipes
Diffstat (limited to 'build2/install/rule')
-rw-r--r--build2/install/rule10
1 files changed, 5 insertions, 5 deletions
diff --git a/build2/install/rule b/build2/install/rule
index 169c43a..24111ce 100644
--- a/build2/install/rule
+++ b/build2/install/rule
@@ -53,12 +53,12 @@ namespace build2
using install_dir = install::install_dir;
virtual void
- install_extra (file&, const install_dir&) const;
+ install_extra (const file&, const install_dir&) const;
// Return true if anything was uninstalled.
//
virtual bool
- uninstall_extra (file&, const install_dir&) const;
+ uninstall_extra (const file&, const install_dir&) const;
// Installation "commands".
//
@@ -84,16 +84,16 @@ namespace build2
//
static bool
uninstall_f (const install_dir& base,
- file* t,
+ const file* t,
const path& name,
bool verbose);
private:
target_state
- perform_install (action, target&) const;
+ perform_install (action, const target&) const;
target_state
- perform_uninstall (action, target&) const;
+ perform_uninstall (action, const target&) const;
};
}
}