add gui support to config scripts, and fixed some warning.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1992 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2001-09-27 17:40:43 +00:00
parent 51f6ad33e2
commit 2a59fbf120
7 changed files with 21 additions and 24 deletions

View File

@ -18,4 +18,4 @@ typedef struct _txSample
extern int bpRead( char * fname, txSample * bf );
extern int conv24to32( txSample * bf );
#endif
#endif

View File

@ -18,4 +18,4 @@ typedef struct _txSample
extern int bpRead( char * fname, txSample * bf );
extern int conv24to32( txSample * bf );
#endif
#endif

View File

@ -25,4 +25,4 @@
extern int bmpRead( unsigned char * fname,txSample * bF );
#endif
#endif

View File

@ -18,4 +18,4 @@ extern void tgaWriteBuffer( char * fname,unsigned char * Buffer,int sx,int sy,in
extern void tgaWriteTexture( char * filename,txSample * bf );
#endif
#endif

View File

@ -23,6 +23,9 @@ A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 $(ALSA_LIB) $(ESD_LIB)
VO_LIBS = -Llibvo -lvo $(MLIB_LIB) $(X_LIBS)
PARTS = mp3lib libac3 libmpeg2 opendivx libavcodec encore libvo libao2 drivers drivers/syncfb
ifeq ($(GUI),yes)
PARTS += Gui
endif
ifneq ($(W32_LIB),)
PARTS += loader loader/DirectShow
@ -74,8 +77,13 @@ opendivx/libdecore.a:
encore/libencore.a:
$(MAKE) -C encore
Gui/libgui.a:
$(MAKE) -C Gui
MPLAYER_DEP = mplayer.o $(OBJS) $(LOADER_DEP) $(AV_DEP) $(COMMONLIBS)
ifeq ($(GUI),yes)
MPLAYER_DEP += Gui/libgui.a
endif
mplayerwithoutlink: $(MPLAYER_DEP)
@for a in $(PARTS); do $(MAKE) -C $$a all ; done

27
configure vendored
View File

@ -1202,23 +1202,17 @@ for ac_option do
_select='#define HAVE_AUDIO_SELECT'
;;
--enable-gui)
cat <<EOF
You've tried to enable GUI support.
GUI code was just imported to CVS, and we didn't finished integration yet!
It's under heavy development, and it isn't trivial how to compile and run.
Do NOT flood our mailboxes with GUI-related questions and bugreports now!
We're busy with development, but we know the problems you want to report.
Please wait until we announce it on mplayer-users list and News on homepage.
EOF
exit
_gui=yes
;;
--enable-new-gui)
_gui=yes
;;
--enable-streaming)
_streaming=yes
;;
--enable-divx4)
_divx4linux=yes
;;
--disable-css)
_css=no
;;
@ -1325,15 +1319,9 @@ EOF
--disable-divx4)
_divx4linux=no
;;
--enable-divx4)
_divx4linux=yes
;;
--disable-vorbis)
_vorbis=no
;;
--enable-new-gui)
_gui=yes
;;
--with-win32libdir=*)
_win32libdir=`echo $ac_option | cut -d '=' -f 2`
_win32libdirnotify=no
@ -2192,6 +2180,7 @@ HAVE_MLIB=$_mlib
GTKLIB=$_gtklib
GLIBLIB=$_gliblib
GUI_LIBS = $_gui_lib
GUI=$_gui
DEBUG=-DDEBUG
EOF

View File

@ -4,7 +4,7 @@
//static int vo_font_loaded=-1;
font_desc_t* vo_font=NULL;
unsigned char* vo_osd_text="00:00:00";
unsigned char* vo_osd_text=NULL;
int sub_unicode=0;
int sub_utf8=0;