{$mode objfpc}
{.$define G2RM_FF}
{$define G2RM_SM2}
{$if defined(CPUI386) or defined(CPU386)}
  {$define G2Cpu386}
  {$asmmode intel}
{$endif}
{$if defined(MSWINDOWS)}
  {$define G2Target_Windows}
{$elseif defined(LINUX)}
  {$ifdef CPUARM}
    {$define G2Target_Android}
  {$else}
    {$define G2Target_Linux}
  {$endif}
{$elseif defined(DARWIN)}
  {$define G2Target_OSX}
{$endif}

{.$define G2Threading}

{$if defined(G2Target_Windows)}
  {.$define G2Threading}
  {$define G2Gfx_D3D9}
  {.$define G2Gfx_OGL}
  {$define G2Snd_DS}
  {.$define G2Snd_OAL}
{$elseif defined(G2Target_Android)}
  {$define G2Gfx_GLES}
  {$define G2Snd_OAL}
{$else}
  {$define G2Gfx_OGL}
  {$define G2Snd_OAL}
{$endif}

//no threaded opengl renderer
{$ifdef G2Gfx_OGL}
  {$undef G2Threading}
{$endif}
