how to have a build-dependent icon in Delphi -
is there way in delphi xe5 (and later) have 2 different icons based on build target (e.g., 32-bit vs. 64-bit). client wants both 32-bit , 64-bit versions installed (there single source both). application icon each different distinguish between 32-bit , 64-bit.
assuming mean main programme icon, have few options. not allow ide effort manage since not cutting out vary icon based on platform. take out of command of ide.
create resource scripts 32 , 64 bit platforms:
32 bit
mainicon icon "myappicon32.ico"
64 bit
mainicon icon "myappicon64.ico"
compile , link resources:
{$ifdef win32} {$r 'myappicon32.res' 'myappicon32.rc'} {$endif} {$ifdef win64} {$r 'myappicon64.res' 'myappicon64.rc'} {$endif}
you need create sure .res file ide manages no longer contains icon.
delphi build icons
No comments:
Post a Comment