XE4: How to change exe output name base on platform?

前端 未结 3 1826
遥遥无期
遥遥无期 2020-12-31 02:28

Simply I need output executable names like MyApp32.exe and MyApp64.exe after compiling my project in Delphi XE4.

I found a directive in the forum which is {$LIBSUFFI

3条回答
  •  鱼传尺愫
    2020-12-31 02:47

    The way I handle this is that I have a single project with multiple targets: 32/64 bit, debug/release, etc. Each of those targets is output to a separate directory. For example, Win64\Release.

    When I prepare the files needed for deployment and installation, I rename the executables at that point. And this renaming is needed because I deploy 32 and 64 bit versions to the same directory. Naturally this is all automated.

    Remy's approach of renaming the output file as a post-build action has the downside that the debugger won't be able to locate an executable.

    The philosophy is to fit in with the development environment when working with files that will be used by the IDE. But then when it comes to deployment, you are free to rename files, re-organise them into a different folder structure etc. that better suits your deployment needs.

提交回复
热议问题