aboutsummaryrefslogtreecommitdiff
path: root/build/prerequisite
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-01-14 11:39:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-01-14 11:39:21 +0200
commitce8a94e6a76097ef7eeb34df4257991a20599712 (patch)
tree5e83b9d083f486a6efe889102f7c2a815e6a06c6 /build/prerequisite
parentab4421747146aa7995f0cfb1a639c9121c82c915 (diff)
Track file extension in target, prerequisite
Diffstat (limited to 'build/prerequisite')
-rw-r--r--build/prerequisite11
1 files changed, 7 insertions, 4 deletions
diff --git a/build/prerequisite b/build/prerequisite
index e58532d..6c9c171 100644
--- a/build/prerequisite
+++ b/build/prerequisite
@@ -12,6 +12,7 @@
#include <typeindex>
#include <build/path>
+#include <build/utility> // extension_pool
namespace build
{
@@ -27,18 +28,20 @@ namespace build
typedef build::scope scope_type;
prerequisite (const target_type_type& t,
- std::string n,
path d,
+ std::string n,
+ const std::string* e,
scope_type& s)
- : type (t), name (std::move (n)), directory (std::move (d)),
+ : type (t), directory (std::move (d)), name (std::move (n)), ext (e),
scope (s), target (0) {}
public:
const target_type_type& type;
+ const path directory; // Normalized absolute or relative (to scope).
const std::string name;
- const path directory; // Normalized absolute or relative (to scope).
+ const std::string* ext; // NULL if unspecified.
scope_type& scope;
- target_type* target; // NULL if not yet resolved.
+ target_type* target; // NULL if not yet resolved.
};
std::ostream&