468,505 Members | 1,760 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

Automated builds with VC7.1

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

Nov 17 '05 #1
1 939


"E.T. Grey" wrote:
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
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Max M | last post: by
5 posts views Thread by Maximus | last post: by
3 posts views Thread by =?Utf-8?B?UXVpbWJseQ==?= | last post: by
1 post views Thread by =?Utf-8?B?UmljaGFyZCBCaXJk?= | last post: by
2 posts views Thread by Fresno Bob | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.