Re: [Lazarus] Adding Required Packages paths... dynamically

2019-07-21 Thread Marcos Douglas B. Santos via lazarus
On Sat, Jul 20, 2019 at 6:24 AM Mattias Gaertner via lazarus wrote: > > On Fri, 19 Jul 2019 00:26:49 -0300 > "Marcos Douglas B. Santos via lazarus" > wrote: > > > Hi, > > > > Imagine a package that has a dependency for another one. However, this > > dependency has a conditional to exists. So, I c

Re: [Lazarus] Adding Required Packages paths... dynamically

2019-07-20 Thread Mattias Gaertner via lazarus
On Fri, 19 Jul 2019 00:26:49 -0300 "Marcos Douglas B. Santos via lazarus" wrote: > Hi, > > Imagine a package that has a dependency for another one. However, this > dependency has a conditional to exists. So, I cannot add the Required > Package by default — I'm talking about ZeosLib. > > Then, I

Re: [Lazarus] Adding Required Packages paths... dynamically

2019-07-19 Thread Marcos Douglas B. Santos via lazarus
On Fri, Jul 19, 2019 at 10:30 AM Tony Whyman via lazarus wrote: > > My understanding is that when you add a "required package" what actually > happens is that the IDE adds the package unit paths to the list of unit > paths for your project, and adds the top level .pas file for the package > (which

Re: [Lazarus] Adding Required Packages paths... dynamically

2019-07-19 Thread Tony Whyman via lazarus
My understanding is that when you add a "required package" what actually happens is that the IDE adds the package unit paths to the list of unit paths for your project, and adds the top level .pas file for the package (which usually has the same name as the package) to the "uses" clause in your

Re: [Lazarus] Adding Required Packages paths... dynamically

2019-07-19 Thread Marcos Douglas B. Santos via lazarus
Maybe adding "dynamically" the Required Package, rather using "dynamically paths" by Conditionals, could fix this? But how to do this? Just to be more clear, I don't have any "Duplicate units" as compiler is saying! Thanks. regards, Marcos Douglas -- _

[Lazarus] Adding Required Packages paths... dynamically

2019-07-18 Thread Marcos Douglas B. Santos via lazarus
Hi, Imagine a package that has a dependency for another one. However, this dependency has a conditional to exists. So, I cannot add the Required Package by default — I'm talking about ZeosLib. Then, I used Conditionals (script) for adding ZeosLib paths (-Fu, -Fi) into the paths of the package — a