//
// AggPas 2.4 RM3 compiler options configuration file
//

{DEFINE AGG_DEBUG }

//----------------------------------------------------------------------------
{$IFDEF CPUPOWERPC }
 {$DEFINE AGG_CPU_PPC }
{$ENDIF }

{$IFDEF CPUI386 }
 {$DEFINE AGG_CPU_386 }
{$ENDIF }

{$IFDEF CPU386 }
 {$DEFINE AGG_CPU_386 }
{$ENDIF }

{$IFDEF CPUx86_64 }
 {$DEFINE AGG_CPU_x86_64 }
{$ENDIF }


{$IFDEF FPC }
 {$MODE DELPHI }
{$ENDIF }

// OS

{$IFDEF WIN32 }
 {$DEFINE AGG_WINDOWS }
{$ENDIF }

{$IFDEF WINDOWS }
 {$DEFINE AGG_WINDOWS }
 {$IFNDEF AGG2D_NO_FONT}
  {$DEFINE AGG2D_USE_WINFONTS}
 {$ENDIF}
{$ENDIF }

{$Warning fpGUI supports other *nix flavours too (FreeBSD, Solaris etc), so this
   needs to be extended at some point. }

{$IFDEF LINUX }
 {$DEFINE AGG_LINUX }
 {$IFNDEF AGG2D_NO_FONT}
  {$DEFINE AGG2D_USE_FREETYPE}
 {$ENDIF}
{$ENDIF }

{$Warning Experimental FreeBSD support - totally untested! }
{$IFDEF FREEBSD }
 {$DEFINE AGG_LINUX }
 {$IFNDEF AGG2D_NO_FONT}
  {$DEFINE AGG2D_USE_FREETYPE}
 {$ENDIF}
{$ENDIF }

{$IFDEF DARWIN }
 {$DEFINE AGG_MACOSX }
{$ENDIF }

//----------------------------------------------------------------------------
{$IFDEF AGG_DEBUG }
 {$DEFINE AGG_FULL_DEBUG }
{$ENDIF }

//----------------------------------------------------------------------------
{ SWITCHES CONFIGURATION }
{$IFNDEF FPC }
 {$A- }{ Fields alignment OFF }
 {$F+ }{ Far code generation }
{$ENDIF }

{$HINTS OFF }
{$WARNINGS OFF }

{$B- }{ Complete boolean evaluation }
{$V- }{ String type checking }
{$X+ }{ Extended syntax }

{$IFDEF AGG_FULL_DEBUG }
  {$R+ }{ Range checking }
  {$I+ }{ IO checking }
  {$Q+ }{ Overflow checking }

  {$IFNDEF FPC }
    {$O- }{ Code Optimization }
  {$ENDIF }

  {$D+ }{ Debug Info ON }
  {$Y+ }{ References Info ON }

{$ELSE }
  {$R- }{ Range checking }
  {$I- }{ IO checking }
  {$Q- }{ Overflow checking }

  { Code Optimization }
  {$IFNDEF FPC }
    {$IFDEF AGG_OPTIMIZE }
      {$O+ }
    {$ELSE }
      {$O- }
    {$ENDIF }
  {$ENDIF }

  {$D- }{ Debug Info OFF }
  {$IFNDEF FPC}
    {$Y- }{ References Info OFF }
  {$ENDIF}
{$ENDIF }

{$IFNDEF AGG2D_USE_WINFONTS}
  {$IFNDEF AGG2D_USE_FREETYPE}
    {$DEFINE AGG2D_NO_FONT}
  {$ENDIF}
{$ENDIF}

