Graeme, The IDE has always done that with packages. I believe I reported this a couple years ago but didn't look into what it would take to suppress this behavior.
Here's what I put in the Orpheus port notes about that: "When you first add an Orpheus control to a form, Lazarus will add the Orpheus unit to the uses section of your main source file (.lpr). This pulls in a great deal of code that you don't need. Delete the Orpheus unit from the uses section to reduce the size of your executable file." Since the package's main unit references all registered units, this can be a huge amount of code pulled in on platforms that don't have a smart linker (OS X for one). Thanks. -Phil -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Graeme Geldenhuys Sent: Monday, July 07, 2008 1:37 PM To: General mailing list Subject: [Lazarus] When adding a packages it adds to uses clause Hi, Why when I add one of my own custom packages, it adds the package's main unit to the projects uses clause? eg: I have a packages called fpgui_package.lpk and when I add it as a requirement to a project, the uses clause contains 'fpgui_package' as one of the units. If I manually delete it, it still compiles without problems, so why add it in the first place? Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
