Commit 08df2ec1 authored by Felix Paul Kühne's avatar Felix Paul Kühne

extras/ios: add a new flag to compile a limited set of non-scary codecs only

(cherry picked from commit aede137f9aedbfacec351bbbeba13bdb5e210ba1)
parent 7f1c70d5
...@@ -8,6 +8,7 @@ SDK_VERSION=7.0 ...@@ -8,6 +8,7 @@ SDK_VERSION=7.0
SDK_MIN=6.1 SDK_MIN=6.1
SIXTYFOURBIT_SDK_MIN=7.0 SIXTYFOURBIT_SDK_MIN=7.0
ARCH=armv7 ARCH=armv7
SCARY=yes
usage() usage()
{ {
...@@ -20,6 +21,7 @@ OPTIONS ...@@ -20,6 +21,7 @@ OPTIONS
-a <arch> Specify which arch to use (current: ${ARCH}) -a <arch> Specify which arch to use (current: ${ARCH})
-d Enable debug -d Enable debug
-v Enable verbose command-line output -v Enable verbose command-line output
-w Build a limited stack of non-scary libraries only
EOF EOF
} }
...@@ -40,7 +42,7 @@ info() ...@@ -40,7 +42,7 @@ info()
echo "[${blue}info${normal}] $1" echo "[${blue}info${normal}] $1"
} }
while getopts "hvdsk:a:" OPTION while getopts "hvwdsk:a:" OPTION
do do
case $OPTION in case $OPTION in
h) h)
...@@ -56,6 +58,9 @@ do ...@@ -56,6 +58,9 @@ do
d) d)
DEBUG=yes DEBUG=yes
;; ;;
w)
SCARY=no
;;
k) k)
SDK_VERSION=$OPTARG SDK_VERSION=$OPTARG
;; ;;
...@@ -276,6 +281,12 @@ else ...@@ -276,6 +281,12 @@ else
DEBUGFLAG="--disable-debug" DEBUGFLAG="--disable-debug"
fi fi
if [ "$SCARY" = "yes" ]; then
SCARYFLAG="--enable-dvbpsi --enable-avcodec"
else
SCARYFLAG="--disable-dca --disable-dvbpsi --disable-avcodec --disable-avformat --disable-zvbi"
fi
# Run configure only upon changes. # Run configure only upon changes.
if [ "${VLCROOT}/configure" -nt config.log -o \ if [ "${VLCROOT}/configure" -nt config.log -o \
"${THIS_SCRIPT_PATH}" -nt config.log ]; then "${THIS_SCRIPT_PATH}" -nt config.log ]; then
...@@ -285,6 +296,7 @@ ${VLCROOT}/configure \ ...@@ -285,6 +296,7 @@ ${VLCROOT}/configure \
--with-contrib="${VLCROOT}/contrib/${TARGET}-${ARCH}" \ --with-contrib="${VLCROOT}/contrib/${TARGET}-${ARCH}" \
--enable-static \ --enable-static \
${DEBUGFLAG} \ ${DEBUGFLAG} \
${SCARYFLAG} \
--disable-macosx \ --disable-macosx \
--disable-macosx-dialog-provider \ --disable-macosx-dialog-provider \
--disable-macosx-qtkit \ --disable-macosx-qtkit \
...@@ -294,7 +306,6 @@ ${VLCROOT}/configure \ ...@@ -294,7 +306,6 @@ ${VLCROOT}/configure \
--disable-audioqueue \ --disable-audioqueue \
--disable-shared \ --disable-shared \
--enable-macosx-quartztext \ --enable-macosx-quartztext \
--enable-avcodec \
--enable-mkv \ --enable-mkv \
--enable-opus \ --enable-opus \
--disable-sout \ --disable-sout \
...@@ -314,7 +325,6 @@ ${VLCROOT}/configure \ ...@@ -314,7 +325,6 @@ ${VLCROOT}/configure \
--disable-notify \ --disable-notify \
--enable-live555 \ --enable-live555 \
--enable-realrtsp \ --enable-realrtsp \
--enable-dvbpsi \
--enable-swscale \ --enable-swscale \
--disable-projectm \ --disable-projectm \
--enable-libass \ --enable-libass \
...@@ -423,8 +433,37 @@ colorthres ...@@ -423,8 +433,37 @@ colorthres
antiflicker antiflicker
anaglyph anaglyph
remap remap
oldmovie
vhs
demuxdump
fingerprinter
" "
if [ "$SCARY" = "no" ]; then
blacklist="${blacklist}
dts
dvbsub
svcd
hevc
packetizer_mlp
a52
vc1
uleaddvaudio
librar
libvoc
avio
chorus_flanger
smooth
cvdsub
libmod
libdash
libmpgv
dolby_surround
mpeg_audio"
fi
echo ${blacklist}
for i in ${blacklist} for i in ${blacklist}
do do
find ${PREFIX}/lib/vlc/plugins -name *$i* -type f -exec rm '{}' \; find ${PREFIX}/lib/vlc/plugins -name *$i* -type f -exec rm '{}' \;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment