aboutsummaryrefslogtreecommitdiff
path: root/build/context
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-04 16:33:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-04 16:33:51 +0200
commit7eed858cac7e8ff78626bdc5d63a7f36ca8f8010 (patch)
tree225dd25e354c4f6234dbf2c02608ec6545dcd688 /build/context
parentc76fe316122969986103d243706dc7fa7ab6ddc1 (diff)
Move roots and bases to appropriate scopes
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&);