[vlc-commits] commit: VLCKit: Embed the plugin cache for all archs. (Pierre d'Herbemont )

git at videolan.org git at videolan.org
Mon Mar 15 13:29:51 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Mon Mar 15 13:04:08 2010 +0100| [d1786b248b374353e9466ff32d9e5f8e221ec0f7] | committer: Pierre d'Herbemont 

VLCKit: Embed the plugin cache for all archs.

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

 projects/macosx/framework/Pre-Compile.sh |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/projects/macosx/framework/Pre-Compile.sh b/projects/macosx/framework/Pre-Compile.sh
index de9da9d..84bad86 100644
--- a/projects/macosx/framework/Pre-Compile.sh
+++ b/projects/macosx/framework/Pre-Compile.sh
@@ -237,12 +237,24 @@ for module in `find ${main_build_dir}/modules -path "*dylib.dSYM*" -prune -o -na
     fi
 done
 
+##########################
 # Install the module cache
-cache=`ls ${main_build_dir}/modules/plugins-*.dat | sed -e s:${main_build_dir}/::`
-vlc_install `dirname ${cache}` `basename ${cache}` ${target_plugins} "data"
+if test "$use_archs" = "no"; then
+    cache=`ls ${main_build_dir}/modules/plugins-*.dat | sed -e s:${main_build_dir}/::`
+    vlc_install `dirname ${cache}` `basename ${cache}` ${target_plugins} "data"
+else
+    for arch in $ARCHS; do
+        build="${VLC_BUILD_DIR}/${arch}"
+        cache=`ls ${build}/modules/plugins-*.dat | sed -e s:${build}/::`
+
+        # The cache is arch dependant. Use vlc_install_object directly.
+        vlc_install_object "${cache}" "${target_plugins}" "data"
+    done;
+fi
+
 
-# Build the lib folder
 ##########################
+# Build the lib folder
 
 vlc_install "src/${prefix}" "libvlc.5.dylib" "${target_lib}" "lib"
 vlc_install "src/${prefix}" "libvlccore.4.dylib" "${target_lib}" "lib"



More information about the vlc-commits mailing list