]> git.sesse.net Git - vlc/commitdiff
VLCKit: Embed the plugin cache for all archs.
authorPierre d'Herbemont <pdherbemont@free.fr>
Mon, 15 Mar 2010 12:04:08 +0000 (13:04 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Mon, 15 Mar 2010 12:29:20 +0000 (13:29 +0100)
projects/macosx/framework/Pre-Compile.sh

index de9da9d52e21a149a5995dd17984e96b561e0bbf..84bad86c196653c781cc2c19af254101cdcc1ade 100644 (file)
@@ -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"