mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
Streamline GUI build.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19057 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4e3bf50988
commit
7e18214f7d
@ -2,9 +2,9 @@ include ../config.mak
|
|||||||
|
|
||||||
LIBNAME = libgui.a
|
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)
|
ifeq ($(TARGET_WIN32),yes)
|
||||||
SRCS = win32/dialogs.c \
|
SRCS = win32/dialogs.c \
|
||||||
|
3
Makefile
3
Makefile
@ -255,7 +255,7 @@ COMMON_LIBS += $(FREETYPE_LIB)
|
|||||||
endif
|
endif
|
||||||
ifeq ($(GUI),yes)
|
ifeq ($(GUI),yes)
|
||||||
COMMON_DEPS += Gui/libgui.a
|
COMMON_DEPS += Gui/libgui.a
|
||||||
GUI_LIBS = Gui/libgui.a
|
GUI_LIBS = Gui/libgui.a $(GTK_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.SUFFIXES: .cc .c .o
|
.SUFFIXES: .cc .c .o
|
||||||
@ -377,7 +377,6 @@ LIBS_MPLAYER = libvo/libvo.a \
|
|||||||
$(VIDIX_LIBS) \
|
$(VIDIX_LIBS) \
|
||||||
$(GUI_LIBS) \
|
$(GUI_LIBS) \
|
||||||
$(COMMON_LIBS) \
|
$(COMMON_LIBS) \
|
||||||
$(GTK_LIBS) \
|
|
||||||
$(VO_LIBS) \
|
$(VO_LIBS) \
|
||||||
$(AO_LIBS) \
|
$(AO_LIBS) \
|
||||||
$(EXTRA_LIB)\
|
$(EXTRA_LIB)\
|
||||||
|
41
configure
vendored
41
configure
vendored
@ -331,6 +331,7 @@ Video output:
|
|||||||
--enable-vm build with XF86VidMode support for X11 [autodetect]
|
--enable-vm build with XF86VidMode support for X11 [autodetect]
|
||||||
--enable-xinerama build with Xinerama support for X11 [autodetect]
|
--enable-xinerama build with Xinerama support for X11 [autodetect]
|
||||||
--enable-x11 build with X11 render support [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-fbdev build with FBDev render support [autodetect]
|
||||||
--enable-mlib build with mediaLib support (Solaris only) [disable]
|
--enable-mlib build with mediaLib support (Solaris only) [disable]
|
||||||
--enable-3dfx build with obsolete /dev/3dfx support [disable]
|
--enable-3dfx build with obsolete /dev/3dfx support [disable]
|
||||||
@ -1573,6 +1574,7 @@ _libpostproc_so=auto
|
|||||||
_libfame=auto
|
_libfame=auto
|
||||||
_mencoder=yes
|
_mencoder=yes
|
||||||
_x11=auto
|
_x11=auto
|
||||||
|
_xshape=auto
|
||||||
_dga=auto # 1 2 no auto
|
_dga=auto # 1 2 no auto
|
||||||
_xv=auto
|
_xv=auto
|
||||||
_xvmc=no #auto when complete
|
_xvmc=no #auto when complete
|
||||||
@ -1738,6 +1740,8 @@ for ac_option do
|
|||||||
--disable-dynamic-plugins) _dynamic_plugins=no ;;
|
--disable-dynamic-plugins) _dynamic_plugins=no ;;
|
||||||
--enable-x11) _x11=yes ;;
|
--enable-x11) _x11=yes ;;
|
||||||
--disable-x11) _x11=no ;;
|
--disable-x11) _x11=no ;;
|
||||||
|
--enable-xshape) _xshape=yes ;;
|
||||||
|
--disable-xshape) _xshape=no ;;
|
||||||
--enable-xv) _xv=yes ;;
|
--enable-xv) _xv=yes ;;
|
||||||
--disable-xv) _xv=no ;;
|
--disable-xv) _xv=no ;;
|
||||||
--enable-xvmc) _xvmc=yes ;;
|
--enable-xvmc) _xvmc=yes ;;
|
||||||
@ -7008,19 +7012,20 @@ else
|
|||||||
fi
|
fi
|
||||||
echores "$_gethostbyname2"
|
echores "$_gethostbyname2"
|
||||||
|
|
||||||
|
|
||||||
# --------------- GUI specific tests begin -------------------
|
# --------------- GUI specific tests begin -------------------
|
||||||
echocheck "GUI"
|
echocheck "GUI"
|
||||||
echo "$_gui"
|
echo "$_gui"
|
||||||
if test "$_gui" = yes ; then
|
if test "$_gui" = yes ; then
|
||||||
|
|
||||||
# Required libraries
|
# 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
|
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"
|
echocheck "XShape extension"
|
||||||
_xshape=no
|
if test "$_xshape" = auto ; then
|
||||||
if test "$_x11" = yes ; then
|
_xshape=no
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
@ -7065,13 +7070,11 @@ if test "$_gtk1" = no ; then
|
|||||||
if pkg-config glib-2.0 --exists ; then
|
if pkg-config glib-2.0 --exists ; then
|
||||||
echocheck "glib version"
|
echocheck "glib version"
|
||||||
_glib=`pkg-config glib-2.0 --modversion 2>/dev/null`
|
_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`
|
_ld_glib=`pkg-config glib-2.0 --libs 2>/dev/null`
|
||||||
echores "$_glib"
|
echores "$_glib"
|
||||||
|
|
||||||
_def_gui='#define HAVE_NEW_GUI 1'
|
_def_gui='#define HAVE_NEW_GUI 1'
|
||||||
_def_gtk2_gui='#define HAVE_GTK2_GUI 1'
|
_def_gtk2_gui='#define HAVE_GTK2_GUI 1'
|
||||||
_ld_gui='$(GTKLIB) $(GLIBLIB)'
|
|
||||||
else
|
else
|
||||||
_gtk1=yes
|
_gtk1=yes
|
||||||
echo "GLIB-2 devel packages were not found, trying GTK 1.2"
|
echo "GLIB-2 devel packages were not found, trying GTK 1.2"
|
||||||
@ -7107,32 +7110,30 @@ if test "$_gtk1" = yes ; then
|
|||||||
elif ( glib12-config --version ) >/dev/null 2>&1 ; then
|
elif ( glib12-config --version ) >/dev/null 2>&1 ; then
|
||||||
_glibconfig="glib12-config"
|
_glibconfig="glib12-config"
|
||||||
else
|
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
|
||||||
fi
|
fi
|
||||||
_glib=`$_glibconfig --version 2>&1`
|
_glib=`$_glibconfig --version 2>&1`
|
||||||
_inc_glib=`$_glibconfig --cflags 2>&1`
|
|
||||||
_ld_glib=`$_glibconfig --libs 2>&1`
|
_ld_glib=`$_glibconfig --libs 2>&1`
|
||||||
echores "$_glib (using $_glibconfig)"
|
echores "$_glib (using $_glibconfig)"
|
||||||
|
|
||||||
_def_gui='#define HAVE_NEW_GUI 1'
|
_def_gui='#define HAVE_NEW_GUI 1'
|
||||||
_def_gtk2_gui='#undef HAVE_GTK2_GUI'
|
_def_gtk2_gui='#undef HAVE_GTK2_GUI'
|
||||||
_ld_gui='$(GTKLIB) $(GLIBLIB)'
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else #if not win32
|
||||||
_ld_win32libs="-lcomdlg32 -lcomctl32 -lshell32 -lkernel32 $_ld_win32libs"
|
_ld_win32libs="-lcomdlg32 -lcomctl32 -lshell32 -lkernel32 $_ld_win32libs"
|
||||||
_def_gui='#define HAVE_NEW_GUI 1'
|
_def_gui='#define HAVE_NEW_GUI 1'
|
||||||
_def_gtk2_gui='#undef HAVE_GTK2_GUI'
|
_def_gtk2_gui='#undef HAVE_GTK2_GUI'
|
||||||
_ld_gui='$(GTKLIB) $(GLIBLIB)'
|
fi #if not win32
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
else #if test "$_gui"
|
||||||
_def_gui='#undef HAVE_NEW_GUI'
|
_def_gui='#undef HAVE_NEW_GUI'
|
||||||
_def_gtk2_gui='#undef HAVE_GTK2_GUI'
|
_def_gtk2_gui='#undef HAVE_GTK2_GUI'
|
||||||
fi
|
fi #if test "$_gui"
|
||||||
# --------------- GUI specific tests end -------------------
|
# --------------- GUI specific tests end -------------------
|
||||||
|
|
||||||
|
|
||||||
if test "$_charset" = "noconv" ; then
|
if test "$_charset" = "noconv" ; then
|
||||||
_charset=""
|
_charset=""
|
||||||
elif test -z "$_charset" ; then
|
elif test -z "$_charset" ; then
|
||||||
@ -7633,15 +7634,11 @@ TARGET_BUILTIN_VECTOR = $_builtin_vector
|
|||||||
TARGET_BUILTIN_3DNOW = $_mm3dnow
|
TARGET_BUILTIN_3DNOW = $_mm3dnow
|
||||||
|
|
||||||
# --- GUI stuff ---
|
# --- GUI stuff ---
|
||||||
GTKINC = $_inc_gtk
|
GTK_INC = $_inc_gtk
|
||||||
GTKLIB = $_ld_static $_ld_gtk
|
GTKLIB = $_ld_gtk
|
||||||
GTKLIBS = $_ld_gtk
|
GLIBLIB = $_ld_glib
|
||||||
GLIBLIB = $_ld_static $_ld_glib
|
GTK_LIBS = $_ld_static \$(GTKLIB) \$(GLIBLIB)
|
||||||
GLIBLIBS = $_ld_glib
|
|
||||||
GLIBINC = $_inc_glib
|
|
||||||
GTK_LIBS = $_ld_static $_ld_gui
|
|
||||||
GUI = $_gui
|
GUI = $_gui
|
||||||
DEBUG = -DDEBUG
|
|
||||||
|
|
||||||
# --- libvo stuff ---
|
# --- libvo stuff ---
|
||||||
VO_SRCS = $_vosrc
|
VO_SRCS = $_vosrc
|
||||||
|
Loading…
Reference in New Issue
Block a user