I would like to be able to achieve the latter if possible (due to some odd behaviour with high dpi and Hydra plugins in a Delphi Host).
I basically need to include a set of files (A) if a Winforms .Net plugin is going to be hosted in a Delphi Host and set of files (B) if it is to be instantiated from a .Net host.
I’ve seen a post from a few years ago, but nothing else relevant :-
EBuild merely uses this syntax for MSBuild backwards-compatibility to mark each Configuration’s settings group (and uses the same for Targets, an EBuild-exclusive feature), but does not actually parse or process these as conditions.
You can set the “Conditional” property on the individual file item, and it will be based to the compiler; I am not entirely sure, but “Conditional:” should be able to take the name of a define (for sure) and possibly even a more complex set of conditions (as valid inside an {$IFDEF or the file’s language equivalent) – but I;'m not 100% sure on the last part, you;'d need to test.
After a little more testing, I think I’m going with $(Configuration) in the ItemGroup. So we’ll have ReleaseDelphi and ReleaseNET configurations. The changes to all the projects are then straightforward.