Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 9457b02689c69e152aa2cda68176fa51 > files > 211

buildbot-doc-0.8.4p1-2.fc16.noarch.rpm

<html lang="en">
<head>
<title>Visual C++ - BuildBot Manual - 0.8.4p1</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="BuildBot Manual - 0.8.4p1">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="ShellCommand.html#ShellCommand" title="ShellCommand">
<link rel="prev" href="Compile.html#Compile" title="Compile">
<link rel="next" href="Test.html#Test" title="Test">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This is the BuildBot manual for Buildbot version 0.8.4p1.

Copyright (C) 2005, 2006, 2009, 2010 Brian Warner

Copying and distribution of this file, with or without
modification, are permitted in any medium without royalty
provided the copyright notice and this notice are preserved.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Visual-C++"></a>
<a name="Visual-C_002b_002b"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Test.html#Test">Test</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Compile.html#Compile">Compile</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="ShellCommand.html#ShellCommand">ShellCommand</a>
<hr>
</div>

<h5 class="subsubsection">4.12.4.4 Visual C++</h5>

<p><a name="index-buildbot_002esteps_002evstudio_002eVC6-104"></a><a name="index-buildbot_002esteps_002evstudio_002eVC7-105"></a><a name="index-buildbot_002esteps_002evstudio_002eVC8-106"></a><a name="index-buildbot_002esteps_002evstudio_002eVS2003-107"></a><a name="index-buildbot_002esteps_002evstudio_002eVS2005-108"></a><a name="index-buildbot_002esteps_002evstudio_002eVS2008-109"></a><a name="index-buildbot_002esteps_002evstudio_002eVCExpress9-110"></a>
This step is meant to handle compilation using Microsoft compilers. 
VC++ 6-9, VS2003, VS2005, VS2008, and VCExpress9 are supported. This step will take care
of setting up a clean compilation environment, parse the generated
output in real time and deliver as detailed as possible information
about the compilation executed.

   <p>All of the classes are in <code>buildbot.steps.vstudio</code>.  The available classes are:

     <dl>
<dt><code>VC6</code>
<br><dt><code>VC7</code>
<br><dt><code>VC8</code>
<br><dt><code>VC9</code>
<br><dt><code>VS2003</code>
<br><dt><code>VC2005</code>
<br><dt><code>VC2008</code>
<br><dt><code>VCExpress9</code><dd>
</dl>

   <p>The available constructor arguments are

     <dl>
<dt><code>mode</code><dd>The mode default to <code>"rebuild"</code>, which means that first all the
remaining object files will be cleaned by the compiler. The alternate
value is <code>"build"</code>, where only the updated files will be recompiled.

     <br><dt><code>projectfile</code><dd>This is a mandatory argument which specifies the project file to be used
during the compilation.

     <br><dt><code>config</code><dd>This argument defaults to <code>"release"</code> an gives to the compiler the
configuration to use.

     <br><dt><code>installdir</code><dd>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.

     <br><dt><code>useenv</code><dd>This boolean parameter, defaulting to <code>False</code> instruct the compiler
to use its own settings or the one defined through the environment
variables <code>%PATH%</code>, <code>%INCLUDE%</code>, and <code>%LIB%</code>. If any of
the <code>INCLUDE</code> or <code>LIB</code> parameter is defined, this parameter
automatically switches to <code>True</code>.

     <br><dt><code>PATH</code><dd>This is a list of path to be added to the PATH environment
variable. The default value is the one defined in the compiler options.

     <br><dt><code>INCLUDE</code><dd>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.

     <br><dt><code>LIB</code><dd>This is a list of path where the compiler will first look for
libraries. Then comes the default path defined in the compiler options.

     <br><dt><code>arch</code><dd>That one is only available with the class VS2005 (VC8). It gives the
target architecture of the built artifact. It defaults to <code>"x86''</code>.

     <br><dt><code>project</code><dd>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. 
</dl>

   <p>Here is an example on how to use this step:

<pre class="example">     from buildbot.steps.VisualStudio import VS2005
     
     f.addStep(VS2005(
             projectfile="project.sln", config="release",
             arch="x64", mode="build",
             INCLUDE=[r'D:\WINDDK\Include\wnet'],
             LIB=[r'D:\WINDDK\lib\wnet\amd64']))
</pre>
   </body></html>