Create dependent libs enhancements after bcp runs

So, I use a set of boost libraries, but the sheer number of included files makes checking for a clean copy very slow. I am sure that most people who use boost with svn have noticed this. For a while I searched a lot to find a useful utility from boost called bcp that only copies dependent header files to the directory I specified. So, what I would like to do is provide the minimum number of header files in svn and let the developer compile everything as needed. The first step is to copy the necessary header files and check all the necessary pre-compiled libraries. The next step would be to discard the pre-compiled libraries and make it a pre-build step in any build system that I use for my project (in my case, Visual Studio, but make would be fine too). My question is what

Does anyone know how to create only the libraries needed for a subset of headers?

I do bcp along the lines of this

 bcp.exe --scan C:\path\to\my\files\main.cpp C:\path\to\my\files\someOtherCppFilesToo.cpp C:\path\to\reduced\boost 

The internet seems to think that I can do something like this

 cd C:\path\to\reduced\boost bootstrap.exe b2.exe 

Now the problem is that I cannot figure out if there is a way to copy the compile / bootstrap / jam / whatever configuration so that boost.build and bootstrap know how to configure / compile everything. I obviously don’t want to copy every file from the boost directory, because it will defeat the whole purpose of reducing boost.

+5
source share
1 answer

Ok, I think you were close to this:

 bcp.exe --scan --boost=path_to_boost_dir main.cpp someOtherCppFilesToo.cpp myboost bcp.exe --boost=path_to_boost_dir build myboost cd myboost bootstrap.bat b2 the_modules_you_want_to_build 
0
source

Source: https://habr.com/ru/post/1213536/


All Articles