[Lazarus] Getting project type

2014-02-15 Thread Mark Morgan Lloyd
Does Lazarus (or preferably FPC) define something that can be checked in source when it's building a dynamic library (.dll or .so)? Usage case is that I want to build part of a larger project as a .so, and would like to be able to be able to exclude units that aren't relevant (so that users se

Re: [Lazarus] Getting project type

2014-02-15 Thread leledumbo
80.n3.nabble.com/Lazarus-Getting-project-type-tp4035844p4035848.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Getting project type

2014-02-16 Thread Mark Morgan Lloyd
leledumbo wrote: Seems not, I guess you'll have to use your custom defines. Unused units will be left out automatically if you use smartlinking, with prerequisites that the unit must not have any initialization/finalization section. Thanks for that, just wanted to make sure I'd not missed anyth