Is it possible (in any Delphi version) to have "Conditional defines", under project options, point to a file containing conditional defines instead of having conditional defines declared at that location in Project Options? I want to avoid having to include a conditionals.inc file to every unit unnecessarily if at all possible.
Is it possible (in any Delphi version) to have "Conditional defines", under project options, point to a file containing conditional defines instead of having conditional defines declared at that location in Project Options? I want to avoid having to include a conditionals.inc file to every unit unnecessarily if at all possible.
Thanks, Ryan
Thanks, Ryan
A. Bouchez Utility script to add the $INCLUDE gets run just once. Then commit files to revision control. Then if ever we add a new file to the project the pre-build actions blocks compilation is the $INCLUDE is missing. In other words, the files are not modified by the pre-build action.
ReplyDeleteDavid Heffernan So here it does make sense. But the benefit is not obvious.
ReplyDeleteMy mistake: I thought the include content was injected, not that the include shortcut {$I includefile.inc} pattern was injected.
ReplyDelete