hedgewars/SDLh.pas
changeset 1916 9c3d0e3df6bb
parent 1906 644f93d8f148
child 1947 9b8bdee5db6c
--- a/hedgewars/SDLh.pas	Mon Mar 23 19:03:51 2009 +0000
+++ b/hedgewars/SDLh.pas	Mon Mar 23 21:09:34 2009 +0000
@@ -36,6 +36,7 @@
 {$PACKRECORDS C}
 
 {$IFDEF DARWIN}
+{$IFNDEF IPHONE}
 {$linklib libpng}
 {$linklib libz}
 {$linklib libjpeg}
@@ -53,6 +54,7 @@
 {$linkframework IOKit}
 {add ForceFeedback and CoreAudio frameworks when you use SDL-1.3}
 {$ENDIF}
+{$ENDIF}
 
 (*  SDL *)
 const {$IFDEF WIN32}
@@ -61,11 +63,15 @@
       {$IFDEF UNIX}
 	{$IFDEF DARWIN}
 	  SDLLibName = 'libSDL.a';
+{$IFNDEF IPHONE}
 	  {$linklib libSDL}
 	  {$linklib SDLmain}
 	  {$linkframework Cocoa}
+{$ENDIF}
 	  {$PASCALMAINNAME SDL_main}
+{$IFNDEF IPHONE}
 	  {$linklib gcc}
+{$ENDIF}
 	{$ELSE}
           SDLLibName = 'libSDL.so';
         {$ENDIF}
@@ -297,7 +303,9 @@
       {$IFDEF UNIX}
 	{$IFDEF DARWIN}
 	  SDL_TTFLibName = 'libSDL_ttf.a';
+{$IFNDEF IPHONE}
 	  {$linklib libSDL_ttf}
+{$ENDIF}
 	{$ELSE}
           SDL_TTFLibName = 'libSDL_ttf.so';
         {$ENDIF}
@@ -332,7 +340,9 @@
       {$IFDEF UNIX}
 	{$IFDEF DARWIN}
 	  SDL_MixerLibName = 'libSDL_mixer.a';
+{$IFNDEF IPHONE}
 	  {$linklib libSDL_mixer}
+{$ENDIF}
 	{$ELSE}
           SDL_MixerLibName = 'libSDL_mixer.so';
 	{$ENDIF}
@@ -398,7 +408,9 @@
       {$IFDEF UNIX}
 	{$IFDEF DARWIN}
 	  SDL_ImageLibName = 'libSDL_image.a';
+{$IFNDEF IPHONE}
 	  {$linklib libSDL_image}
+{$ENDIF}
 	{$ELSE}
            SDL_ImageLibName = 'libSDL_image.so';
 	{$ENDIF}
@@ -414,7 +426,9 @@
       {$IFDEF UNIX}
 	{$IFDEF DARWIN}
 	  SDL_NetLibName = 'libSDL_net.a';
+{$IFNDEF IPHONE}
 	  {$linklib libSDL_net}
+{$ENDIF}
 	{$ELSE}
           SDL_NetLibName = 'libSDL_net.so';
 	{$ENDIF}