2015-07-09 12:58 GMT-03:00 Michael Van Canneyt <mich...@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
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus