aboutsummaryrefslogtreecommitdiff
path: root/build/export.build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-07-08 14:55:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-07-24 13:53:25 +0200
commit83bb02cada0b894d9134cc5489999e0f0fe8bd7c (patch)
tree1dedff27ce2b7d54bd6b0875c9125f4dafde2e80 /build/export.build
parent1ba934bb973c234b68751ee5866365c14da4e795 (diff)
Move in build system module to separate library
Diffstat (limited to 'build/export.build')
-rw-r--r--build/export.build12
1 files changed, 10 insertions, 2 deletions
diff --git a/build/export.build b/build/export.build
index 4847950..345baf0 100644
--- a/build/export.build
+++ b/build/export.build
@@ -11,12 +11,20 @@ if ($import.target == exe{b})
export $out_root/build2/exe{b}
}
-elif ($import.target == lib{build2})
+else
{
$out_root/
{
include libbuild2/
}
- export $out_root/libbuild2/lib{build2}
+ d = [dir_path] $out_root/libbuild2/
+ if ($import.target != lib{build2})
+ {
+ # Assume one of the modules.
+ #
+ d += $regex.replace($name($import.target), '^build2-(.+)', '\1')
+ }
+
+ export $d/$import.target
}