hedgewars/SDLh.pas
changeset 1916 9c3d0e3df6bb
parent 1906 644f93d8f148
child 1947 9b8bdee5db6c
equal deleted inserted replaced
1915:c357f5b55320 1916:9c3d0e3df6bb
    34 {$ENDIF}
    34 {$ENDIF}
    35 
    35 
    36 {$PACKRECORDS C}
    36 {$PACKRECORDS C}
    37 
    37 
    38 {$IFDEF DARWIN}
    38 {$IFDEF DARWIN}
       
    39 {$IFNDEF IPHONE}
    39 {$linklib libpng}
    40 {$linklib libpng}
    40 {$linklib libz}
    41 {$linklib libz}
    41 {$linklib libjpeg}
    42 {$linklib libjpeg}
    42 {$linklib libtiff}
    43 {$linklib libtiff}
    43 {$linklib libfreetype}
    44 {$linklib libfreetype}
    51 {$linkframework AudioUnit}
    52 {$linkframework AudioUnit}
    52 {$linkframework Quicktime}
    53 {$linkframework Quicktime}
    53 {$linkframework IOKit}
    54 {$linkframework IOKit}
    54 {add ForceFeedback and CoreAudio frameworks when you use SDL-1.3}
    55 {add ForceFeedback and CoreAudio frameworks when you use SDL-1.3}
    55 {$ENDIF}
    56 {$ENDIF}
       
    57 {$ENDIF}
    56 
    58 
    57 (*  SDL *)
    59 (*  SDL *)
    58 const {$IFDEF WIN32}
    60 const {$IFDEF WIN32}
    59       SDLLibName = 'SDL.dll';
    61       SDLLibName = 'SDL.dll';
    60       {$ENDIF}
    62       {$ENDIF}
    61       {$IFDEF UNIX}
    63       {$IFDEF UNIX}
    62 	{$IFDEF DARWIN}
    64 	{$IFDEF DARWIN}
    63 	  SDLLibName = 'libSDL.a';
    65 	  SDLLibName = 'libSDL.a';
       
    66 {$IFNDEF IPHONE}
    64 	  {$linklib libSDL}
    67 	  {$linklib libSDL}
    65 	  {$linklib SDLmain}
    68 	  {$linklib SDLmain}
    66 	  {$linkframework Cocoa}
    69 	  {$linkframework Cocoa}
       
    70 {$ENDIF}
    67 	  {$PASCALMAINNAME SDL_main}
    71 	  {$PASCALMAINNAME SDL_main}
       
    72 {$IFNDEF IPHONE}
    68 	  {$linklib gcc}
    73 	  {$linklib gcc}
       
    74 {$ENDIF}
    69 	{$ELSE}
    75 	{$ELSE}
    70           SDLLibName = 'libSDL.so';
    76           SDLLibName = 'libSDL.so';
    71         {$ENDIF}
    77         {$ENDIF}
    72       {$ENDIF}
    78       {$ENDIF}
    73       SDL_SWSURFACE   = $00000000;
    79       SDL_SWSURFACE   = $00000000;
   295       SDL_TTFLibName = 'SDL_ttf.dll';
   301       SDL_TTFLibName = 'SDL_ttf.dll';
   296       {$ENDIF}
   302       {$ENDIF}
   297       {$IFDEF UNIX}
   303       {$IFDEF UNIX}
   298 	{$IFDEF DARWIN}
   304 	{$IFDEF DARWIN}
   299 	  SDL_TTFLibName = 'libSDL_ttf.a';
   305 	  SDL_TTFLibName = 'libSDL_ttf.a';
       
   306 {$IFNDEF IPHONE}
   300 	  {$linklib libSDL_ttf}
   307 	  {$linklib libSDL_ttf}
       
   308 {$ENDIF}
   301 	{$ELSE}
   309 	{$ELSE}
   302           SDL_TTFLibName = 'libSDL_ttf.so';
   310           SDL_TTFLibName = 'libSDL_ttf.so';
   303         {$ENDIF}
   311         {$ENDIF}
   304       {$ENDIF}
   312       {$ENDIF}
   305       TTF_STYLE_NORMAL = 0;
   313       TTF_STYLE_NORMAL = 0;
   330       SDL_MixerLibName = 'SDL_mixer.dll';
   338       SDL_MixerLibName = 'SDL_mixer.dll';
   331       {$ENDIF}
   339       {$ENDIF}
   332       {$IFDEF UNIX}
   340       {$IFDEF UNIX}
   333 	{$IFDEF DARWIN}
   341 	{$IFDEF DARWIN}
   334 	  SDL_MixerLibName = 'libSDL_mixer.a';
   342 	  SDL_MixerLibName = 'libSDL_mixer.a';
       
   343 {$IFNDEF IPHONE}
   335 	  {$linklib libSDL_mixer}
   344 	  {$linklib libSDL_mixer}
       
   345 {$ENDIF}
   336 	{$ELSE}
   346 	{$ELSE}
   337           SDL_MixerLibName = 'libSDL_mixer.so';
   347           SDL_MixerLibName = 'libSDL_mixer.so';
   338 	{$ENDIF}
   348 	{$ENDIF}
   339       {$ENDIF}
   349       {$ENDIF}
   340 
   350 
   396       SDL_ImageLibName = 'SDL_image.dll';
   406       SDL_ImageLibName = 'SDL_image.dll';
   397       {$ENDIF}
   407       {$ENDIF}
   398       {$IFDEF UNIX}
   408       {$IFDEF UNIX}
   399 	{$IFDEF DARWIN}
   409 	{$IFDEF DARWIN}
   400 	  SDL_ImageLibName = 'libSDL_image.a';
   410 	  SDL_ImageLibName = 'libSDL_image.a';
       
   411 {$IFNDEF IPHONE}
   401 	  {$linklib libSDL_image}
   412 	  {$linklib libSDL_image}
       
   413 {$ENDIF}
   402 	{$ELSE}
   414 	{$ELSE}
   403            SDL_ImageLibName = 'libSDL_image.so';
   415            SDL_ImageLibName = 'libSDL_image.so';
   404 	{$ENDIF}
   416 	{$ENDIF}
   405       {$ENDIF}
   417       {$ENDIF}
   406 
   418 
   412       SDL_NetLibName = 'SDL_net.dll';
   424       SDL_NetLibName = 'SDL_net.dll';
   413       {$ENDIF}
   425       {$ENDIF}
   414       {$IFDEF UNIX}
   426       {$IFDEF UNIX}
   415 	{$IFDEF DARWIN}
   427 	{$IFDEF DARWIN}
   416 	  SDL_NetLibName = 'libSDL_net.a';
   428 	  SDL_NetLibName = 'libSDL_net.a';
       
   429 {$IFNDEF IPHONE}
   417 	  {$linklib libSDL_net}
   430 	  {$linklib libSDL_net}
       
   431 {$ENDIF}
   418 	{$ELSE}
   432 	{$ELSE}
   419           SDL_NetLibName = 'libSDL_net.so';
   433           SDL_NetLibName = 'libSDL_net.so';
   420 	{$ENDIF}
   434 	{$ENDIF}
   421       {$ENDIF}
   435       {$ENDIF}
   422 
   436