From a84ff43b183181e0a12c6d5e31c1f366d39ce2fe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 31 Jul 2017 18:42:47 +0200 Subject: Experimental (and probably broken) pkg-config generation support --- build2/target.cxx | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'build2/target.cxx') diff --git a/build2/target.cxx b/build2/target.cxx index 3ee9850..40c73c0 100644 --- a/build2/target.cxx +++ b/build2/target.cxx @@ -700,26 +700,6 @@ namespace build2 false }; - template - static pair> - file_factory (const target_type& tt, - dir_path d, - dir_path o, - string n, - optional e) - { - // A generic file target type doesn't imply any extension while a very - // specific one (say man1) may have a fixed extension. So if one wasn't - // specified and this is not a dynamically derived target type, then set - // it to fixed ext rather than unspecified. For file{} we make it empty - // which means we treat file{foo} as file{foo.}. - // - if (!e && ext != nullptr && tt.factory == &file_factory) - e = string (ext); - - return make_pair (new T (move (d), move (o), move (n)), move (e)); - } - extern const char file_ext_var[] = "extension"; // VC14 rejects constexpr. extern const char file_ext_def[] = ""; -- cgit v1.1