[Lazarus] Compiler Options - Conditionally add a package dependency?
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Thu Jul 9 17:33:32 CEST 2015
Hi,
I have two independent packages. I would like my project to toggle
between either one (but never both at the same time). Both have a unit
with the exact same name, hence both packages can't be added to the
dependency list at the same time.
Is there a way with the Compiler Options -> Other (or Additions and
Overrides) to include a specific package based on a compiler define?
eg:
if defined UsePackageA
PackageDependecy.Add(PackageA)
else
PackageDependency.Add(PackageB)
Well something like that at least.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
More information about the Lazarus
mailing list