[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12871] trunk/lib/solaris-2.10-i386: sdl for solaris 10
Campbell Barton
ideasman42 at gmail.com
Thu Dec 13 16:35:52 CET 2007
Revision: 12871
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12871
Author: campbellbarton
Date: 2007-12-13 16:35:52 +0100 (Thu, 13 Dec 2007)
Log Message:
-----------
sdl for solaris 10
Added Paths:
-----------
trunk/lib/solaris-2.10-i386/sdl/
trunk/lib/solaris-2.10-i386/sdl/bin/
trunk/lib/solaris-2.10-i386/sdl/bin/sdl-config
trunk/lib/solaris-2.10-i386/sdl/include/
trunk/lib/solaris-2.10-i386/sdl/include/SDL/
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_active.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_audio.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_byteorder.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_cdrom.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_config.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_cpuinfo.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_endian.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_error.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_events.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_getenv.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_joystick.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_keyboard.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_keysym.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_loadso.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_main.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_mouse.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_mutex.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_name.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_opengl.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_platform.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_quit.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_rwops.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_stdinc.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_syswm.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_thread.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_timer.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_types.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_version.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_video.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/begin_code.h
trunk/lib/solaris-2.10-i386/sdl/include/SDL/close_code.h
trunk/lib/solaris-2.10-i386/sdl/lib/
trunk/lib/solaris-2.10-i386/sdl/lib/libSDL-1.2.so.0
trunk/lib/solaris-2.10-i386/sdl/lib/libSDL-1.2.so.0.11.1
trunk/lib/solaris-2.10-i386/sdl/lib/libSDL.a
trunk/lib/solaris-2.10-i386/sdl/lib/libSDL.so
trunk/lib/solaris-2.10-i386/sdl/lib/libSDLmain.a
Added: trunk/lib/solaris-2.10-i386/sdl/bin/sdl-config
===================================================================
--- trunk/lib/solaris-2.10-i386/sdl/bin/sdl-config (rev 0)
+++ trunk/lib/solaris-2.10-i386/sdl/bin/sdl-config 2007-12-13 15:35:52 UTC (rev 12871)
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+prefix=/SDLL
+exec_prefix=${prefix}
+exec_prefix_set=no
+libdir=${exec_prefix}/lib
+
+#usage="\
+#Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs]"
+usage="\
+Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
+
+if test $# -eq 0; then
+ echo "${usage}" 1>&2
+ exit 1
+fi
+
+while test $# -gt 0; do
+ case "$1" in
+ -*=*) optarg=`echo "$1" | LC_ALL="C" sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg= ;;
+ esac
+
+ case $1 in
+ --prefix=*)
+ prefix=$optarg
+ if test $exec_prefix_set = no ; then
+ exec_prefix=$optarg
+ fi
+ ;;
+ --prefix)
+ echo $prefix
+ ;;
+ --exec-prefix=*)
+ exec_prefix=$optarg
+ exec_prefix_set=yes
+ ;;
+ --exec-prefix)
+ echo $exec_prefix
+ ;;
+ --version)
+ echo 1.2.12
+ ;;
+ --cflags)
+ echo -I${prefix}/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
+ ;;
+ --libs)
+ echo -L${exec_prefix}/lib -R${libdir} -lSDL -lpthread -lposix4
+ ;;
+ --static-libs)
+# --libs|--static-libs)
+ echo -L${exec_prefix}/lib -R${libdir} -lSDL -lpthread -lposix4
+ ;;
+ *)
+ echo "${usage}" 1>&2
+ exit 1
+ ;;
+ esac
+ shift
+done
Property changes on: trunk/lib/solaris-2.10-i386/sdl/bin/sdl-config
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL.h
===================================================================
--- trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL.h (rev 0)
+++ trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL.h 2007-12-13 15:35:52 UTC (rev 12871)
@@ -0,0 +1,94 @@
+/*
+ SDL - Simple DirectMedia Layer
+ Copyright (C) 1997-2006 Sam Lantinga
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ Sam Lantinga
+ slouken at libsdl.org
+*/
+
+/* Main include header for the SDL library */
+
+#ifndef _SDL_H
+#define _SDL_H
+
+#include "SDL_main.h"
+#include "SDL_stdinc.h"
+#include "SDL_audio.h"
+#include "SDL_cdrom.h"
+#include "SDL_cpuinfo.h"
+#include "SDL_endian.h"
+#include "SDL_error.h"
+#include "SDL_events.h"
+#include "SDL_loadso.h"
+#include "SDL_mutex.h"
+#include "SDL_rwops.h"
+#include "SDL_thread.h"
+#include "SDL_timer.h"
+#include "SDL_video.h"
+#include "SDL_version.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* As of version 0.5, SDL is loaded dynamically into the application */
+
+/* These are the flags which may be passed to SDL_Init() -- you should
+ specify the subsystems which you will be using in your application.
+*/
+#define SDL_INIT_TIMER 0x00000001
+#define SDL_INIT_AUDIO 0x00000010
+#define SDL_INIT_VIDEO 0x00000020
+#define SDL_INIT_CDROM 0x00000100
+#define SDL_INIT_JOYSTICK 0x00000200
+#define SDL_INIT_NOPARACHUTE 0x00100000 /* Don't catch fatal signals */
+#define SDL_INIT_EVENTTHREAD 0x01000000 /* Not supported on all OS's */
+#define SDL_INIT_EVERYTHING 0x0000FFFF
+
+/* This function loads the SDL dynamically linked library and initializes
+ * the subsystems specified by 'flags' (and those satisfying dependencies)
+ * Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup
+ * signal handlers for some commonly ignored fatal signals (like SIGSEGV)
+ */
+extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
+
+/* This function initializes specific SDL subsystems */
+extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags);
+
+/* This function cleans up specific SDL subsystems */
+extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags);
+
+/* This function returns mask of the specified subsystems which have
+ been initialized.
+ If 'flags' is 0, it returns a mask of all initialized subsystems.
+*/
+extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags);
+
+/* This function cleans up all initialized subsystems and unloads the
+ * dynamically linked library. You should call it upon all exit conditions.
+ */
+extern DECLSPEC void SDLCALL SDL_Quit(void);
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* _SDL_H */
Added: trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_active.h
===================================================================
--- trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_active.h (rev 0)
+++ trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_active.h 2007-12-13 15:35:52 UTC (rev 12871)
@@ -0,0 +1,58 @@
+/*
+ SDL - Simple DirectMedia Layer
+ Copyright (C) 1997-2006 Sam Lantinga
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ Sam Lantinga
+ slouken at libsdl.org
+*/
+
+/* Include file for SDL application focus event handling */
+
+#ifndef _SDL_active_h
+#define _SDL_active_h
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* The available application states */
+#define SDL_APPMOUSEFOCUS 0x01 /* The app has mouse coverage */
+#define SDL_APPINPUTFOCUS 0x02 /* The app has input focus */
+#define SDL_APPACTIVE 0x04 /* The application is active */
+
+/* Function prototypes */
+/*
+ * This function returns the current state of the application, which is a
+ * bitwise combination of SDL_APPMOUSEFOCUS, SDL_APPINPUTFOCUS, and
+ * SDL_APPACTIVE. If SDL_APPACTIVE is set, then the user is able to
+ * see your application, otherwise it has been iconified or disabled.
+ */
+extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* _SDL_active_h */
Added: trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_audio.h
===================================================================
--- trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_audio.h (rev 0)
+++ trunk/lib/solaris-2.10-i386/sdl/include/SDL/SDL_audio.h 2007-12-13 15:35:52 UTC (rev 12871)
@@ -0,0 +1,253 @@
+/*
+ SDL - Simple DirectMedia Layer
+ Copyright (C) 1997-2006 Sam Lantinga
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ Sam Lantinga
+ slouken at libsdl.org
+*/
+
+/* Access to the raw audio mixing buffer for the SDL library */
+
+#ifndef _SDL_audio_h
+#define _SDL_audio_h
+
+#include "SDL_stdinc.h"
+#include "SDL_error.h"
+#include "SDL_endian.h"
+#include "SDL_mutex.h"
+#include "SDL_thread.h"
+#include "SDL_rwops.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* The calculated values in this structure are calculated by SDL_OpenAudio() */
+typedef struct SDL_AudioSpec {
+ int freq; /* DSP frequency -- samples per second */
+ Uint16 format; /* Audio data format */
+ Uint8 channels; /* Number of channels: 1 mono, 2 stereo */
+ Uint8 silence; /* Audio buffer silence value (calculated) */
+ Uint16 samples; /* Audio buffer size in samples (power of 2) */
+ Uint16 padding; /* Necessary for some compile environments */
+ Uint32 size; /* Audio buffer size in bytes (calculated) */
+ /* This function is called when the audio device needs more data.
+ 'stream' is a pointer to the audio data buffer
+ 'len' is the length of that buffer in bytes.
+ Once the callback returns, the buffer will no longer be valid.
+ Stereo samples are stored in a LRLRLR ordering.
+ */
+ void (SDLCALL *callback)(void *userdata, Uint8 *stream, int len);
+ void *userdata;
+} SDL_AudioSpec;
+
+/* Audio format flags (defaults to LSB byte order) */
+#define AUDIO_U8 0x0008 /* Unsigned 8-bit samples */
+#define AUDIO_S8 0x8008 /* Signed 8-bit samples */
+#define AUDIO_U16LSB 0x0010 /* Unsigned 16-bit samples */
+#define AUDIO_S16LSB 0x8010 /* Signed 16-bit samples */
+#define AUDIO_U16MSB 0x1010 /* As above, but big-endian byte order */
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list