Wednesday, 15 August 2012

Is there a conditional define for library projects in Delphi? -



Is there a conditional define for library projects in Delphi? -

i have utility unit code shared between few applications , dlls. i'd selectively compile portions of unit based upon current project type: application, package, or library. couldn't find conditional definitions library or bundle in system unit, , google didn't find relevant. so, there conditional defines such islibrary or ispackage set compiler? i'm aware of islibrary variable, way.

there no such pre-defined conditional, , there not such conditional. that's because @ compilation time impossible know whether unit will, ultimately, linked executable, library or package.

in fact, same compiled unit linked or of above project types. , indeed can see when link rtl projects. link same system unit, same compiled .dcu file, projects, irrespective of project type.

delphi delphi-xe2

No comments:

Post a Comment