🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to best use a modified version of a package file for the "release" build?

#102
From: Stephan
Date: Tue, 13 Dec 2005 11:26
30 lines
2053 bytes
Let's say I'm using a run time package file MyPackageRT.dpk during IDE 
development of my component package.

To build the release version, I'm using dcc32 with (Gnu) Makefiles. 
Since MyPackageRT.dpk contains conditionals like {$DEFINE DEVELOP}, I 
need to modify this for the release version, e.g. changing it to 
{$DEFINE RELEASE}.

But when I do this via my Makefile, creating a MyPackageRT_final.dpk 
from MyPackageRT.dpk, then a call to
dcc32 [options...] MyPackageRT_final.dpk
creates
MyPackageRT_final.bpl etc., same for a design time package 
MyPackageDT_final.bpl. What I want is the bpl file to still be called 
MyPackageRT.bpl.

I can't seem to find a dcc32 command line option that lets me specify 
the output file, which makes me wonder:

- Is it safe to simply rename the output files, or are there deeper 
implications, like interdependence of bpl/dcp file contents?

- Is there a better way to do it? :-)

I'm using D5-D7 and D2005.

Thanks in advance for any pointers,

Stephan
Technical Details
Message-ID: <439eaf62$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!newsfeeder.wxs.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,60dac9199e5118b5,start
X-Google-Attributes: gidff8f1,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 13 Dec 2005 12:26:47 +0100
From: Stephan <cyber.mail5005.10.spasp@xoxy.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en, ja, ko
MIME-Version: 1.0
Newsgroups: borland.public.delphi.commandlinetools
Subject: How to best use a modified version of a package file for the "release"
 build?
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 85.197.1.16
Message-ID: <439eaf62$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1134473058 85.197.1.16 (13 Dec 2005 03:24:18 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!newsfeeder.wxs.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail