Only include source files if not build with runtime packages, Conditional needed.

skybuck2000 <[email protected]> Sun, 23 Jan 2022 07:45:49 -0800 (PST)
Newsgroups alt.comp.lang.borland-delphi
Message-ID <[email protected]>
Some source files are added to the project file for convience and also to debug source files better.

Runtime packages might have some debugging issues with initialization and regions and generics and things like that, can't always step into initialization code from a generic/producere init function or something.

Anyway Delphi 10.3, which has many issues, but still.. includes the sources even if build with runtime packages is checkboxed.

Needed:

Conditional Directive which does something like

{$ifndef BuildWithRuntimePackagesEnabled}
add sources to project file
{$endif}

Also I don't like how the main source file is sometimes modified and fucked up by the IDE.

More care must be taken there to preserve some custom code.

Not sure if there is a such a conditional directive which can tell the source code what configuration the project is in... will look through help file to see if anything is there.

Bye for now,
  Skybuck.