[Buildbot-devel] Visual Studio: new build step

Dmitry Nezhevenko dion at dion.org.ua
Fri Sep 21 20:29:17 UTC 2012

On Fri, Sep 21, 2012 at 12:42:32PM -0700, Oleg Smolsky wrote:
> >As far as I remember there is another 'documented' way to find it by using
> >VS__COMNTOOLS environment variable (replace it with internal version
> >number, like 90 for VS2008).
> >
> >We're using it for own 'vcbuild' step
> >
> Thank you for the tip, the variable is indeed there:
>     VS110COMNTOOLS='C:\vs11\Common7\Tools\'
> Let me look for an easy way of grabbing it from the build step...

Well, it'll be a bit tricky too. I've something like this:

def setupEnvironment(self, cmd):
        BaseCompile.setupEnvironment(self, cmd)
        cmd.args['env']['VCENV_BAT'] = "\"${%s}\\..\\..\\VC\\vcvarsall.bat\"" % self.commToolsName

def start(self):
        command = "%%VCENV_BAT%% %s && vcbuild /M1 /nocolor /useenv %s %s^|%s" % \
            (batArch, self.projectfile.replace("/", "\\"), cfg, self.arch)

It was the only way to actually use it together with '|' character in
command line (due to stupid 'Win32|Release' configuration names)

PS. No need to CC me. I'm subscribed

WBR, Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://buildbot.net/pipermail/devel/attachments/20120921/1dab546c/attachment.bin>

More information about the devel mailing list