Selaa lähdekoodia

Pre-compile script: fix execution if lua is disabled in libvlc compilation

Felix Paul Kühne 9 vuotta sitten
vanhempi
commit
422f099028
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      Pre-Compile.sh

+ 3 - 2
Pre-Compile.sh

@@ -277,8 +277,9 @@ echo "Building share folder..."
 echo ${VLC_BUILD_DIR}
 pbxcp="cp -R -L"
 mkdir -p ${target_share}
-if test "$use_archs" = "no"; then
+if test -d ${VLC_BUILD_DIR}/share/lua; then
     $pbxcp ${VLC_BUILD_DIR}/share/lua ${target_share}
-else
+fi
+if test -d ${main_build_dir}/share/lua; then
     $pbxcp ${main_build_dir}/share/lua ${target_share}
 fi