Buildbot no longer supports Python 2.7 on the Buildbot master.
188.8.131.52. Visual C++
These steps are meant to handle compilation using Microsoft compilers.
VC++ 6-141 (aka Visual Studio 2003-2015 and VCExpress9) are supported via calling
Msbuild as well as Windows Driver Kit 8 are supported via the
These steps will take care of setting up a clean compilation environment, parsing the generated output in real time, and delivering as detailed as possible information about the compilation executed.
All of the classes are in
The available classes are:
The available constructor arguments are
The mode default to
rebuild, which means that first all the remaining object files will be cleaned by the compiler. The alternate values are
build, where only the updated files will be recompiled, and
clean, where the current build files are removed and no compilation occurs.
This is a mandatory argument which specifies the project file to be used during the compilation.
This argument defaults to
releasean gives to the compiler the configuration to use.
This is the place where the compiler is installed. The default value is compiler specific and is the default place where the compiler is installed.
This boolean parameter, defaulting to
Falseinstruct the compiler to use its own settings or the one defined through the environment variables
LIB. If any of the
LIBparameter is defined, this parameter automatically switches to
This is a list of path to be added to the
PATHenvironment variable. The default value is the one defined in the compiler options.
This is a list of path where the compiler will first look for include files. Then comes the default paths defined in the compiler options.
This is a list of path where the compiler will first look for libraries. Then comes the default path defined in the compiler options.
That one is only available with the class VS2005 (VC8). It gives the target architecture of the built artifact. It defaults to
x86and does not apply to
MsBuild12. Please see
This gives the specific project to build from within a workspace. It defaults to building all projects. This is useful for building cmake generate projects.
This is a mandatory argument for
MsBuild12specifying the target platform such as ‘Win32’, ‘x64’ or ‘Vista Debug’. The last one is an example of driver targets that appear once Windows Driver Kit 8 is installed.
That one is only available with the MsBuild family of classes. It allows to define pre-processor constants used by the compiler.
Here is an example on how to drive compilation with Visual Studio 2013:
from buildbot.plugins import steps f.addStep( steps.VS2013(projectfile="project.sln", config="release", arch="x64", mode="build", INCLUDE=[r'C:\3rd-party\libmagic\include'], LIB=[r'C:\3rd-party\libmagic\lib-x64']))
Here is a similar example using “MsBuild12”:
from buildbot.plugins import steps # Build one project in Release mode for Win32 f.addStep( steps.MsBuild12(projectfile="trunk.sln", config="Release", platform="Win32", workdir="trunk", project="tools\\protoc")) # Build the entire solution in Debug mode for x64 f.addStep( steps.MsBuild12(projectfile="trunk.sln", config='Debug', platform='x64', workdir="trunk"))