// file : build/context -*- C++ -*- // copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file #ifndef BUILD_CONTEXT #define BUILD_CONTEXT #include #include #include namespace build { extern path work; extern path home; extern path src_root; extern path out_root; extern path src_base; extern path out_base; class scope; extern scope* root_scope; // 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&); path out_src (const path&); // If possible, translate an absolute, normalized path into relative to // the work directory. // path relative_work (const path&); } #endif // BUILD_CONTEXT