 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Andrew Woodall Guest
|
Posted: Fri May 04, 2007 4:13 pm Post subject: Specifying EXE name from code |
|
|
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
|
Posted: Fri May 04, 2007 7:17 pm Post subject: Re: Specifying EXE name from code |
|
|
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
|
Posted: Fri May 04, 2007 9:01 pm Post subject: Re: Specifying EXE name from code |
|
|
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
|
Posted: Fri May 04, 2007 10:06 pm Post subject: Re: Specifying EXE name from code |
|
|
"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
|
Posted: Fri May 11, 2007 1:56 pm Post subject: Re: Specifying EXE name from code |
|
|
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 |
|
 |
|
|
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
|
|