X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=Readme.txt;fp=Readme.txt;h=521bd7fa61851ce032a9ba5e6f5d29b3eea346c0;hb=62ad932589407842cc1026af6e6d9f4012e60c67;hp=3a26dcc93b40f16e68c2771f3cb5d1d964334434;hpb=150d82f46dd34a00cdc59c69c641af2c635239d8;p=builder.git diff --git a/Readme.txt b/Readme.txt index 3a26dcc..521bd7f 100644 --- a/Readme.txt +++ b/Readme.txt @@ -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: