Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread D2006: Automating component builds
Tue, Mar 19 2013 4:20 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

With the release of 2.12 I've decided I need to automate building all of the components I've written that use ElevateDB. Remembering this is a hobby so I don't really want to spend money can anyone recommend a suitable tool?


I've been playing with dcc32.exe in a batch file but have problems with the library path not being there. MSBuild doesn't want to play.

This is just to save me a half hour of annoyance when a 3rd party app changes.

Roy Lambert
Tue, Mar 19 2013 12:35 PMPermanent Link

Raul

Team Elevate Team Elevate

On 3/19/2013 4:20 AM, Roy Lambert wrote:
> I've been playing with dcc32.exe in a batch file but have problems with the library path not being there. MSBuild doesn't want to play.
>
> This is just to save me a half hour of annoyance when a 3rd party app changes.

Roy,

Unless your settings change a lot it might be easiest/cheapest to just
sit down with dcc32/MSBuild and make it work - Delphi IDE will give you
the dcc32 command line and you just need to clean it up i think.

We use FinalBuilder (http://www.finalbuilder.com/finalbuilder.aspx) but
for non-commercial price would be an issue  (there used to be an express
edition in some version of Delphi/Rad Studio but likely in Enterprise
SKU and up and might have been after D2006 anyways).

I've looked at BuildMaster once for .net side
(http://inedo.com/buildmaster/overview) and they had a free edition but
you'd likely have to do quite a bit of manual work for delphi (same as
dcc32 and MSbuild likely)

Then there are couple of open source projects i know of (no doubt there
are lot more) but no personal experience how good of a fit they are for
delphi (most also are CI tools so bit of an overkill in this case):
R2Build : http://r2build.sourceforge.net/
Hudson CI : http://www.eclipse.org/hudson/

Raul
Tue, Mar 19 2013 2:19 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Raul

>Unless your settings change a lot it might be easiest/cheapest to just
>sit down with dcc32/MSBuild and make it work - Delphi IDE will give you
>the dcc32 command line and you just need to clean it up i think.

I only have a few commercial components, and out of them Tim's probably change the most so its not a matter of urgency more annoyance as you have to keep clicking OK and telling the IDE you want to load it the next time.

As far as dcc32 goes the problem seems to be how to get the compiler to access units using Delphi's library path. I found lots of people asking the question but no answers.

>We use FinalBuilder (http://www.finalbuilder.com/finalbuilder.aspx) but
>for non-commercial price would be an issue (there used to be an express
>edition in some version of Delphi/Rad Studio but likely in Enterprise
>SKU and up and might have been after D2006 anyways).
>
>I've looked at BuildMaster once for .net side
>(http://inedo.com/buildmaster/overview) and they had a free edition but
>you'd likely have to do quite a bit of manual work for delphi (same as
>dcc32 and MSbuild likely)
>
>Then there are couple of open source projects i know of (no doubt there
>are lot more) but no personal experience how good of a fit they are for
>delphi (most also are CI tools so bit of an overkill in this case):
>R2Build : http://r2build.sourceforge.net/
>Hudson CI : http://www.eclipse.org/hudson/

Having had a quick look I must support your opinion of these - probably a case of the cure being worse than the disease Smiley

Thanks

Roy
Tue, Mar 19 2013 3:56 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I've been playing with dcc32.exe in a batch file but have problems with
the library path not being there. MSBuild doesn't want to play. >>

The easiest way is to just use dcc32/dcc64 in a batch file.  I've attached
one that I use for doing test builds for EDB, and it should give you an idea
of how to proceed.  I've also included the console app that is used to
update the registry for Delphi so that the library paths are all updated
properly.

Note: I'm not a batch file programming genius, so nobody make fun of it. Smile

Tim Young
Elevate Software
www.elevatesoft.com





Attachments: buildbatch.zip
Tue, Mar 19 2013 4:47 PMPermanent Link

Raul

Team Elevate Team Elevate

On 3/19/2013 2:19 PM, Roy Lambert wrote:
Roy,

 > As far as dcc32 goes the problem seems to be how to get the compiler
to access units using Delphi's library path. I found lots of people
asking the question but no answers.

The various paths are part of IDE and not of dcc32 so you need to
include them. Last time i did this i just compiled the project in
delphi, copied the command line for ddc32 from "output" window and
cleaned it up and put in a bat file.

Raul
Wed, Mar 20 2013 5:20 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Raul


>The various paths are part of IDE and not of dcc32 so you need to
>include them. Last time i did this i just compiled the project in
>delphi, copied the command line for ddc32 from "output" window and
>cleaned it up and put in a bat file.

What output window? I've just tried compiling in D2006 and I get a build window with some hints but I can't find anything to do with the compile process. It may be that I turned it off long ago and can't find it again Frown

Roy
Wed, Mar 20 2013 5:20 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


>Note: I'm not a batch file programming genius, so nobody make fun of it. Smile

Thanks. I promise not to make fun of it. Its c30 years back when I last used .bats so I'm in no fit state to laugh.

Roy
Wed, Mar 20 2013 8:33 AMPermanent Link

Raul

Team Elevate Team Elevate

On 3/20/2013 5:20 AM, Roy Lambert wrote:

> What output window? I've just tried compiling in D2006 and I get a build window with some hints but I can't find anything to do with the compile process. It may be that I turned it off long ago and can't find it again Frown

Roy,

This is in D2007 and after compile i get get Build and Output window in
the messages area in the bottom.
The output window shows the entire dcc32 command line (in my case it's
about a mile long).  If i close it it comes back after a build.
Otherwise i can't find any reference to it in any of the IDE window
related menus.

Raul

Wed, Mar 20 2013 9:09 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Raul

>This is in D2007 and after compile i get get Build and Output window in
>the messages area in the bottom.
>The output window shows the entire dcc32 command line (in my case it's
>about a mile long). If i close it it comes back after a build.
>Otherwise i can't find any reference to it in any of the IDE window
>related menus.

Probably didn't exist in D2006 then Frown

I'll have a play with Tim's batch file.

Roy
Image