]> git.tdb.fi Git - builder.git/blobdiff - Readme.txt
Add a way for components to use libraries from the same package
[builder.git] / Readme.txt
index 3a26dcc93b40f16e68c2771f3cb5d1d964334434..521bd7fa61851ce032a9ba5e6f5d29b3eea346c0 100644 (file)
@@ -259,7 +259,7 @@ Inside the package can be some informational statements:
   version "0.1";
   description "My awesome library";
 
-Packages may also depend on other packages:
+Packages may also require other packages:
 
   require "otherlib";
 
@@ -301,6 +301,15 @@ The default is not to install any components.  The installation directory is
 automatically determined from the component type.  Library components will also
 install any headers which were used to build the library.
 
+Components can have requirements, just like packages.  They can also use
+library components from the same package:
+
+  use "mylib_common";
+
+Libraries used in this way will always be linked in statically.  This can be
+useful in organizing code when multiple components in a package share a common
+part.
+
 Packages may want to offer optional features, for example to allow the user to
 choose whether to use a particular external library: