Mercurial > mplayer.hg
changeset 31286:545edc88a102
Split internal and external libmpeg2 support in the build system.
This is done in preparation for future support of external libmpeg2.
author | diego |
---|---|
date | Wed, 09 Jun 2010 12:51:35 +0000 |
parents | 7e2165abf65e |
children | 168e89b341b1 |
files | Makefile configure |
diffstat | 2 files changed, 21 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Wed Jun 09 09:27:29 2010 +0000 +++ b/Makefile Wed Jun 09 12:51:35 2010 +0000 @@ -156,17 +156,17 @@ SRCS_COMMON-$(LIBMAD) += libmpcodecs/ad_libmad.c -SRCS_LIBMPEG2-$(ARCH_ALPHA) += libmpeg2/idct_alpha.c \ +SRCS_COMMON-$(LIBMPEG2) += libmpcodecs/vd_libmpeg2.c +SRCS_LIBMPEG2-INTERNAL-$(ARCH_ALPHA) += libmpeg2/idct_alpha.c \ libmpeg2/motion_comp_alpha.c -SRCS_LIBMPEG2-$(ARCH_ARM) += libmpeg2/motion_comp_arm.c \ +SRCS_LIBMPEG2-INTERNAL-$(ARCH_ARM) += libmpeg2/motion_comp_arm.c \ libmpeg2/motion_comp_arm_s.S -SRCS_LIBMPEG2-$(HAVE_ALTIVEC) += libmpeg2/idct_altivec.c \ +SRCS_LIBMPEG2-INTERNAL-$(HAVE_ALTIVEC) += libmpeg2/idct_altivec.c \ libmpeg2/motion_comp_altivec.c -SRCS_LIBMPEG2-$(HAVE_MMX) += libmpeg2/idct_mmx.c \ +SRCS_LIBMPEG2-INTERNAL-$(HAVE_MMX) += libmpeg2/idct_mmx.c \ libmpeg2/motion_comp_mmx.c -SRCS_LIBMPEG2-$(HAVE_VIS) += libmpeg2/motion_comp_vis.c -SRCS_COMMON-$(LIBMPEG2) += libmpcodecs/vd_libmpeg2.c \ - libmpeg2/alloc.c \ +SRCS_LIBMPEG2-INTERNAL-$(HAVE_VIS) += libmpeg2/motion_comp_vis.c +SRCS_COMMON-$(LIBMPEG2_INTERNAL) += libmpeg2/alloc.c \ libmpeg2/cpu_accel.c\ libmpeg2/cpu_state.c \ libmpeg2/decode.c \ @@ -174,7 +174,7 @@ libmpeg2/idct.c \ libmpeg2/motion_comp.c \ libmpeg2/slice.c \ - $(SRCS_LIBMPEG2-yes) + $(SRCS_LIBMPEG2-INTERNAL-yes) SRCS_COMMON-$(LIBNEMESI) += libmpdemux/demux_nemesi.c \ stream/stream_nemesi.c
--- a/configure Wed Jun 09 09:27:29 2010 +0000 +++ b/configure Wed Jun 09 12:51:35 2010 +0000 @@ -339,7 +339,7 @@ --enable-libdca enable libdca support [autodetect] --disable-mp3lib disable builtin mp3lib [autodetect] --disable-liba52 disable liba52 [autodetect] - --disable-libmpeg2 disable builtin libmpeg2 [autodetect] + --disable-libmpeg2-internal disable builtin libmpeg2 [autodetect] --disable-musepack disable musepack support [autodetect] --disable-libopencore_amrnb disable libopencore_amr narrowband [autodetect] --disable-libopencore_amrwb disable libopencore_amr wideband [autodetect] @@ -634,7 +634,7 @@ _mp3lib=auto _liba52=auto _libdca=auto -_libmpeg2=auto +_libmpeg2_internal=auto _faad=auto _faad_internal=auto _faad_fixed=no @@ -1031,8 +1031,8 @@ --disable-liba52) _liba52=no ;; --enable-libdca) _libdca=yes ;; --disable-libdca) _libdca=no ;; - --enable-libmpeg2) _libmpeg2=yes ;; - --disable-libmpeg2) _libmpeg2=no ;; + --enable-libmpeg2_internal) _libmpeg2_internal=yes ;; + --disable-libmpeg2_internal) _libmpeg2_internal=no ;; --enable-musepack) _musepack=yes ;; --disable-musepack) _musepack=no ;; --enable-faad) _faad=yes ;; @@ -6837,12 +6837,14 @@ echores "$_liba52" echocheck "internal libmpeg2 support" -if test "$_libmpeg2" = auto ; then +if test "$_libmpeg2_internal" = auto ; then _libmpeg2=yes + _libmpeg2_internal=yes if alpha && test cc_vendor=gnu; then case $cc_version in 2*|3.0*|3.1*) # cannot compile MVI instructions - _libmpeg2=no + _libmpeg2_=no + _libmpeg2_internal=no res_comment="broken gcc" ;; esac @@ -6850,10 +6852,12 @@ fi if test "$_libmpeg2" = yes ; then def_libmpeg2='#define CONFIG_LIBMPEG2 1' + def_libmpeg2_internal='#define CONFIG_LIBMPEG2_INTERNAL 1' codecmodules="libmpeg2(internal) $codecmodules" else def_libmpeg2='#undef CONFIG_LIBMPEG2' - nocodecmodules="libmpeg2(internal) $nocodecmodules" + def_libmpeg2_internal='#undef CONFIG_LIBMPEG2_INTERNAL' + nocodecmodules="libmpeg2 $nocodecmodules" fi echores "$_libmpeg2" @@ -8658,6 +8662,7 @@ LIBMENU = $_menu LIBMENU_DVBIN = $_menu_dvbin LIBMPEG2 = $_libmpeg2 +LIBMPEG2_INTERNAL = $_libmpeg2_internal LIBNEMESI = $_nemesi LIBNUT = $_libnut LIBSMBCLIENT = $_smb @@ -9035,6 +9040,7 @@ $def_libdv $def_liblzo $def_libmpeg2 +$def_libmpeg2_internal $def_mad $def_mp3lame $def_mp3lame_preset