aboutsummaryrefslogtreecommitdiff
path: root/build2/bin
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-06-26 16:06:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-06-26 16:06:54 +0200
commit4d1c02b736f4c1e827b11085cdc83ce4b46c03d1 (patch)
tree8d6a8318c23b1e9085d73c36843c90e875a52095 /build2/bin
parent70d00b9f7f3266c1962f6d5a6fc8de1866c67949 (diff)
Add notion of ad hoc group, use to handle DLL/import library
Diffstat (limited to 'build2/bin')
-rw-r--r--build2/bin/module.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/build2/bin/module.cxx b/build2/bin/module.cxx
index edb3c53..1ab29f9 100644
--- a/build2/bin/module.cxx
+++ b/build2/bin/module.cxx
@@ -213,7 +213,9 @@ namespace build2
// Configure "installability" of our target types.
//
- install::path<exe> (b, dir_path ("bin")); // Install into install.bin.
+ using namespace install;
+
+ install_path<exe> (b, dir_path ("bin")); // Install into install.bin.
// Should shared libraries have executable bit? That depends on
// who you ask. In Debian, for example, it should not unless, it
@@ -233,10 +235,12 @@ namespace build2
//
// Everyone is happy then?
//
- install::path<libso> (b, dir_path ("lib")); // Install into install.lib.
+ install_path<libso> (b, dir_path ("lib")); // Install into install.lib.
+
+ //@@ For Windows, libso{} is an import library and shouldn't be exec.
- install::path<liba> (b, dir_path ("lib")); // Install into install.lib.
- install::mode<liba> (b, "644");
+ install_path<liba> (b, dir_path ("lib")); // Install into install.lib.
+ install_mode<liba> (b, "644");
return true;
}