
// Compiler switches
// Use it wisely, only if you know what you're doing
// With great power comes great responsibility

// Use GLFW for window and input instead of SDL
{.$DEFINE USE_GLFW}

// To use PNGs, JPGs, GIFs, etc. instead of just BMPs
{.$DEFINE USE_SDL_IMAGE}
{$DEFINE USE_VAMPYRE}

// To use audio
{$DEFINE USE_SDL_MIXER}

// To use truetype fonts
{$DEFINE USE_SDL_TTF}

// If you don't want to use SFont
{.$DEFINE USE_SFONT}

// To use networking capabilities
// Not yet implemented
{.$DEFINE USE_SDL_NET}

{$IFNDEF DARWIN}
  {$DEFINE USE_DGL_HEADER}
{$ENDIF}

{$DEFINE AUTO_LINK}

// Determines whether logger singleton will be used or not
{$DEFINE USE_LOGGER}


{$IFDEF AUTO_LINK}
	// Links automatically to frameworks under Mac OS X
	{$IFDEF DARWIN}
		{$PASCALMAINNAME SDL_main} // Needed for Snow Leopard
		{$linklib SDLmain}

		  {$linkframework Cocoa}
		  {$linkframework SDL}

		  {$IFDEF USE_SDL_IMAGE} {$linkframework SDL_image} {$ENDIF}
		  {$IFDEF USE_SDL_MIXER} {$linkframework SDL_mixer} {$ENDIF}
		  {$IFDEF USE_SDL_TTF}   {$linkframework SDL_ttf}   {$ENDIF}
		  {$IFDEF USE_SDL_GFX}   {$linkframework SDL_gfx}   {$ENDIF}
		  {$IFDEF USE_SDL_NET}   {$linkframework SDL_net}   {$ENDIF}
	{$ENDIF}
        
        // Just link once
        {$UNDEF AUTO_LINK}
{$ENDIF}