]> git.sesse.net Git - vlc/commitdiff
macosx: Use $suffix in Pre-Compile.sh, and install as requested by funman.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 15 Apr 2008 20:43:39 +0000 (22:43 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 15 Apr 2008 20:44:36 +0000 (22:44 +0200)
projects/macosx/framework/Pre-Compile.sh

index 15c33699bc94cb51c7885f8ec72d1ee8cf411b73..fe503244c8148e11a56af1ddd5df8d5f422a7d97 100644 (file)
@@ -92,17 +92,18 @@ if test "${ACTION}" = "build"; then
     if [ "$FULL_PRODUCT_NAME" = "VLC-release.app" ] ; then
         prefix=".libs/"
         install_library "${VLC_BUILD_DIR}/src/${prefix}vlc" "${target}" "bin" "@loader_path/lib"
-        mv ${target}/vlc ${target}/VLC
-        chmod +x ${target}/VLC
+        install ${target}/vlc ${target}/VLC
+        suffix="dylib"
     else
         prefix=""
+        suffix="so"
     fi
 
     ##########################
     # Build the modules folder (Same as VLCKit.framework/modules in Makefile)
     echo "Building modules folder..."
     # Figure out what modules are available to install
-    for module in `find ${VLC_BUILD_DIR}/modules -name *.so` ; do
+    for module in `find ${VLC_BUILD_DIR}/modules -name *.${suffix}` ; do
         # Check to see that the reported module actually exists
         if test -n ${module}; then
             install_library ${module} ${target_modules} "module"