On Fri, 19 Jun 2015 03:22:47 -0700
aradeonas <[email protected]> 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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to