Automated builds with VC7.1

E

E.T. Grey

Hi,

I have several modules comprising of shared libs (i.e. dlls) and
executables. I would like to be able to do the ff:

1). Build each of the modules individually from the command line
(without having to start MSDEV) - ideally by having a make file in each
of the folders - so I can selectively build the modules I want

2). Have a "master" make file in the parent/root directory so I can
build a release version of all the modules (i.e binaries) - and ideally
move the built binaries to a "release" directory

3). Ability to run unit tests for each of these modules (I'm using CPPUnit).


I'd be particularly interested if anyone out there can recommend (from
personal experience) any Open Source automated build managers they use
or have used in the past. thanks
 
G

Guest

E.T. Grey said:
Hi,

I have several modules comprising of shared libs (i.e. dlls) and
executables. I would like to be able to do the ff:

1). Build each of the modules individually from the command line
(without having to start MSDEV) - ideally by having a make file in each
of the folders - so I can selectively build the modules I want

We have a small utility program reading a text-file with folder names and
..vcproj names. This script CD to folder and starts devenv with the .VCPROJ in
batch mode
Build "Module" in batch mode:
devenv /useenv Module.vcproj /BUILD Debug /project Module
2). Have a "master" make file in the parent/root directory so I can
build a release version of all the modules (i.e binaries) - and ideally
move the built binaries to a "release" directory

We use devenv POST build commands to copy DLL/EXE + PDB file to binary folder.
PRE build can be used to copy include files.
3). Ability to run unit tests for each of these modules (I'm using CPPUnit).

I guess the batch file can also build and run unit tests.
I'd be particularly interested if anyone out there can recommend (from
personal experience) any Open Source automated build managers they use
or have used in the past. thanks

An alternative is to make a Solution with all projects in and build the
solution from the command line: devenv XX.sln /Build ....
Use /REBUILD for full build.

Note VS2005 comes with a MSBUILD program doing this + some more..

Amount of effort to put into this may depend on the size of your project.
Cheers
Ditlef
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top