diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 15:59:08 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 15:59:08 +0100 |
commit | 1f4132d88afabba613d1c1a6da0ff84027078975 (patch) | |
tree | 96563fe7e63950e090f37374826fb3c404ecc758 /src | |
parent | d3e54b627cd7d02d4544148949f29be821d71a1f (diff) | |
download | xine-lib-1f4132d88afabba613d1c1a6da0ff84027078975.tar.gz xine-lib-1f4132d88afabba613d1c1a6da0ff84027078975.tar.bz2 |
Don't use two C files to build the two versions of directfb. Just add -DDIRECTFB_X11 to CFLAGS.
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/Makefile.am | 8 | ||||
-rw-r--r-- | src/video_out/video_out_directfb_fb.c | 25 | ||||
-rw-r--r-- | src/video_out/video_out_directfb_x.c | 25 |
3 files changed, 4 insertions, 54 deletions
diff --git a/src/video_out/Makefile.am b/src/video_out/Makefile.am index 913fed7cd..c2ea443e0 100644 --- a/src/video_out/Makefile.am +++ b/src/video_out/Makefile.am @@ -10,7 +10,7 @@ if ENABLE_MACOSX_VIDEO SUBDIRS += macosx endif -EXTRA_DIST = video_out_directfb.c video_out_directfb_fb.c video_out_directfb_x.c video_out_directx.c video_out_macosx.m +EXTRA_DIST = video_out_directx.c video_out_macosx.m noinst_HEADERS = video_out_syncfb.h yuv2rgb.h x11osd.h xcbosd.h @@ -175,13 +175,13 @@ xineplug_vo_out_fb_la_SOURCES = yuv2rgb.c yuv2rgb_mmx.c yuv2rgb_mlib.c \ xineplug_vo_out_fb_la_LIBADD = $(MLIB_LIBS) $(XINE_LIB) $(PTHREAD_LIBS) $(LTLIBINTL) xineplug_vo_out_fb_la_CFLAGS = $(AM_CFLAGS) $(MLIB_CFLAGS) -xineplug_vo_out_directfb_la_SOURCES = video_out_directfb_fb.c +xineplug_vo_out_directfb_la_SOURCES = video_out_directfb.c xineplug_vo_out_directfb_la_LIBADD = $(XINE_LIB) $(DIRECTFB_LIBS) $(PTHREAD_LIBS) $(LTLIBINTL) xineplug_vo_out_directfb_la_CFLAGS = $(AM_CFLAGS) $(DIRECTFB_CFLAGS) -fno-strict-aliasing -xineplug_vo_out_xdirectfb_la_SOURCES = video_out_directfb_x.c $(X11OSD) +xineplug_vo_out_xdirectfb_la_SOURCES = video_out_directfb.c $(X11OSD) xineplug_vo_out_xdirectfb_la_LIBADD = $(XINE_LIB) $(DIRECTFB_LIBS) $(X_LIBS) $(PTHREAD_LIBS) $(LTLIBINTL) -xineplug_vo_out_xdirectfb_la_CFLAGS = $(AM_CFLAGS) $(DIRECTFB_CFLAGS) -fno-strict-aliasing +xineplug_vo_out_xdirectfb_la_CFLAGS = $(AM_CFLAGS) $(DIRECTFB_CFLAGS) -fno-strict-aliasing -DDIRECTFB_X11 xineplug_vo_out_sdl_la_SOURCES = video_out_sdl.c xineplug_vo_out_sdl_la_LIBADD = $(SDL_LIBS) $(X_LIBS) $(XINE_LIB) $(PTHREAD_LIBS) $(LTLIBINTL) diff --git a/src/video_out/video_out_directfb_fb.c b/src/video_out/video_out_directfb_fb.c deleted file mode 100644 index b904407c3..000000000 --- a/src/video_out/video_out_directfb_fb.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2007 the xine project - * - * This file is part of xine, a free video player. - * - * xine is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * xine 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA - * - * - * DirectFB output plugin (console version wrapper) - */ - -#undef DIRECTFB_X11 -#include "video_out_directfb.c" diff --git a/src/video_out/video_out_directfb_x.c b/src/video_out/video_out_directfb_x.c deleted file mode 100644 index 48f709eae..000000000 --- a/src/video_out/video_out_directfb_x.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2007 the xine project - * - * This file is part of xine, a free video player. - * - * xine is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * xine 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA - * - * - * DirectFB output plugin (X version wrapper) - */ - -#define DIRECTFB_X11 -#include "video_out_directfb.c" |