diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-19 16:10:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-19 16:10:03 +0200 |
commit | 8bd89cfca333e58f6990d7d168649dfc79878f31 (patch) | |
tree | 730bb9eec4fc5ddd086ed8465c4d7c0030db0d6b /build/b.cxx | |
parent | b0524a0b18eec9d5e5c3f6ce30b6cecdd02a6306 (diff) |
Add support for sourcing/including buildfiles, print, dir{} alias
Diffstat (limited to 'build/b.cxx')
-rw-r--r-- | build/b.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/build/b.cxx b/build/b.cxx index 3d19131..c9322a0 100644 --- a/build/b.cxx +++ b/build/b.cxx @@ -154,6 +154,7 @@ main (int argc, char* argv[]) // Register target types. // target_types.insert (file::static_type); + target_types.insert (dir::static_type); target_types.insert (exe::static_type); target_types.insert (obj::static_type); @@ -225,7 +226,7 @@ main (int argc, char* argv[]) // path bf ("buildfile"); - ifstream ifs (bf.string ().c_str ()); + ifstream ifs (bf.string ()); if (!ifs.is_open ()) fail << "unable to open " << bf; @@ -251,8 +252,11 @@ main (int argc, char* argv[]) cxx::compile cxx_compile; rules[typeid (obj)].emplace ("cxx.gnu.compile", cxx_compile); - default_path_rule path_exists; - rules[typeid (path_target)].emplace ("", path_exists); + dir_rule dir_r; + rules[typeid (dir)].emplace ("", dir_r); + + path_rule path_r; + rules[typeid (path_target)].emplace ("", path_r); // Build. // |