瀏覽代碼

MacOSX/Framework/Pre-Compile.sh: Fix the share folder location.

Pierre d'Herbemont 17 年之前
父節點
當前提交
756577e5e1
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Pre-Compile.sh

+ 2 - 0
Pre-Compile.sh

@@ -14,6 +14,7 @@ if test "${ACTION}" = "build"; then
     vlc_config="${VLC_SRC_DIR}/vlc-config"
     vlc_config="${VLC_SRC_DIR}/vlc-config"
     lib="lib"
     lib="lib"
     modules="modules"
     modules="modules"
+    share="share"
     target="${TARGET_BUILD_DIR}/${CONTENTS_FOLDER_PATH}"
     target="${TARGET_BUILD_DIR}/${CONTENTS_FOLDER_PATH}"
     target_lib="${target}/${lib}"            # Should we consider using a different well-known folder like shared resources?
     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_modules="${target}/${modules}"    # Should we consider using a different well-known folder like shared resources?
@@ -118,6 +119,7 @@ if test "${ACTION}" = "build"; then
     # Build the library folder (Same as VLCKit.framework/lib in Makefile)
     # Build the library folder (Same as VLCKit.framework/lib in Makefile)
     echo "Building share folder..."
     echo "Building share folder..."
     pbxcp="/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks"
     pbxcp="/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks"
+    mkdir -p ${target_share}
     $pbxcp ${VLC_BUILD_DIR}/share/luameta ${target_share}
     $pbxcp ${VLC_BUILD_DIR}/share/luameta ${target_share}
     $pbxcp ${VLC_BUILD_DIR}/share/luaplaylist ${target_share}
     $pbxcp ${VLC_BUILD_DIR}/share/luaplaylist ${target_share}
 fi
 fi