aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to '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
}