aboutsummaryrefslogtreecommitdiff
path: root/src/target.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-21 15:21:53 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-21 15:21:53 +0000
commitd5b78aeaa9af689b52046eb5577624fb6d031835 (patch)
tree43271fd845413fc1913e17e4799b9ccc4aa6002b /src/target.h
parent2b24eab3703bedb2aa4f1329fc3c919c869b6e85 (diff)
downloadbuild-d5b78aeaa9af689b52046eb5577624fb6d031835.tar.gz
build-d5b78aeaa9af689b52046eb5577624fb6d031835.tar.bz2
build-d5b78aeaa9af689b52046eb5577624fb6d031835.tar.xz
build-d5b78aeaa9af689b52046eb5577624fb6d031835.zip
Auto target chaining based on requirements is now in place. This means that if
a requirement is set for a target that needs to be built, and that requirement is another target, that target will be processed when it is needed.
Diffstat (limited to 'src/target.h')
-rw-r--r--src/target.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/target.h b/src/target.h
index 5325965..f51e0e0 100644
--- a/src/target.h
+++ b/src/target.h
@@ -6,6 +6,8 @@
6#include <string> 6#include <string>
7#include <list> 7#include <list>
8 8
9#include "action.h"
10
9typedef std::list<std::string> StringList; 11typedef std::list<std::string> StringList;
10 12
11class Build; 13class Build;
@@ -16,6 +18,7 @@ public:
16 Target(); 18 Target();
17 virtual ~Target(); 19 virtual ~Target();
18 20
21 void run( Action::eAction nAct, Build &bld );
19 virtual void check( Build &bld ) = 0; 22 virtual void check( Build &bld ) = 0;
20 virtual void clean( Build &bld ) = 0; 23 virtual void clean( Build &bld ) = 0;
21 24
@@ -44,10 +47,17 @@ public:
44 return lInput; 47 return lInput;
45 } 48 }
46 49
50 bool wasRun()
51 {
52 return bRun;
53 }
54
55
47private: 56private:
48 std::string sName; 57 std::string sName;
49 std::string sRule; 58 std::string sRule;
50 StringList lInput; 59 StringList lInput;
60 bool bRun;
51}; 61};
52 62
53#endif 63#endif