jmpessoa / lazandroidmodulewizard

LAMW: Lazarus Android Module Wizard: Form Designer and Components development model!
246 stars 82 forks source link

Set LAMW Directive #485

Closed chacalfloripa closed 1 year ago

chacalfloripa commented 1 year ago

is there any directive that identifies that we are compiling a LAMW project? This directive is important for using shared codes that use LCL.

jmpessoa commented 1 year ago

you can try

{$IFDEF android} //my android stuff {$ENDIF}

jmpessoa commented 1 year ago

well, maybe you will need this....

{$IFNOTDEF android} //my FCL units or code.... {$ENDIF}

chacalfloripa commented 1 year ago

okay, that works. {$IFDEF android} {$IFDEF FMX} // FMX code or unit. {$ELSE} // FCP code or unit {$ENDIF} {$ENDIF}