I'm looking a way in b2 to generate one static library from list of libraries
//begin code sample
# here is a list of libraries
alias boost_all :
/boost//thread
/boost//serialization
/boost//iostreams
/boost//chrono
/boost//date_time
/boost//exception
/boost//atomic
;
# how to collect them into one big static library when using gcc toolset?
# it will be one file "libboost_all.lib"
# then this file will install
install destination : libboost_all.lib ;
//end code sample
// solution ways:
install destination : boost_all : <install-dependencies>on <install-type>STATIC_LIB ;
actions collect
{
echo "begin collect"
# what to write here?
# file list is dependent on target and features
echo $(<) $(>)
echo "end collect"
}
may be using of gcc archiver can solve problem but I don't know libraries files that and how to invoke it from here