...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
It is desirable to declare standard libraries available on a given system. Putting target declaration in Jamfile is not really good, since locations of the libraries can vary. The solution is to put the following to site-config.jam.
import project ; project.initialize $(__name__) ; project site-config ; lib zlib : : <name>z ;
The second line allows this module to act as project. The third line gives id to this project ---it really has no location and cannot be used otherwise. The fourth line just declares a target. Now, one can write
exe hello : hello.cpp /site-config//zlib ;in any Jamfile.
© Copyright Vladimir Prus 2003. Permission to copy, use, modify, sell and distribute this document is granted provided this copyright notice appears in all copies. This document is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.
Revised June 18, 2003