Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Automating MSDEV studio build process

0 views
Skip to first unread message

Bjorn Pettersen

unread,
Jul 11, 2002, 5:20:03 PM7/11/02
to
Does anyone have any experience automating a nightly build process using
Python in combination with MSDevStudio? I remember some discussion here
about it a while ago, but I couldn't find any reference to it through
Google...

We have three major classes of libraries we need to build (each class
has its own dsw with about a dozen dsp's inside for individual
sub-libraries). Would it be best to generate makefiles from the dsw's
and proceed on the command line from there (is there a way e.g. through
COM to have VS generate the makefiles since we normally don't use
makefiles?) -- or should we try to automate it all through controlling
VS through COM?

The engineer who is working on this is pretty new to Python, so this
would be a good way to show him how to get rid of five hours of manual
build processes (especially since I just got mandated that we install
Python on all machines :-)

-- bjorn


Trent Mick

unread,
Jul 11, 2002, 5:43:00 PM7/11/02
to
[Bjorn Pettersen wrote]

> Does anyone have any experience automating a nightly build process using
> Python in combination with MSDevStudio? I remember some discussion here
> about it a while ago, but I couldn't find any reference to it through
> Google...

You don't need to bother with generating makefiles and calling nmake.
You can just call 'msdev' directly on your .dsw or .dsp files to build
them.


H:\>msdev /?
Usage:
MSDEV [myprj.dsp|mywksp.dsw] - load project/workspace
[<filename>] - load source file
/? - display usage information
/EX <macroname> - execute a VBScript macro
/OUT <filename> - redirect command line output to a file
/USEENV - ignore tools.options.directories settings
/MAKE [<target>] [...] - build specified target(s)
[<project> - <platform> <configname>]
[[<project>|ALL] - [DEBUG|RELEASE|ALL]]
/CLEAN - delete intermediate files but don't build
/REBUILD - clean and build
/NORECURSE - don't build dependent projects


Cheers,
Trent

--
Trent Mick
Tre...@ActiveState.com


Jussi Jumppanen

unread,
Jul 11, 2002, 6:32:25 PM7/11/02
to
Bjorn Pettersen wrote:

> Does anyone have any experience automating a nightly build process using
> Python in combination with MSDevStudio? I remember some discussion here
> about it a while ago, but I couldn't find any reference to it through
> Google...

It is possible for MSVC 6.x and onwards to build the project using
the command line. Here is a link to the details (notice that the URL
has been wrapped):

http://msdn.microsoft.com/library/default.asp?url=/library/en-us
/vcug98/html/_asug_building_a_project_from_the_command_line.asp

Jussi Jumppanen
Author of: Zeus for Windows, Win32 (Brief, Emacs, etc) FTP Text Editor
"The C/C++, Java, HTML, FTP, Python, PHP, Perl programmer's editor"
Home Page: http://www.zeusedit.com

Paolo Invernizzi

unread,
Jul 12, 2002, 3:48:49 AM7/12/02
to
And under VS7...


C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE>devenv /?

Microsoft (R) Development Environment Version 7.00.9466.
Copyright (C) Microsoft Corp 1984-2001. All rights reserved.

Usage:
devenv [solutionfile | projectfile | anyfile.ext] [switches]

Cheer
Paolo Invernizzi
DMSWare.com

Bjorn Pettersen

unread,
Jul 12, 2002, 6:11:09 PM7/12/02
to
> From: Trent Mick [mailto:tre...@ActiveState.com]
>
> [Bjorn Pettersen wrote]

> > Does anyone have any experience automating a nightly build process
> > using Python in combination with MSDevStudio? I remember some
> > discussion here about it a while ago, but I couldn't find any
> > reference to it through Google...
>
> You don't need to bother with generating makefiles and
> calling nmake. You can just call 'msdev' directly on your
> .dsw or .dsp files to build them.
>
>
> H:\>msdev /?
[snip]

Well, I'll be darned. Who'd have thought ms would have useful command
line tools <wink>.

Thanks for the tip!

-- bjorn


mike k

unread,
Jul 17, 2002, 12:27:21 PM7/17/02
to
"Bjorn Pettersen" <BPett...@NAREX.com> wrote in message news:<mailman.102642248...@python.org>...

Actually I have started implementing a python nightly-build system
that does just that, it gets sources from VSS, assigns a build number,
starts a build, emails build results and so on, all of this using an
xml file that describes the whole process.
We have a nightly build system that envolved some python and a lot of
old batch files, but it is too complicated to maintain. The new xml
describes the process in a more build oriented language.

It is currently in early testing, I will gladly share it, once it can
be used in production.

Mike.

0 new messages