We're slowly converting a big and complicated collection of Delphi 6 projects to Delphi 2007.
In Delphi I can use compiler directives in dpr, dpk and pas files to make different code visible to different versions. For example:
requires
rtl,
vcl,
vclx,
{$IFDEF VER180} //Delphi 2007 and later
IndyCore,
IndySystem,
IndyProtocols;
{$ELSE} //earlier than Delphi 2007
IndyCore60,
IndySystem60,
IndyProtocols60;
{$ENDIF}
However, I don't know how to do the same in a dof file. The requires clause above is for a package that is used by a program. I want that program to have a different packages setting for different versions of Delphi. So I want to put something like the following in the dof file:
{$IFDEF VER180}
Packages=vcl;rtl;vclx;IndySystem;IndyCore;IndyProtocols;MyPackage;
{$ELSE}
Packages=vcl;rtl;vclx;IndySystem60;IndyCore60;IndyProtocols60;MyPackage;
{$ENDIF}
I'm very new to Delphi 2007 so hopefully I'm missing something really obvious!
Any suggestions received gratefully.