Mercurial > mplayer.hg
changeset 19052:6866e768aef8
Streamline GUI build.
author | diego |
---|---|
date | Thu, 13 Jul 2006 03:05:08 +0000 |
parents | 7d1896a52428 |
children | 75327b24e06f |
files | Gui/Makefile Makefile configure |
diffstat | 3 files changed, 25 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/Makefile Thu Jul 13 01:20:14 2006 +0000 +++ b/Gui/Makefile Thu Jul 13 03:05:08 2006 +0000 @@ -2,9 +2,9 @@ LIBNAME = libgui.a -INCDIR = -I. -I.. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) +INCDIR = -I. -I.. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTK_INC) -CFLAGS = $(OPTFLAGS) $(INCDIR) $(DEBUG) +CFLAGS = $(OPTFLAGS) $(INCDIR) -DDEBUG ifeq ($(TARGET_WIN32),yes) SRCS = win32/dialogs.c \
--- a/Makefile Thu Jul 13 01:20:14 2006 +0000 +++ b/Makefile Thu Jul 13 03:05:08 2006 +0000 @@ -255,7 +255,7 @@ endif ifeq ($(GUI),yes) COMMON_DEPS += Gui/libgui.a -GUI_LIBS = Gui/libgui.a +GUI_LIBS = Gui/libgui.a $(GTK_LIBS) endif .SUFFIXES: .cc .c .o @@ -377,7 +377,6 @@ $(VIDIX_LIBS) \ $(GUI_LIBS) \ $(COMMON_LIBS) \ - $(GTK_LIBS) \ $(VO_LIBS) \ $(AO_LIBS) \ $(EXTRA_LIB)\
--- a/configure Thu Jul 13 01:20:14 2006 +0000 +++ b/configure Thu Jul 13 03:05:08 2006 +0000 @@ -331,6 +331,7 @@ --enable-vm build with XF86VidMode support for X11 [autodetect] --enable-xinerama build with Xinerama support for X11 [autodetect] --enable-x11 build with X11 render support [autodetect] + --enable-xshape build with XShape support [autodetect] --enable-fbdev build with FBDev render support [autodetect] --enable-mlib build with mediaLib support (Solaris only) [disable] --enable-3dfx build with obsolete /dev/3dfx support [disable] @@ -1573,6 +1574,7 @@ _libfame=auto _mencoder=yes _x11=auto +_xshape=auto _dga=auto # 1 2 no auto _xv=auto _xvmc=no #auto when complete @@ -1738,6 +1740,8 @@ --disable-dynamic-plugins) _dynamic_plugins=no ;; --enable-x11) _x11=yes ;; --disable-x11) _x11=no ;; + --enable-xshape) _xshape=yes ;; + --disable-xshape) _xshape=no ;; --enable-xv) _xv=yes ;; --disable-xv) _xv=no ;; --enable-xvmc) _xvmc=yes ;; @@ -7008,19 +7012,20 @@ fi echores "$_gethostbyname2" + # --------------- GUI specific tests begin ------------------- echocheck "GUI" echo "$_gui" if test "$_gui" = yes ; then # Required libraries - test "$_png" != yes && die "PNG support required for GUI compilation, please install libpng and libpng-dev packages." + test "$_png" != yes && die "The GUI requires PNG support, please install libpng and libpng-dev packages." if not win32 ; then - test "$_x11" != yes && die "X11 support required for GUI compilation" + test "$_x11" != yes && die "X11 support required for GUI compilation." echocheck "XShape extension" - _xshape=no - if test "$_x11" = yes ; then + if test "$_xshape" = auto ; then + _xshape=no cat > $TMPC << EOF #include <X11/Xlib.h> #include <X11/Xproto.h> @@ -7065,13 +7070,11 @@ if pkg-config glib-2.0 --exists ; then echocheck "glib version" _glib=`pkg-config glib-2.0 --modversion 2>/dev/null` - _inc_glib=`pkg-config glib-2.0 --cflags 2>/dev/null` _ld_glib=`pkg-config glib-2.0 --libs 2>/dev/null` echores "$_glib" _def_gui='#define HAVE_NEW_GUI 1' _def_gtk2_gui='#define HAVE_GTK2_GUI 1' - _ld_gui='$(GTKLIB) $(GLIBLIB)' else _gtk1=yes echo "GLIB-2 devel packages were not found, trying GTK 1.2" @@ -7107,32 +7110,30 @@ elif ( glib12-config --version ) >/dev/null 2>&1 ; then _glibconfig="glib12-config" else - die "The GUI requires GLib devel packages (which were not found)" + die "The GUI requires GLIB devel packages (which were not found)" fi fi _glib=`$_glibconfig --version 2>&1` - _inc_glib=`$_glibconfig --cflags 2>&1` _ld_glib=`$_glibconfig --libs 2>&1` echores "$_glib (using $_glibconfig)" _def_gui='#define HAVE_NEW_GUI 1' _def_gtk2_gui='#undef HAVE_GTK2_GUI' - _ld_gui='$(GTKLIB) $(GLIBLIB)' -fi - -else +fi + +else #if not win32 _ld_win32libs="-lcomdlg32 -lcomctl32 -lshell32 -lkernel32 $_ld_win32libs" _def_gui='#define HAVE_NEW_GUI 1' _def_gtk2_gui='#undef HAVE_GTK2_GUI' - _ld_gui='$(GTKLIB) $(GLIBLIB)' -fi - -else +fi #if not win32 + +else #if test "$_gui" _def_gui='#undef HAVE_NEW_GUI' _def_gtk2_gui='#undef HAVE_GTK2_GUI' -fi +fi #if test "$_gui" # --------------- GUI specific tests end ------------------- + if test "$_charset" = "noconv" ; then _charset="" elif test -z "$_charset" ; then @@ -7633,15 +7634,11 @@ TARGET_BUILTIN_3DNOW = $_mm3dnow # --- GUI stuff --- -GTKINC = $_inc_gtk -GTKLIB = $_ld_static $_ld_gtk -GTKLIBS = $_ld_gtk -GLIBLIB = $_ld_static $_ld_glib -GLIBLIBS = $_ld_glib -GLIBINC = $_inc_glib -GTK_LIBS = $_ld_static $_ld_gui +GTK_INC = $_inc_gtk +GTKLIB = $_ld_gtk +GLIBLIB = $_ld_glib +GTK_LIBS = $_ld_static \$(GTKLIB) \$(GLIBLIB) GUI = $_gui -DEBUG = -DDEBUG # --- libvo stuff --- VO_SRCS = $_vosrc