[Lazarus] Conditional dependencies on packages ?
Luiz Americo Pereira Camara
luizamericop at gmail.com
Thu Jul 28 17:58:27 CEST 2016
2016-07-27 17:16 GMT-03:00 Michael Van Canneyt <michael at freepascal.org>:
>
> Hi,
>
> How can I make (if at all possible) package dependencies conditional ?
>
> Specifically: Depending on a compiler define, a program will depend on the
> LCL or not.
>
>
I hit the same issue.
Ended with a solution that, IMO, is good and powerful enough.
See what i did in VTV:
https://github.com/blikblum/VirtualTreeView-Lazarus/blob/lazarus_master/Source/virtualtreeview_package.lpk
Created a conditional that adds the package dependencies (multiloglaz) if a
macro value is set.
Then defined a build macro (VirtualTreeView_Debug) that sets the value
In the project i set the macro value according to my need
Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160728/f081ee6a/attachment.html>
More information about the Lazarus
mailing list