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 

Specifying EXE name from code

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Andrew Woodall
Guest





PostPosted: Fri May 04, 2007 4:13 pm    Post subject: Specifying EXE name from code Reply with quote



Hi,

Just wondering if anyone knows of any way that I can specify from code, what
name the compiler will create the .exe with.

Basically, I build different version of software using #define statements to
change what code is compiled etc. It would be very handy if in those
defines I could tell the compiler to output a different filename for each
different version. It would make my life a whole lot easier.

I'm using Borland C++ Builder 5.

Thanks in advance.
Back to top
Ed Mulroy
Guest





PostPosted: Fri May 04, 2007 7:17 pm    Post subject: Re: Specifying EXE name from code Reply with quote



You can't do that. The base project name is the same as that of the base
executable. What you can do is to create multiple projects and for each set
a define under Project|Options|Directories/Conditionals to control the
conditional compilation.

.. Ed

Quote:
Andrew Woodall wrote in message
news:463b1534$1 (AT) newsgroups (DOT) borland.com...

Just wondering if anyone knows of any way that I can specify from code,
what name the compiler will create the .exe with.

Basically, I build different version of software using #define statements
to change what code is compiled etc. It would be very handy if in those
defines I could tell the compiler to output a different filename for each
different version. It would make my life a whole lot easier.

I'm using Borland C++ Builder 5.
Back to top
Helmut Giese
Guest





PostPosted: Fri May 04, 2007 9:01 pm    Post subject: Re: Specifying EXE name from code Reply with quote



On Fri, 4 May 2007 12:13:46 +0100, "Andrew Woodall" <woody at dvsgroup
dot com> wrote:

Quote:
Hi,

Just wondering if anyone knows of any way that I can specify from code, what
name the compiler will create the .exe with.

Basically, I build different version of software using #define statements to
change what code is compiled etc. It would be very handy if in those
defines I could tell the compiler to output a different filename for each
different version. It would make my life a whole lot easier.
Hi Andrew,

if you switch to using makefiles (maybe only for the release builds?)
you could give any name you want to tho the resulting binaries, IIRC.
HTH
Helmut Giese
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri May 04, 2007 10:06 pm    Post subject: Re: Specifying EXE name from code Reply with quote

"Andrew Woodall" <woody at dvsgroup dot com> wrote in message
news:463b1534$1 (AT) newsgroups (DOT) borland.com...

Quote:
Just wondering if anyone knows of any way that I can specify
from code, what name the compiler will create the .exe with.

There isn't any way to do that in code. The EXE is always named from
the .bpr file itself.

Quote:
Basically, I build different version of software using #define
statements
to change what code is compiled etc. It would be very handy if in
those defines I could tell the compiler to output a different
filename
for each different version. It would make my life a whole lot
easier.


You will have to create different .bpr files, each with its own set of
defines in the Conditionals section of the Project Options. You could
then put them all into a project group and do a mass compile when
needed.

Alternatively, use build scripts to rename the EXE after the compile
is finished. You could run the same .bpr through the command-line
compiler, specifying different Conditional values as needed. You
could then have a different script for each filename you want to
support.


Gambit
Back to top
Andrew Woodall
Guest





PostPosted: Fri May 11, 2007 1:56 pm    Post subject: Re: Specifying EXE name from code Reply with quote

Many thanks for the info guys, looks like i'll have to use a mix of
different .bpr files and/or scripts as suggested.

"Andrew Woodall" <woody at dvsgroup dot com> wrote in message
news:463b1534$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,

Just wondering if anyone knows of any way that I can specify from code,
what name the compiler will create the .exe with.

Basically, I build different version of software using #define statements
to change what code is compiled etc. It would be very handy if in those
defines I could tell the compiler to output a different filename for each
different version. It would make my life a whole lot easier.

I'm using Borland C++ Builder 5.

Thanks in advance.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) 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.