[Lazarus] Different packages for different usage
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Jun 19 12:37:03 CEST 2015
On Fri, 19 Jun 2015 03:22:47 -0700
aradeonas <aradeonas at operamail.com> wrote:
> Aha! That what I mean,you explained it better than me ;)
>
> About Compiler Defines,until now I couldn't make them work,I don't know
> why! can you show me an simple example?
In Project Options / Compiler Options / Additions and Overrides:
http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Add_a_flag_to_project_and_all_packages
In code you can then use:
{$IFDEF SomeFlag}
{$ELSE}
{$ENDIF}
> This project going to be big and I want just changing package from
> client to server change dependencies and allow me to run app in a non
> graphical OS.
Mattias
More information about the Lazarus
mailing list