// 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 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); // Create project's root scope. Only set the src_root variable is the // passed src_root value is not empty. // scope& create_root (const path& out_root, const path& src_root); // Bootstrap the project's root scope, the out part. // void bootstrap_out (scope& root); // Bootstrap the project's root scope, the src part. Return true if // we loaded anything. // bool bootstrap_src (scope& root); // Load project's root[-pre].build unless already loaded. // void root_pre (scope& root); } #include #endif // BUILD_FILE