I have a package which uses a certain library. In one of my projects I want to choose whether the package uses this library or not.
My first attempt was using a DEFINE at project level and then {$IFDEF }
in the package, but apparently this only works (is defined) for the project itself, not for the package used.
-> is this correct?
I could split up the package objects - one which uses the library and one which doesn't - but that isn't very practical if there are different combinations of libraries to choose from. -> would you have a better suggestion?
EDIT: I want the package to be "multi-platform', except for some functions which are VCL/win dependent