From ce8a94e6a76097ef7eeb34df4257991a20599712 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 14 Jan 2015 11:39:21 +0200 Subject: Track file extension in target, prerequisite --- build/prerequisite | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'build/prerequisite') diff --git a/build/prerequisite b/build/prerequisite index e58532d..6c9c171 100644 --- a/build/prerequisite +++ b/build/prerequisite @@ -12,6 +12,7 @@ #include #include +#include // 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& -- cgit v1.1