I am writing a package, and I would like to know, how the "Printers" unit gets linked with the "Printer4Lazarus" package, which is needed to target the correct os/Widget etc.
I have a case where I would like to have a single unit but would like to select the package that dictates its functionality.
The Printer unit is a perfect example of what I want to do, can I get an explanation of how the compiler loads the packages and the associated unit gets defined?
Jamie