// 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; // If possible, translate an absolute, normalized path into relative to // the work directory. // path translate (const path&); // In addition to calling translate() above, this function also uses // shorter notations such as ~/. // std::string diagnostic_string (const path&); inline std::ostream& operator<< (std::ostream& os, const path& p) { return os << diagnostic_string (p); } } #endif // BUILD_CONTEXT