aboutsummaryrefslogtreecommitdiff
path: root/build2/spec
diff options
context:
space:
mode:
Diffstat (limited to 'build2/spec')
-rw-r--r--build2/spec8
1 files changed, 8 insertions, 0 deletions
diff --git a/build2/spec b/build2/spec
index 5e02f46..4602b6e 100644
--- a/build2/spec
+++ b/build2/spec
@@ -10,6 +10,8 @@
namespace build2
{
+ class scope;
+
struct targetspec
{
typedef build2::name name_type;
@@ -21,6 +23,12 @@ namespace build2
dir_path src_base;
name_type name;
+
+ // The rest is calculated and cached.
+ //
+ scope* root_scope = nullptr;
+ dir_path out_base;
+ path buildfile;
};
struct opspec: vector<targetspec>