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
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
> 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
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
Well, I'll be darned. Who'd have thought ms would have useful command
line tools <wink>.
Thanks for the tip!
-- bjorn
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.