<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-07-27 17:16 GMT-03:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi,<br>
<br>
How can I make (if at all possible) package dependencies conditional ?<br>
<br>
Specifically: Depending on a compiler define, a program will depend on the LCL or not.<span class="gmail-HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div>I hit the same issue.<br><br></div><div>Ended with a solution that, IMO, is good and powerful enough.<br><br></div><div>See what i did in VTV: <a href="https://github.com/blikblum/VirtualTreeView-Lazarus/blob/lazarus_master/Source/virtualtreeview_package.lpk">https://github.com/blikblum/VirtualTreeView-Lazarus/blob/lazarus_master/Source/virtualtreeview_package.lpk</a><br><br></div><div>Created a conditional that adds the package dependencies (multiloglaz) if a macro value is set.<br><br></div><div>Then defined a build macro (VirtualTreeView_Debug) that sets the value <br></div><div><br></div>In the project i set the macro value according to my need<br></div><div class="gmail_quote"><br><div>Luiz<br></div></div></div></div>