<div dir="ltr"><div>The LCL package has this in custom definitions for dependent packages:<br><br>-dLCL -dLCL$(LCLWidgetType)<br><br></div>So Lazarus simply defines the LCL and LCL<widgettype> at compile time. <widgettype> is one of the subdirectories in lcl/interfaces.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 13, 2017 at 12:21 PM, Mark Morgan Lloyd via Lazarus <span dir="ltr"><<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 13/02/17 10:00, Mattias Gaertner via Lazarus wrote:<span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, 13 Feb 2017 09:23:35 +0000Mark Morgan Lloyd via Lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a><wbr>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've got a bit of diagnostic code that I add to most programs that > retrieves things like Subversion revision numbers and link-time build > ID. It also contains> > (*$IFDEF LCLQT *)> widV= 'Linked with the Qt widget set';> (*$DEFINE WIDGETSET *)> (*$ENDIF *)> (*$IFDEF LCLFPGUI *)> widV= 'Linked with the FPGUI widget set';> (*$DEFINE WIDGETSET *)> (*$ENDIF *)> > and so on.> > Presumably LCLQT and the rest are defined somewhere in the IDE or LCL, > but where can I find this so that I can make sure that my code's kept in > step?<br>
</blockquote>
uses InterfaceBase, LCLPlatformDef;<br>
widV:='Linked with '+LCLPlatformDisplayNames[Widg<wbr>etSet.LCLPlatform]+'widget set';<br>
</blockquote>
<br></span>
OK, Thanks. So I can see how I can derive the names etc. from that, it appears to have been supported since the dawn of time, and linking to it is still going to be no more intrusive than some of the other stuff that's already in my diagnostic unit.<br>
<br>
But out of curiosity, I'd still be very interested to know how the compile-time definitions like the ones in my example are generated :-)<span class="im HOEnZb"><br>
<br>
-- <br>
Mark Morgan Lloyd<br>
markMLl .AT. <a href="http://telemetry.co" rel="noreferrer" target="_blank">telemetry.co</a> .DOT. uk<br>
<br>
[Opinions above are the author's, not those of his employers or colleagues]<br></span><div class="HOEnZb"><div class="h5">
-- <br>
______________________________<wbr>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus-ide.org" target="_blank">Lazarus@lists.lazarus-ide.org</a><br>
<a href="http://lists.lazarus-ide.org/listinfo/lazarus" rel="noreferrer" target="_blank">http://lists.lazarus-ide.org/l<wbr>istinfo/lazarus</a><br>
</div></div></blockquote></div><br></div>