[Lazarus] Compiler Options - Conditionally add a package dependency?
luiz americo pereira camara
luizmed at oi.com.br
Thu Jul 9 19:11:04 CEST 2015
2015-07-09 12:58 GMT-03:00 Michael Van Canneyt <michael at freepascal.org>:
>
>
> On Thu, 9 Jul 2015, Graeme Geldenhuys wrote:
>
>
>>
>> Is there a way with the Compiler Options -> Other (or Additions and
>> Overrides) to include a specific package based on a compiler define?
>>
>>
>>
> I would even go further, and have a package included or not depending on
> the OS.
>
+1.
I hit similar issue and tried to use the Conditionals script with the IDE
Macro but could not get working .
My idea was do the following, but did not work:
if SomeCondition then begin
UsageSrcPath += GetIDEValue('$PkgSrcPath(''apackagname'')');
end;
In my specific case the condition was the avaibility of a package. See
thread "Check if a package is available through macros"
Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150709/2cc1f16c/attachment-0003.html>
More information about the Lazarus
mailing list