mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Shared objects support
Originally committed as revision 195 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0fd944424b
commit
0319c531fb
13
configure
vendored
13
configure
vendored
@ -58,9 +58,11 @@ echo " --disable-mmx disable mmx usage"
|
|||||||
echo " --enable-gprof enable profiling with gprof [$gprof]"
|
echo " --enable-gprof enable profiling with gprof [$gprof]"
|
||||||
echo " --disable-grab disable audio/video grabbing code"
|
echo " --disable-grab disable audio/video grabbing code"
|
||||||
echo " --enable-win32 enable win32 cross compile"
|
echo " --enable-win32 enable win32 cross compile"
|
||||||
|
echo " --enable-shared build shared libraries [default=no]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
lshared=no
|
||||||
for opt do
|
for opt do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
--prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
|
--prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
|
||||||
@ -77,6 +79,8 @@ for opt do
|
|||||||
;;
|
;;
|
||||||
--enable-win32) win32="yes"
|
--enable-win32) win32="yes"
|
||||||
;;
|
;;
|
||||||
|
--enable-shared=*) lshared=`echo $opt | cut -d '=' -f 2`
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -150,7 +154,14 @@ if [ "$gprof" = "yes" ] ; then
|
|||||||
echo "TARGET_GPROF=yes" >> config.mak
|
echo "TARGET_GPROF=yes" >> config.mak
|
||||||
echo "#define HAVE_GPROF 1" >> config.h
|
echo "#define HAVE_GPROF 1" >> config.h
|
||||||
fi
|
fi
|
||||||
|
if [ "$lshared" = "yes" ] ; then
|
||||||
|
echo "BUILD_SHARED=yes" >> config.mak
|
||||||
|
else
|
||||||
|
echo "BUILD_SHARED=no" >> config.mak
|
||||||
|
fi
|
||||||
|
echo -n "VERSION=" >>config.mak
|
||||||
|
head VERSION >>config.mak
|
||||||
|
echo "" >>config.mak
|
||||||
# if you do not want to use encoders, disable that.
|
# if you do not want to use encoders, disable that.
|
||||||
echo "#define CONFIG_ENCODERS 1" >> config.h
|
echo "#define CONFIG_ENCODERS 1" >> config.h
|
||||||
echo "CONFIG_ENCODERS=yes" >> config.mak
|
echo "CONFIG_ENCODERS=yes" >> config.mak
|
||||||
|
Loading…
x
Reference in New Issue
Block a user