Thanks man, I'll give it a try. Pretty frustrating though that there seems to be no way to do this without modifying Boost.Build.
I use a hacked msvc.jam for supporting C++/CLI projects and targets that require side-by-side DLLs (assemblies, assembly dependencies, registry-free COM via SxS manifests). It works for the most part but there are some rough edges:
http://proteowizard.svn.sourceforge.net/viewvc/proteowizard/trunk/pwiz/libraries/boost-build/tools/msvc.jam
I didn't look at your Jamfiles, but in your case I think you should specify the DLLs as <assembly-dependency>.
Hope this helps,
-Matt_______________________________________________
On 4/24/2011 10:04 AM, Joshua Boyce wrote:
I'm currently using Boost.Build as my library's build system, and I'm using Boost.Test for the unit
testing, however I've run into a problem with one of my tests. The library I'm trying to test has
two binary dependencies, which I just 'install' (using the Boost.Build install rule) when I build my
application, however I can't work out how to drop the DLLs alongside the unit tests binaries.
I have tried adding them as dependencies using the 'project' rule, but that doesn't cause the files
to be copied as part of the unit test build phase (it works for the install rule however when my
application is built).
Is there any way I can have Boost.Build copy over my dependencies to the unit test's binary dir
before it is run? If I can't do this is renders a large portion of my library untestable using this
system, as the DLLs are critical to its operation.
In case it matters, the DLLs I'm referring to are the DbgHelp and SymSrv DLLs from the redist dir of
the latest "Debugging Tools for Windows" package.
My library can be found here:
https://code.google.com/p/hadesmem/
Direct link to relevant files:
https://code.google.com/p/hadesmem/source/browse/trunk/Jamroot
https://code.google.com/p/hadesmem/source/browse/trunk/Src/Memory/Jamfile.v2
https://code.google.com/p/hadesmem/source/browse/trunk/Tests/Jamfile.v2
Thanks in advance.
P.S. Feel free to point out any problems you see with how I'm using the build system, including ways
I could simplify or improve my usage.
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build