🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Compile package with relative paths in contains section

#40
From: Jim C
Date: Wed, 31 Jan 2007 20:11
40 lines
2786 bytes
First the error: Fatal: F1026 File not found: 'components1.dcu'

I'm using Delphi 2006.  My design time package is in a folder with the
components in sub folders like this:
c:\mypackage\mypackageDesign.dpk
c:\mypackage\component1\component1.pas
c:\mypacakge\component2\component2.pas
c:\mypackage\component3\component3.pas

The contains section looks like:
contains
    component1 in 'component1\component1.pas',
    component2 in 'component2\component2.pas',
    component3 in 'component3\component3.pas;

This compiles and installs fine in the IDE.  Now I have two versions
of this package which I'd like to use with two different versions of a
win32 project.  I'm trying to find a way to switch back and forth
between the two packages being active in the IDE.  The two packages
have the same name and contain mostly the same components with some
changes to support two different versions of the projects they're part
of.  So not finding anything else that works, I'm trying to set up a
scenario where I shut down Delphi, then run a batch file to switch to
compile and switch to the right package.  The compile would be done by
dcc32.exe if I could get it to work.  I have been trying many
different options and paths in the .cfg file and haven't got anything
working yet.

Here's what the relevant parts of my cfg are now (shortened a lot):
-LE"c:\mypackage"
-LN"c:\mypackage"
-N"c:\mypackage"
-N0"c:\mypackage"
-U"c:\mypackage";"c:\mypackage\component1"
-O"c:\mypackage";"c:\mypackage\component1"
-I"c:\mypackage";"c:\mypackage\component1"
-R"c:\mypackage";"c:\mypackage\component1"

Anybody else have ideas?
Jim
Technical Details
Message-ID: <1170274293.408087.122670@v45g2000cwv.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!v45g2000cwv.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,640e3daa0f2a9a14,start
X-Google-Attributes: gidff8f1,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!v45g2000cwv.googlegroups.com!not-for-mail
From: "Jim C" <jim.cullison@gmail.com>
Newsgroups: borland.public.delphi.commandlinetools
Subject: Compile package with relative paths in contains section
Date: 31 Jan 2007 12:11:33 -0800
Organization: http://groups.google.com
Lines: 41
Message-ID: <1170274293.408087.122670@v45g2000cwv.googlegroups.com>
NNTP-Posting-Host: 63.121.54.230
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1170274298 10625 127.0.0.1 (31 Jan 2007 20:11:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 31 Jan 2007 20:11:38 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: v45g2000cwv.googlegroups.com; posting-host=63.121.54.230;
   posting-account=31DAJA0AAABEEluXls9twnToKRA2jmQE