1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Remove redundant --enable-shared-pp configure option and make the PP code

use the standard --enable-shared option.

Originally committed as revision 4858 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun 2006-01-14 18:07:36 +00:00
parent dd1a74d25d
commit ba64106a39
3 changed files with 6 additions and 15 deletions

13
configure vendored
View File

@ -30,7 +30,6 @@ echo " --enable-a52 enable GPLed A52 support [default=no]"
echo " --enable-a52bin open liba52.so.0 at runtime [default=no]" echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
echo " --enable-dts enable GPLed DTS support [default=no]" echo " --enable-dts enable GPLed DTS support [default=no]"
echo " --enable-pp enable GPLed postprocessing support [default=no]" echo " --enable-pp enable GPLed postprocessing support [default=no]"
echo " --enable-shared-pp use libpostproc.so [default=no]"
echo " --enable-shared build shared libraries [default=no]" echo " --enable-shared build shared libraries [default=no]"
echo " --enable-amr_nb enable amr_nb float audio codec" echo " --enable-amr_nb enable amr_nb float audio codec"
echo " --enable-amr_nb-fixed use fixed point for amr-nb codec" echo " --enable-amr_nb-fixed use fixed point for amr-nb codec"
@ -201,7 +200,6 @@ a52="no"
a52bin="no" a52bin="no"
dts="no" dts="no"
pp="no" pp="no"
shared_pp="no"
mingw32="no" mingw32="no"
cygwin="no" cygwin="no"
os2="no" os2="no"
@ -504,8 +502,6 @@ for opt do
;; ;;
--enable-pp) pp="yes" --enable-pp) pp="yes"
;; ;;
--enable-shared-pp) pp="yes"; shared_pp="yes"
;;
--enable-libgsm) libgsm="yes" --enable-libgsm) libgsm="yes"
extralibs="$extralibs -lgsm" extralibs="$extralibs -lgsm"
;; ;;
@ -621,7 +617,7 @@ if test "$vorbis" = "yes" ; then
fi fi
if test "$gpl" != "yes"; then if test "$gpl" != "yes"; then
if test "$pp" != "no" -o "$shared_pp" != "no"; then if test "$pp" != "no"; then
echo "The Postprocessing code is under GPL and --enable-gpl is not specified." echo "The Postprocessing code is under GPL and --enable-gpl is not specified."
fail="yes" fail="yes"
fi fi
@ -1290,7 +1286,7 @@ echo "pp support $pp"
echo "debug symbols $debug" echo "debug symbols $debug"
echo "strip symbols $dostrip" echo "strip symbols $dostrip"
echo "optimize $optimize" echo "optimize $optimize"
echo "shared pp $shared_pp" echo "shared $shared"
echo "video hooking $vhook" echo "video hooking $vhook"
echo "SDL support $sdl" echo "SDL support $sdl"
if test $sdl_too_old = "yes"; then if test $sdl_too_old = "yes"; then
@ -1560,11 +1556,6 @@ fi
if test "$pp" = "yes" ; then if test "$pp" = "yes" ; then
echo "#define CONFIG_PP 1" >> $TMPH echo "#define CONFIG_PP 1" >> $TMPH
echo "CONFIG_PP=yes" >> config.mak echo "CONFIG_PP=yes" >> config.mak
if test "$shared_pp" = "yes" ; then
echo "#define SHARED_PP 1" >> $TMPH
echo "SHARED_PP=yes" >> config.mak
fi
fi fi
# MPEG audio high precision mode # MPEG audio high precision mode

View File

@ -290,7 +290,7 @@ OBJS+= x264.o
endif endif
ifeq ($(CONFIG_PP),yes) ifeq ($(CONFIG_PP),yes)
ifeq ($(SHARED_PP),yes) ifeq ($(BUILD_SHARED),yes)
EXTRALIBS += -Llibpostproc -lpostproc$(BUILDSUF) EXTRALIBS += -Llibpostproc -lpostproc$(BUILDSUF)
else else
# LIBS += libpostproc/libpostproc.a ... should be fixed # LIBS += libpostproc/libpostproc.a ... should be fixed

View File

@ -4,7 +4,7 @@ include ../../config.mak
VPATH=$(SRC_PATH)/libavcodec/libpostproc VPATH=$(SRC_PATH)/libavcodec/libpostproc
NAME=postproc NAME=postproc
ifeq ($(SHARED_PP),yes) ifeq ($(BUILD_SHARED),yes)
LIBVERSION=$(SPPVERSION) LIBVERSION=$(SPPVERSION)
LIBMAJOR=$(SPPMAJOR) LIBMAJOR=$(SPPMAJOR)
endif endif
@ -35,7 +35,7 @@ dep: depend
depend: depend:
$(CC) -MM $(CFLAGS) postprocess.c 1>.depend $(CC) -MM $(CFLAGS) postprocess.c 1>.depend
ifeq ($(SHARED_PP),yes) ifeq ($(BUILD_SHARED),yes)
postprocess_pic.o: postprocess.c postprocess_pic.o: postprocess.c
$(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $< $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
@ -49,7 +49,7 @@ $(LIB): $(OBJS)
$(RANLIB) $@ $(RANLIB) $@
install: all install: all
ifeq ($(SHARED_PP),yes) ifeq ($(BUILD_SHARED),yes)
ifeq ($(CONFIG_WIN32),yes) ifeq ($(CONFIG_WIN32),yes)
install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)" install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
else else