2016-07-27 17:16 GMT-03:00 Michael Van Canneyt <[email protected]>:
> > 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
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus-ide.org/listinfo/lazarus
