[Android] merge find_modules.sh with compile-libvlc.sh

Thomas Guillem git at videolan.org
Mon Feb 9 15:03:03 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Feb  9 14:36:25 2015 +0100| [dca66db84127e96a6fd79587894f650ed0d8ae82] | committer: Thomas Guillem

merge find_modules.sh with compile-libvlc.sh

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=dca66db84127e96a6fd79587894f650ed0d8ae82
---

 compile-libvlc.sh |   70 +++++++++++++++++++++++++++++++++++++++++++++++++-
 find_modules.sh   |   74 -----------------------------------------------------
 2 files changed, 69 insertions(+), 75 deletions(-)

diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index f8b5d5a..28c29c8 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -155,6 +155,64 @@ VLC_CONFIGURE_ARGS="\
     --disable-schroedinger --disable-dirac \
 "
 
+########################
+# VLC MODULE BLACKLIST #
+########################
+
+VLC_MODULE_BLACKLIST="
+    addons.*
+    stats
+    access_(bd|shm|imem)
+    oldrc
+    real
+    hotkeys
+    gestures
+    sap
+    dynamicoverlay
+    rss
+    ball
+    audiobargraph_[av]
+    clone
+    mosaic
+    osdmenu
+    puzzle
+    mediadirs
+    t140
+    ripple
+    motion
+    sharpen
+    grain
+    posterize
+    mirror
+    wall
+    scene
+    blendbench
+    psychedelic
+    alphamask
+    netsync
+    audioscrobbler
+    motiondetect
+    motionblur
+    export
+    smf
+    podcast
+    bluescreen
+    erase
+    stream_filter_record
+    speex_resampler
+    remoteosd
+    magnify
+    gradient
+    .*tospdif
+    dtstofloat32
+    logger
+    visual
+    fb
+    aout_file
+    yuv
+    .dummy
+"
+
 #########
 # FLAGS #
 #########
@@ -491,7 +549,17 @@ cd $SRC_DIR
 ##################
 
 echo "Generating static module list"
-VLC_MODULES=`./find_modules.sh vlc/$VLC_BUILD_DIR`
+blacklist_regexp=
+for i in ${VLC_MODULE_BLACKLIST}
+do
+    if [ -z "${blacklist_regexp}" ]
+    then
+        blacklist_regexp="${i}"
+    else
+        blacklist_regexp="${blacklist_regexp}|${i}"
+    fi
+done
+VLC_MODULES=`find vlc/$VLC_BUILD_DIR/modules -name 'lib*plugin.a' | grep -vE "lib(${blacklist_regexp})_plugin.a" | tr '\n' ' '`
 
 DEFINITION="";
 BUILTINS="const void *vlc_static_modules[] = {\n";
diff --git a/find_modules.sh b/find_modules.sh
deleted file mode 100755
index 6e70bb8..0000000
--- a/find_modules.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-
-if [ $# != 1 ]
-then
-    echo "Usage: $0 [vlc build dir]"
-    exit 1
-fi
-
-blacklist="
-addons.*
-stats
-access_(bd|shm|imem)
-oldrc
-real
-hotkeys
-gestures
-sap
-dynamicoverlay
-rss
-ball
-audiobargraph_[av]
-clone
-mosaic
-osdmenu
-puzzle
-mediadirs
-t140
-ripple
-motion
-sharpen
-grain
-posterize
-mirror
-wall
-scene
-blendbench
-psychedelic
-alphamask
-netsync
-audioscrobbler
-motiondetect
-motionblur
-export
-smf
-podcast
-bluescreen
-erase
-stream_filter_record
-speex_resampler
-remoteosd
-magnify
-gradient
-.*tospdif
-dtstofloat32
-logger
-visual
-fb
-aout_file
-yuv
-.dummy
-"
-
-regexp=
-for i in ${blacklist}
-do
-    if [ -z "${regexp}" ]
-    then
-        regexp="${i}"
-    else
-        regexp="${regexp}|${i}"
-    fi
-done
-
-find $1/modules -name 'lib*plugin.a' | grep -vE "lib(${regexp})_plugin.a" | tr '\n' ' '



More information about the Android mailing list