🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.commandlinetools
Article #112

Re: Building program groups from command line (D2006)

#112
From: Jesper Hogstrom (Borland)
Date: Mon, 30 Jan 2006 22:48
41 lines
2892 bytes
Mikhail Terekhov wrote:
> You are preaching to a priest ;). Yes we use the make utility for
> automated builds, 

Splendid!

> but it is a pain to keep BDS and dcc32 configurations
> in sync. The main obstacle here is the Delphi's inconsistency. First,
> BDS and dcc32 use different configuration files (*.bdsproj and *.cfg)
> and there is no straightforward way to keep them in sync.

I agree. There is an option to completely eliminate the reading of 
config files in dcc32:

--no-config = do not load default DCC32.CFG file

Personally, I prefer to define all configuration options/option sets in 
make to ensure I know exactly what I get. Developers may mess up the 
configs in the bdsproj file, and all of a sudden you're releasing 
products with the wrong switches set.

This is easy enough to do once and for all, using either 
target-conditional macros or relying on defines passed to the make file. 
Then just add those switches to your $(DCC32) macro.

> Definitely lack of out of the box automated build solution as well as
> the *.bdsproj and *.cfg files inconsistency are major warts in Delphi.

The bdsproj files are xml-files, and it should be fairly easy to 
exctract what you need and write to a .cfg-file. WOuld be very easy to 
incorporate in a makefile too :)

> It is pity that Borland can't teach dcc32 to understand *.bdsproj and 
> *.bdsgroup files. That would make the automation process very simple and
> make Delphi ready for big enterprise projects out of the box. May be it
> is worth to put such a request into QC?

I think that would be a very good idea. QC is there for that very 
reason. Support for bdsproj => make would be a neat addition too.

--Jesper
Technical Details
Message-ID: <43de9655$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43d94f0b$1@newsgroups.borland.com> <43dbc655@newsgroups.borland.com> <43de3196$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,1890a5ef143a7e68
X-Google-Attributes: gidff8f1,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 30 Jan 2006 23:48:15 +0100
From: "Jesper Hogstrom (Borland)" <jhogstrom_@_borland_._com_spaminator>
Organization: Borland
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.delphi.commandlinetools
Subject: Re: Building program groups from command line (D2006)
References: <43d94f0b$1@newsgroups.borland.com> <43dbc655@newsgroups.borland.com> <43de3196$1@newsgroups.borland.com>
In-Reply-To: <43de3196$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 192.168.181.11
Message-ID: <43de9655$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138660949 192.168.181.11 (30 Jan 2006 14:42:29 -0700)
Lines: 41
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail