From 6efd6dc40d46f1fa2028a4259c8b2b56f866d6f7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 28 Aug 2019 16:22:34 +0200 Subject: Make lib{build2} "implied interface dependency" of modules This makes our compilation and linking command lines a little bit saner. --- libbuild2/buildfile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbuild2/buildfile') diff --git a/libbuild2/buildfile b/libbuild2/buildfile index c419dd1..e838e8e 100644 --- a/libbuild2/buildfile +++ b/libbuild2/buildfile @@ -7,6 +7,13 @@ # ./: lib{build2} bash/ bin/ c/ cc/ cxx/ in/ version/ +# A module should treat lib{build2} as an "implied interface dependency" +# meaning that it can link it as an implementation dependency and assume that +# whomever imports and links this module will also import and link lib{build2} +# explicitly. A module should also assume that lib{butl} will always be an +# interface dependency of lib{build2} and therefore need not be explicitly +# imported or linked. +# import int_libs = libbutl%lib{butl} lib{build2}: libul{build2}: \ -- cgit v1.1