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

Comments

  1. 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.

    ReplyDelete
  2. David Heffernan So here it does make sense. But the benefit is not obvious.

    ReplyDelete
  3. My mistake: I thought the include content was injected, not that the include shortcut {$I includefile.inc} pattern was injected.

    ReplyDelete

Post a Comment