From fd689eb883655dcb29e505b041cd02fac01f0bac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Aug 2015 15:11:40 +0200 Subject: Dist module/meta-operation initial implementation --- build/target.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'build/target.cxx') diff --git a/build/target.cxx b/build/target.cxx index 6315d04..669ff7a 100644 --- a/build/target.cxx +++ b/build/target.cxx @@ -493,6 +493,26 @@ namespace build false }; + static const std::string& + buildfile_target_extension (const target_key& tk, scope&) + { + // If the name is special 'buildfile', then there is no extension, + // otherwise it is .build. + // + return extension_pool.find (*tk.name == "buildfile" ? "" : "build"); + } + + const target_type buildfile::static_type + { + typeid (buildfile), + "buildfile", + &file::static_type, + &file_factory, + &buildfile_target_extension, + &search_file, + false + }; + constexpr const char doc_ext[] = ""; const target_type doc::static_type { -- cgit v1.1