From 4d1c02b736f4c1e827b11085cdc83ce4b46c03d1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 26 Jun 2016 16:06:54 +0200 Subject: Add notion of ad hoc group, use to handle DLL/import library --- build2/cxx/module.cxx | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'build2/cxx/module.cxx') diff --git a/build2/cxx/module.cxx b/build2/cxx/module.cxx index fba52b8..b4ce142 100644 --- a/build2/cxx/module.cxx +++ b/build2/cxx/module.cxx @@ -255,13 +255,21 @@ namespace build2 // Configure "installability" of our target types. // - { - using build2::install::path; + using namespace install; + + install_path (b, dir_path ("include")); // Into install.include. + install_path (b, dir_path ("include")); + install_path (b, dir_path ("include")); + install_path (b, dir_path ("include")); - path (b, dir_path ("include")); // Install into install.include. - path (b, dir_path ("include")); - path (b, dir_path ("include")); - path (b, dir_path ("include")); + // Create additional target types for certain target platforms. + // + const string& tclass (cast (r["cxx.target.class"])); + + if (tclass == "windows") + { + const target_type& dll (b.derive_target_type ("dll").first); + install_path (dll, b, dir_path ("bin")); } return true; -- cgit v1.1