aboutsummaryrefslogtreecommitdiff
path: root/build/dist/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-05 11:55:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-05 11:55:15 +0200
commit9fb791e9fad6c63fc1dac49f4d05ae63b8a3db9b (patch)
treed60322d4382ca5f97b676c5abe2e39524f35eab4 /build/dist/rule.cxx
parentf159b1dac68c8714f7ba71ca168e3b695891aad9 (diff)
Rename build directory/namespace to build2
Diffstat (limited to 'build/dist/rule.cxx')
-rw-r--r--build/dist/rule.cxx55
1 files changed, 0 insertions, 55 deletions
diff --git a/build/dist/rule.cxx b/build/dist/rule.cxx
deleted file mode 100644
index 80e7b05..0000000
--- a/build/dist/rule.cxx
+++ /dev/null
@@ -1,55 +0,0 @@
-// file : build/dist/rule.cxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-#include <build/dist/rule>
-
-#include <build/scope>
-#include <build/target>
-#include <build/algorithm>
-#include <build/diagnostics>
-
-using namespace std;
-
-namespace build
-{
- namespace dist
- {
- match_result rule::
- match (action, target& t, const std::string&) const
- {
- return t; // We always match.
- }
-
- recipe rule::
- apply (action a, target& t, const match_result&) const
- {
- const dir_path& out_root (t.root_scope ().out_path ());
-
- auto r (group_prerequisite_members (a, t, false));
- for (auto i (r.begin ()); i != r.end (); ++i)
- {
- prerequisite_member p (*i);
-
- // Skip prerequisites imported from other projects.
- //
- if (p.proj () != nullptr)
- continue;
-
- // If we can, go inside see-through groups.
- //
- if (p.type ().see_through && i.enter_group ())
- continue;
-
- target& pt (p.search ());
-
- // Don't match targets that are outside of our project.
- //
- if (pt.dir.sub (out_root))
- build::match (a, pt);
- }
-
- return noop_recipe; // We will never be executed.
- }
- }
-}