BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiling packages from command-line

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools)
View previous topic :: View next topic  
Author Message
Sam
Guest





PostPosted: Mon Jan 05, 2004 12:39 pm    Post subject: Compiling packages from command-line Reply with quote



Hi,

I am trying to create a batch file for compiling the packages (bpk's) for
Borland C++ Builder 5 and 6. I wonder if this is possible using the
bcc32.exe.

What i need to do is to compile the bpk from command prompt using some
Borland C++Builder command-line utility. I should also be able to give the
search path and output libraries, etc.

Does anyone know how I can achieve this?

Thanks in advance.

--
Sam


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Jan 05, 2004 6:54 pm    Post subject: Re: Compiling packages from command-line Reply with quote




"Sam" <anishsam (AT) gnostice (DOT) com> wrote


Quote:
What i need to do is to compile the bpk from command prompt
using some Borland C++Builder command-line utility. I should
also be able to give the search path and output libraries, etc.

If you run bcc32.exe with the /? parameter, you will see all of the
command-line options that are available for it.


Gambit



Back to top
Sam
Guest





PostPosted: Tue Jan 06, 2004 4:28 am    Post subject: Re: Compiling packages from command-line Reply with quote



Hi,

I did run bcc32 /? and found a whole lot of command-line options, But
couldn't find the one required for building/compiling packages.

--
Sam.

"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote

Quote:

"Sam" <anishsam (AT) gnostice (DOT) com> wrote in message
news:3ff95858 (AT) newsgroups (DOT) borland.com...

What i need to do is to compile the bpk from command prompt
using some Borland C++Builder command-line utility. I should
also be able to give the search path and output libraries, etc.

If you run bcc32.exe with the /? parameter, you will see all of the
command-line options that are available for it.


Gambit





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Jan 06, 2004 4:37 am    Post subject: Re: Compiling packages from command-line Reply with quote


"Sam" <anishsam (AT) gnostice (DOT) com> wrote


Quote:
I did run bcc32 /? and found a whole lot of command-line
options, But couldn't find the one required for building/compiling
packages.

As far as I know, you should be able to just specify the .BPK file for the
package's project. A BPR/BPK file is partly a makefile in its own right,
and last time I checked, BCC32 could process those files.


Gambit



Back to top
Sam
Guest





PostPosted: Tue Jan 06, 2004 6:33 am    Post subject: Re: Compiling packages from command-line Reply with quote

Hi,

I did try giving the .BPK file as an argument to the BCC32, and it gave all
kinds of errors abt invalid characters in the file. I guess its unable to
read the .BPK file. I suppose there should be some kind of directive which
will tell BCC32 that the input file is a .BPK file. I am not able to find
any such option in the help.

--
Sam.


"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote

Quote:

"Sam" <anishsam (AT) gnostice (DOT) com> wrote in message
news:3ffa37e4 (AT) newsgroups (DOT) borland.com...

I did run bcc32 /? and found a whole lot of command-line
options, But couldn't find the one required for building/compiling
packages.

As far as I know, you should be able to just specify the .BPK file for the
package's project. A BPR/BPK file is partly a makefile in its own right,
and last time I checked, BCC32 could process those files.


Gambit





Back to top
Robert Ehteshamzadeh
Guest





PostPosted: Wed Jan 07, 2004 11:54 pm    Post subject: Re: Compiling packages from command-line Reply with quote

Sam, I have some test code that does this. I'll post it tomorrow (i.e,
I need to find it first).

Sam wrote:

Quote:
I did run bcc32 /? and found a whole lot of command-line
options, But couldn't find the one required for building/compiling
packages.

--
Robert Ehteshamzadeh (C++ QA)


Back to top
Sam
Guest





PostPosted: Thu Jan 08, 2004 4:51 am    Post subject: Re: Compiling packages from command-line Reply with quote

Thanks Robert

--
Sam.

"Robert Ehteshamzadeh" <rehteshamzadeh (AT) borland (DOT) com> wrote

Quote:
Sam, I have some test code that does this. I'll post it tomorrow (i.e,
I need to find it first).

Sam wrote:

I did run bcc32 /? and found a whole lot of command-line
options, But couldn't find the one required for building/compiling
packages.

--
Robert Ehteshamzadeh (C++ QA)




Back to top
OBones
Guest





PostPosted: Thu Jan 08, 2004 5:28 am    Post subject: Re: Compiling packages from command-line Reply with quote

just have a look at what we do in the JVCL, especially in MakeBCB.bat
You can it from our CVS server on sourceforge. The link is:

[url]http://cvs.sourceforge.net/viewcvs.py/*checkout*/jvcl/dev/JVCL3/packages/MakeBCB.bat?content-type=text%2Fplain&rev=1.9[/url]

but that may be a little too complex to handle as we start from a BPG
file. So here is what you need to do for each package (extracted from
the makefile generated from the bpg file):

JvCoreC6R.bpl: bcb6JvCoreC6R.bpk
cd packages
$(ROOT)binbpr2mak -t..BCB.bmk $**
$(ROOT)binmake -$(MAKEFLAGS) -f$*.mak
cd ..

the key is to convert the borland project (.bpk or .bpr) to a make file
and then build this file using make.
The -t option in the call to bpr2mak is to force using our own template,
but if you don't specify it, it uses the default one which should be
enough in most cases.
bpr2mak comes with BCB and $(ROOT) is the place where BCB is installed.

Hope this helps

Cheers

Olivier Sannier
JVCL Developer
BCB Coordinator




Back to top
Sam
Guest





PostPosted: Thu Jan 08, 2004 6:40 am    Post subject: Re: Compiling packages from command-line Reply with quote

Hi Olivier,

Excellent tip. Thanks a lot.

--
Sam.


"OBones" <obones_fff_ (AT) meloo_fdf_ (DOT) com> wrote

Quote:
just have a look at what we do in the JVCL, especially in MakeBCB.bat
You can it from our CVS server on sourceforge. The link is:


[url]http://cvs.sourceforge.net/viewcvs.py/*checkout*/jvcl/dev/JVCL3/packages/Mak[/url]

eBCB.bat?content-type=text%2Fplain&rev=1.9
Quote:

but that may be a little too complex to handle as we start from a BPG
file. So here is what you need to do for each package (extracted from
the makefile generated from the bpg file):

JvCoreC6R.bpl: bcb6JvCoreC6R.bpk
cd packages
$(ROOT)binbpr2mak -t..BCB.bmk $**
$(ROOT)binmake -$(MAKEFLAGS) -f$*.mak
cd ..

the key is to convert the borland project (.bpk or .bpr) to a make file
and then build this file using make.
The -t option in the call to bpr2mak is to force using our own template,
but if you don't specify it, it uses the default one which should be
enough in most cases.
bpr2mak comes with BCB and $(ROOT) is the place where BCB is installed.

Hope this helps

Cheers

Olivier Sannier
JVCL Developer
BCB Coordinator







Back to top
Robert Ehteshamzadeh
Guest





PostPosted: Thu Jan 08, 2004 7:12 pm    Post subject: Re: Compiling packages from command-line Reply with quote

A quick look at an exported makefile shows the parameters for bcc32 and
ilink32:

bcc32 -Od -H=d:c6bin..libvcl60.csm -Hc -Vx -Ve -X- -r- -a8 -b- -k
-y -v -vi- -c -tWM -w-par
-Id:c6bin..Projects;d:c6bin..include;d:c6bin..includevcl
-D_DEBUG;_RTLDLL;NO_STRICT;USEPACKAGES -n. .
Package1.cpp


ilink32 -D"" -aa -Tpp -x -Gn -Gl -Gi -v
-Ld:c6bin..Projects;d:c6bin..libobj;d:c6bin..lib +
c0pkg32.obj rtl.bpi Memmgr.Lib sysinit.obj Package1.obj, +
Package1.bpl,, +
import32.lib cp32mti.lib, +
, +
Package1.res

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.