aboutsummaryrefslogtreecommitdiff
path: root/build/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-24 12:29:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-24 12:29:20 +0200
commit2a0f9e035f673f1ee387924501a31990de37f18d (patch)
treeb8e55ab74bc88b788e99d8649219b931b80432d5 /build/target.cxx
parent4c44c914d898af53152addad5530504548175e85 (diff)
Implement lib/liba/libso{} target group, shared/static library build
Diffstat (limited to 'build/target.cxx')
-rw-r--r--build/target.cxx22
1 files changed, 3 insertions, 19 deletions
diff --git a/build/target.cxx b/build/target.cxx
index 4f06596..5e421c3 100644
--- a/build/target.cxx
+++ b/build/target.cxx
@@ -6,8 +6,7 @@
#include <build/scope>
#include <build/search>
-#include <build/context>
-#include <build/algorithm> // execute_prerequisites()
+#include <build/algorithm>
#include <build/diagnostics>
using namespace std;
@@ -16,24 +15,9 @@ namespace build
{
// recipe
//
- target_state
- noop_recipe_function (action, target&)
- {
- assert (false); // We shouldn't be called, see target::recipe().
- return target_state::unchanged;
- }
-
- static target_state
- default_recipe_function (action a, target& t)
- {
- return current_mode == execution_mode::first
- ? execute_prerequisites (a, t)
- : reverse_execute_prerequisites (a, t);
- }
-
const recipe empty_recipe;
- const recipe noop_recipe (&noop_recipe_function);
- const recipe default_recipe (&default_recipe_function);
+ const recipe noop_recipe (&noop_action);
+ const recipe default_recipe (&default_action);
// target
//