Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
7a9a6f5b
Commit
7a9a6f5b
authored
Jul 25, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now use sdl-config for SDL.
parent
715fae63
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
350 additions
and
218 deletions
+350
-218
configure
configure
+287
-192
configure.in
configure.in
+34
-19
include/defs.h.in
include/defs.h.in
+9
-3
plugins/sdl/aout_sdl.c
plugins/sdl/aout_sdl.c
+10
-2
plugins/sdl/vout_sdl.c
plugins/sdl/vout_sdl.c
+10
-2
No files found.
configure
View file @
7a9a6f5b
This diff is collapsed.
Click to expand it.
configure.in
View file @
7a9a6f5b
...
...
@@ -457,26 +457,41 @@ AC_ARG_WITH(ggi,
dnl
dnl SDL module
dnl
AC_ARG_WITH(sdl,
[ --with-sdl[=name] SDL support (default enabled)],
[ if test "x$withval" != "xno";
then
PLUGINS="${PLUGINS} sdl";
if test "x$withval" != "xyes";
then
LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -L"$withval"/lib -lSDL"
CFLAGS_SDL="-I"$withval"/include"
else
AC_CHECK_HEADERS(SDL/SDL.h, , [echo "Cannot find SDL headers !"; exit])
LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
fi
fi ])
if test "x$withval" = "x";
then
AC_CHECK_HEADERS(SDL/SDL.h,
[PLUGINS="${PLUGINS} sdl"
LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"])
AC_ARG_ENABLE(sdl,
[ --disable-sdl SDL support (default enabled)])
if test "x$withval" != "xno";
then
AC_DEFINE(HAVE_SDL_SDL_H, 0, Define if you have SDL/SDL.h)
AC_DEFINE(HAVE_SDL11_SDL_H, 0, Define if you have SDL/SDL11.h)
AC_DEFINE(HAVE_SDL12_SDL_H, 0, Define if you have SDL/SDL12.h)
AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
SDL_HEADER="SDL/SDL.h"
if test x${SDL_CONFIG} = xno; then
AC_PATH_PROG(SDL_CONFIG, sdl11-config, no)
SDL_HEADER="SDL11/SDL.h"
fi
if test x${SDL_CONFIG} = xno; then
AC_PATH_PROG(SDL_CONFIG, sdl12-config, no)
SDL_HEADER="SDL12/SDL.h"
fi
if test x${SDL_CONFIG} != xno; then
AC_CHECK_HEADERS($SDL_HEADER, [],
[ echo "The development package for SDL is not installed. Please install it"
echo "and try again."
exit ])
if expr 1.1.7 \> $($SDL_CONFIG --version); then
echo "You need SDL version 1.1.7 or later."
exit
fi
PLUGINS="${PLUGINS} sdl"
CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
elif test "x$withval" = "xyes"; then
echo "I couldn't find the SDL package. You can download libSDL from"
echo "http://www.libsdl.org/."
exit
fi
fi
dnl
dnl Windows DirectX module
...
...
include/defs.h.in
View file @
7a9a6f5b
...
...
@@ -64,9 +64,6 @@
/* Define if you have the <Ph.h> header file. */
#undef HAVE_PH_H
/* Define if you have the <SDL/SDL.h> header file. */
#undef HAVE_SDL_SDL_H
/* Define if you have the <X11/Xlib.h> header file. */
#undef HAVE_X11_XLIB_H
...
...
@@ -196,3 +193,12 @@
/* Define if you want DVD CSS decryption. */
#undef HAVE_CSS
/* Define if you have SDL/SDL.h */
#undef HAVE_SDL_SDL_H
/* Define if you have SDL/SDL11.h */
#undef HAVE_SDL11_SDL_H
/* Define if you have SDL/SDL12.h */
#undef HAVE_SDL12_SDL_H
plugins/sdl/aout_sdl.c
View file @
7a9a6f5b
...
...
@@ -2,7 +2,7 @@
* aout_sdl.c : audio sdl functions library
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: aout_sdl.c,v 1.1
5 2001/07/25 08:41:21 gbazin
Exp $
* $Id: aout_sdl.c,v 1.1
6 2001/07/25 19:14:06 massiot
Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -38,7 +38,15 @@
#include <stdio.h>
/* "intf_msg.h" */
#include <stdlib.h>
/* calloc(), malloc(), free() */
#include <SDL/SDL.h>
/* SDL base include */
#ifdef HAVE_SDL_SDL_H
# include <SDL/SDL.h>
#elif defined(HAVE_SDL11_SDL_H)
# include <SDL11/SDL.h>
#elif defined(HAVE_SDL12_SDL_H)
# include <SDL12/SDL.h>
#else
# error
#endif
#include "config.h"
#include "common.h"
/* boolean_t, byte_t */
...
...
plugins/sdl/vout_sdl.c
View file @
7a9a6f5b
...
...
@@ -2,7 +2,7 @@
* vout_sdl.c: SDL video output display method
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vout_sdl.c,v 1.5
8 2001/07/16 14:33:40
massiot Exp $
* $Id: vout_sdl.c,v 1.5
9 2001/07/25 19:14:06
massiot Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Pierre Baillet <oct@zoy.org>
...
...
@@ -40,7 +40,15 @@
# include <netinet/in.h>
/* BSD: struct in_addr */
#endif
#include <SDL/SDL.h>
#ifdef HAVE_SDL_SDL_H
# include <SDL/SDL.h>
#elif defined(HAVE_SDL11_SDL_H)
# include <SDL11/SDL.h>
#elif defined(HAVE_SDL12_SDL_H)
# include <SDL12/SDL.h>
#else
# error
#endif
#include "config.h"
#include "common.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment