Boost logo

Boost-Build :

Subject: Re: [Boost-build] how to integrate bjam based build into Visual Studio 9
From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2012-06-27 05:40:07


> Is there any way to use the Jamroot file as build configuration for (or
> in) Visual Studio (VS) without setting the all the projects again in VS?
> So that when we give build command in VS, it actually invokes bjam to
> build the projects.

   I do not think there is any 'magic want' to parse a Boost Build setup
and create a Visual Studio project for it.

   In our projects we do this:
     1. We have a visualStudioBuild.cmd batch script that takes a name
of the desired Visual Studio build configuration name and invokes Boost
Build based on it.
     2. We use a makefile project in Visual Studio that invokes the
visualStudioBuild.cmd script and passes it the desired Visual Studio
build configuration name.

   This allows us to have centralized scripted Visual Studio build
configuration and the Visual Studio project definitions are pretty much
boilerplate up to the list of project files you want included in the
listing in the IDE.

   With this setup it is easy to add an additional configuration option
for bjam like -d2, --debug-configuration, -q or -j without having to
tweak it separately for each Visual Studio build configuration somewhere
in the depths of its project properties dialog.

   Hope this helps.

   Best regards,
     Jurko Gospodnetić

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at