aboutsummaryrefslogtreecommitdiff
path: root/build/context
diff options
context:
space:
mode:
Diffstat (limited to 'build/context')
-rw-r--r--build/context22
1 files changed, 12 insertions, 10 deletions
diff --git a/build/context b/build/context
index c177603..7c7421d 100644
--- a/build/context
+++ b/build/context
@@ -12,26 +12,28 @@
namespace build
{
+ class scope;
+
extern path work;
extern path home;
- extern path src_root;
- extern path out_root;
-
- extern path src_base;
- extern path out_base;
-
// Return the src/out directory corresponding to the given out/src. The
// passed directory should be a sub-directory of out/src_root.
//
path
- src_out (const path&);
+ src_out (const path& out, scope&);
+
+ path
+ src_out (const path& out, const path& out_root, const path& src_root);
+
+ path
+ out_src (const path& src, scope&);
path
- out_src (const path&);
+ out_src (const path& src, const path& out_root, const path& src_root);
- // If possible, translate an absolute, normalized path into relative to
- // the work directory.
+ // If possible and beneficial, translate an absolute, normalized path
+ // into relative to the work directory.
//
path
relative_work (const path&);