Jump to content
Sign in to follow this  
Clément

Same project different platform base executable

Recommended Posts

Hello,


I would like to use the same project (cKwel.dproj) and I would like the output executable to be cKwel32.exe when compiling for 32 bits amd cKwel.exe when compiling for 64 bits.
Is there any settings in the IDE or in code I can set?

 

I'm using 10.4.2

TIA,

Clément

Share this post


Link to post
44 minutes ago, Clément said:

I would like the output executable to be cKwel32.exe when compiling for 32 bits

In Project Options - Building - Build Events select All configurations - Windows 32-bit platform. Then in Post-build events set Commands to 

ren $(OUTPUTPATH) $(OUTPUTNAME)32$(OUTPUTEXT)

Note, that you won't be able to debug that.

  • Like 1

Share this post


Link to post

I thought I was missing some parameter in a newer IDE.
Anyway, I created a "Deploy" configuration where I would the code.

Thanks!

Share this post


Link to post

see also: delphi - XE4: How to change exe output name base on platform? - Stack Overflow

 

Quote

Simple trick allow it:

Go to Project Settings->Application and in field "Target file extensions" add unique suffix for every configuration.

e.g


Debug 32 bit: debug32.exe  
Debug 64 bit: debug64.exe  
Release 32 bit: 32.exe  
Release 64 bit: 64.exe 

Output for project with name "ProjectName":


ProjectName.debug32.exe  
ProjectName.debug64.exe  
ProjectName.32.exe  
ProjectName.64.exe

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×