MacOSX/Framework/Pre-Compile.sh: Use pbxcp instead of cp.
[vlc.git] / extras / MacOSX / Framework / Pre-Compile.sh
index 5ff15af..a4c0581 100644 (file)
@@ -17,6 +17,7 @@ if test "${ACTION}" = "build"; then
     target="${TARGET_BUILD_DIR}/${CONTENTS_FOLDER_PATH}"
     target_lib="${target}/${lib}"            # Should we consider using a different well-known folder like shared resources?
     target_modules="${target}/${modules}"    # Should we consider using a different well-known folder like shared resources?
+    target_share="${target}/${share}"    # Should we consider using a different well-known folder like shared resources?
     linked_libs=" "
     
     ##########################
@@ -112,8 +113,11 @@ if test "${ACTION}" = "build"; then
                 ;;
         esac
     done
-    # Build the library folder
+    # Build the share folder
     ##########################
-    install_library "${VLC_BUILD_DIR}/src/.libs/libvlc-control.dylib" ${target_lib} "library"
-    install_library "${VLC_BUILD_DIR}/src/.libs/libvlc.dylib" ${target_lib} "library"
+    # Build the library folder (Same as VLCKit.framework/lib in Makefile)
+    echo "Building share folder..."
+    pbxcp="/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks"
+    $pbxcp ${VLC_BUILD_DIR}/share/luameta ${target_share}
+    $pbxcp ${VLC_BUILD_DIR}/share/luaplaylist ${target_share}
 fi
\ No newline at end of file