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 anything.

The problem is that there's quite a lot of circular imports I'm having 
to break. Nothing insurmountable :-)


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[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 see tight binaries when they expect them). I'll 
probably have various -d settings, but would obviously prefer to 
reference standard defines where possible.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Getting project type

2014-02-15 Thread leledumbo
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.



--
View this message in context: 
http://free-pascal-lazarus.989080.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