Changeset 1586
- Timestamp:
- Jul 6, 2012, 9:10:10 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 deleted
- 46 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/build/lol-build
r1528 r1586 85 85 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PWD/contrib/libcaca-0.99.beta18/lib/pkgconfig" 86 86 LDFLAGS="$LDFLAGS -L$PWD/contrib/glew-1.7.0/lib/i686-w64-mingw32" 87 LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.1 4/lib/i686-w64-mingw32"87 LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.15/lib/i686-w64-mingw32" 88 88 LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-image-1.2.10/lib/i686-w64-mingw32" 89 89 LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-mixer-1.2.11/lib/i686-w64-mingw32" … … 110 110 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PWD/contrib/libcaca-0.99.beta18/lib/pkgconfig" 111 111 LDFLAGS="$LDFLAGS -L$PWD/contrib/glew-1.7.0/lib/x86_64-w64-mingw32" 112 LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.1 4/lib/x86_64-w64-mingw32"112 LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.15/lib/x86_64-w64-mingw32" 113 113 LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-image-1.2.10/lib/x86_64-w64-mingw32" 114 114 LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-mixer-1.2.11/lib/x86_64-w64-mingw32" … … 142 142 ;; 143 143 win*-i386|win*-amd64) 144 CPPFLAGS="$CPPFLAGS -I$PWD/contrib/sdl-1.2.1 4/include"144 CPPFLAGS="$CPPFLAGS -I$PWD/contrib/sdl-1.2.15/include" 145 145 CPPFLAGS="$CPPFLAGS -I$PWD/contrib/sdl-image-1.2.10/include" 146 146 CPPFLAGS="$CPPFLAGS -I$PWD/contrib/sdl-mixer-1.2.11/include" -
trunk/build/vs2010/Lol.Core.Vars.props
r1583 r1586 10 10 11 11 <!-- SDL --> 12 <SdlDir>$(ContribDir)\sdl-1.2.1 4</SdlDir>12 <SdlDir>$(ContribDir)\sdl-1.2.15</SdlDir> 13 13 <SdlImageDir>$(ContribDir)\sdl-image-1.2.10</SdlImageDir> 14 14 <SdlMixerDir>$(ContribDir)\sdl-mixer-1.2.11</SdlMixerDir> … … 17 17 <SdlLibs Condition="'$(Platform)'=='x64'">$(SdlDir)\lib\x86_64-w64-mingw32</SdlLibs> 18 18 <SdlDeps Condition="'$(Platform)'=='Win32'">SDL.lib;SDLmain.lib;SDL_image.lib;SDL_mixer.lib</SdlDeps> 19 <SdlDeps Condition="'$(Platform)'=='x64'"> libSDL.a;libSDLmain.a;winmm.lib;dxguid.lib</SdlDeps>19 <SdlDeps Condition="'$(Platform)'=='x64'">SDL.lib;SDLmain.lib</SdlDeps> 20 20 <Win32Defines>HAVE_SDL_H;USE_SDL;$(Win32Defines)</Win32Defines> 21 21 -
trunk/contrib/NOTES
r1583 r1586 39 39 Download page: http://www.libsdl.org/release/ 40 40 41 Win32: 42 - just take the pre-compiled binaries from upstream 43 44 Win64: 45 - ./configure --host=x86_64-w64-mingw32 CPPFLAGS=-D_CRTIMP= 46 - deactivate NONAMELESSUNION in src/video/windx5/directx.h 47 - make -j6 48 - copy build/.libs/libSDLmain.a 49 - copy build/.libs/libSDL.a 50 - copy build/.libs/libSDL.dll.a 41 Just take the pre-compiled binaries from upstream (for VC). For other 42 ways to build SDL, see older versions of this document. 51 43 52 44 -
trunk/contrib/sdl-1.2.15/include/SDL.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_active.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_audio.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_byteorder.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_cdrom.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_config.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_config_dreamcast.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_config_macos.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_config_macosx.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_config_minimal.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_config_nds.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_config_os2.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_config_symbian.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_config_win32.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_copying.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_cpuinfo.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_endian.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or … … 40 40 41 41 #ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */ 42 #ifdef __linux__ 43 #include <endian.h> 44 #define SDL_BYTEORDER __BYTE_ORDER 45 #else /* __linux __ */ 42 46 #if defined(__hppa__) || \ 43 47 defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \ … … 49 53 #define SDL_BYTEORDER SDL_LIL_ENDIAN 50 54 #endif 55 #endif /* __linux __ */ 51 56 #endif /* !SDL_BYTEORDER */ 52 57 … … 82 87 static __inline__ Uint16 SDL_Swap16(Uint16 x) 83 88 { 84 Uint16result;89 int result; 85 90 86 91 __asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" (x)); 87 return result;88 } 89 #elif defined(__GNUC__) && (defined(__ M68000__) || defined(__M68020__))92 return (Uint16)result; 93 } 94 #elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__)) 90 95 static __inline__ Uint16 SDL_Swap16(Uint16 x) 91 96 { … … 95 100 #else 96 101 static __inline__ Uint16 SDL_Swap16(Uint16 x) { 97 return ((x<<8)|(x>>8));102 return SDL_static_cast(Uint16, ((x<<8)|(x>>8))); 98 103 } 99 104 #endif … … 122 127 return result; 123 128 } 124 #elif defined(__GNUC__) && (defined(__ M68000__) || defined(__M68020__))129 #elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__)) 125 130 static __inline__ Uint32 SDL_Swap32(Uint32 x) 126 131 { … … 130 135 #else 131 136 static __inline__ Uint32 SDL_Swap32(Uint32 x) { 132 return ((x<<24)|((x<<8)&0x00FF0000)|((x>>8)&0x0000FF00)|(x>>24));137 return SDL_static_cast(Uint32, ((x<<24)|((x<<8)&0x00FF0000)|((x>>8)&0x0000FF00)|(x>>24))); 133 138 } 134 139 #endif … … 167 172 x <<= 32; 168 173 x |= SDL_Swap32(hi); 169 return (x);174 return (x); 170 175 } 171 176 #endif -
trunk/contrib/sdl-1.2.15/include/SDL_error.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_events.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_getenv.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_joystick.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_keyboard.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_keysym.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_loadso.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_main.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_mouse.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_mutex.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_opengl.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or … … 3109 3109 #ifndef GL_VERSION_1_5 3110 3110 /* GL types for handling large vertex buffer objects */ 3111 #ifdef __APPLE__ 3112 typedef long GLintptr; 3113 typedef long GLsizeiptr; 3114 #else 3111 3115 typedef ptrdiff_t GLintptr; 3112 3116 typedef ptrdiff_t GLsizeiptr; 3113 3117 #endif 3118 #endif 3114 3119 3115 3120 #ifndef GL_ARB_vertex_buffer_object 3116 3121 /* GL types for handling large vertex buffer objects */ 3122 #ifdef __APPLE__ 3123 typedef long GLintptrARB; 3124 typedef long GLsizeiptrARB; 3125 #else 3117 3126 typedef ptrdiff_t GLintptrARB; 3118 3127 typedef ptrdiff_t GLsizeiptrARB; 3128 #endif 3119 3129 #endif 3120 3130 … … 3122 3132 /* GL types for handling shader object handles and program/shader text */ 3123 3133 typedef char GLcharARB; /* native character */ 3134 #if defined(__APPLE__) 3135 typedef void *GLhandleARB; /* shader object handle */ 3136 #else 3124 3137 typedef unsigned int GLhandleARB; /* shader object handle */ 3138 #endif 3125 3139 #endif 3126 3140 -
trunk/contrib/sdl-1.2.15/include/SDL_platform.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_quit.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_rwops.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_stdinc.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_syswm.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or … … 204 204 * This function gives you custom hooks into the window manager information. 205 205 * It fills the structure pointed to by 'info' with custom information and 206 * returns 1 if the function is implemented. If it's not implemented, or 207 * the version member of the 'info' structure is invalid, it returns 0. 206 * returns 0 if the function is not implemented, 1 if the function is 207 * implemented and no error occurred, and -1 if the version member of 208 * the 'info' structure is not filled in or not supported. 208 209 * 209 210 * You typically use this function like this: 210 211 * @code 211 * SDL_SysWM Info info;212 * SDL_SysWMinfo info; 212 213 * SDL_VERSION(&info.version); 213 214 * if ( SDL_GetWMInfo(&info) ) { ... } -
trunk/contrib/sdl-1.2.15/include/SDL_thread.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or … … 69 69 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); 70 70 typedef void (*pfnSDL_CurrentEndThread)(void); 71 #elif __GNUC__72 typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,73 unsigned (__stdcall *func)(void *), void *arg,74 unsigned, unsigned *threadID);75 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);76 71 #else 77 72 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, -
trunk/contrib/sdl-1.2.15/include/SDL_timer.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_types.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/SDL_version.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or … … 42 42 #define SDL_MAJOR_VERSION 1 43 43 #define SDL_MINOR_VERSION 2 44 #define SDL_PATCHLEVEL 1 444 #define SDL_PATCHLEVEL 15 45 45 /*@}*/ 46 46 -
trunk/contrib/sdl-1.2.15/include/SDL_video.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or -
trunk/contrib/sdl-1.2.15/include/begin_code.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or … … 44 44 # if defined(__BEOS__) || defined(__HAIKU__) 45 45 # if defined(__GNUC__) 46 # define DECLSPEC __declspec(dllexport)46 # define DECLSPEC 47 47 # else 48 48 # define DECLSPEC __declspec(export) … … 133 133 #pragma nopackwarning 134 134 #endif 135 #ifdef _M_X64 136 /* Use 8-byte alignment on 64-bit architectures, so pointers are aligned */ 137 #pragma pack(push,8) 138 #else 135 139 #pragma pack(push,4) 140 #endif 136 141 #elif (defined(__MWERKS__) && defined(__MACOS__)) 137 142 #pragma options align=mac68k4byte -
trunk/contrib/sdl-1.2.15/include/close_code.h
r613 r1586 1 1 /* 2 2 SDL - Simple DirectMedia Layer 3 Copyright (C) 1997-20 09Sam Lantinga3 Copyright (C) 1997-2012 Sam Lantinga 4 4 5 5 This library is free software; you can redistribute it and/or
Note: See TracChangeset
for help on using the changeset viewer.