I am trying to automatically generate the extension of my DLLs to get FileName.$(Platform).DLL. Supposedly I can use {$E ext} to set the extension to FileName.ext, and I want FileName.ext.dll
The problem is if I use {$E ext}
I get FileName.ext
as expected, but when I use {$E ext.dll}
I get FileName.ext.ext.dll
. My compiler directives in the *.dpr file reads:
{$IFDEF MSWINDOWS}
{$IFDEF WIN64}
{$E x64.dll}
{$ELSE}
{$E x86.dll}
{$ENDIF}
{$ENDIF}
This creates FileName.x64.x64.dll
or FileName.x86.x86.dll
. Am I missing something? Is there a way to avoid the double "ext" on XE7?