diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-24 08:53:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-24 08:53:06 +0200 |
commit | a94dcda7f00b10cb22b5f2138b1c29bcfbe7de37 (patch) | |
tree | c4ca2c4b2ea08285774569283120233a03aa2cb3 /build/file | |
parent | eaaa82bd9c1e24a83dcea3857f5fd75d0dfb6de5 (diff) |
Make meta-operations control build loop; add disfigure skeleton
Diffstat (limited to 'build/file')
-rw-r--r-- | build/file | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/build/file b/build/file new file mode 100644 index 0000000..669d040 --- /dev/null +++ b/build/file @@ -0,0 +1,36 @@ +// file : build/file -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD_FILE +#define BUILD_FILE + +#include <build/path> + +namespace build +{ + class scope; + + void + source (const path& buildfile, scope& root, scope& base); + + // As above but first check if this buildfile has already been + // sourced for the base scope. + // + void + source_once (const path& buildfile, scope& root, scope& base); + + // As above but checks against the specified scope rather than base. + // + void + source_once (const path& buildfile, scope& root, scope& base, scope& once); + + // Load project's root[-pre].build unless already loaded. + // + void + root_pre (scope& root); +} + +#include <build/file.ixx> + +#endif // BUILD_FILE |