소스 검색

compilation script: add option to compile the unstable VLCKit

Note that is an advanced option and should not be used unless you know what you are doing
Felix Paul Kühne 11 년 전
부모
커밋
febb63be74
1개의 변경된 파일15개의 추가작업 그리고 2개의 파일을 삭제
  1. 15 2
      compileVLCforiOS.sh

+ 15 - 2
compileVLCforiOS.sh

@@ -11,6 +11,7 @@ VERBOSE=no
 CONFIGURATION="Release"
 NONETWORK=no
 SKIPLIBVLCCOMPILATION=no
+UNSTABLEVLCKIT=no
 
 TESTEDVLCKITHASH=766c3b7fa
 TESTEDMEDIALIBRARYKITHASH=225ab43aa
@@ -19,7 +20,7 @@ TESTEDQUINCYKITHASH=f1d93b96b
 usage()
 {
 cat << EOF
-usage: $0 [-s] [-v] [-k sdk]
+usage: $0 [-s] [-v] [-k sdk] [-d] [-n] [-l] [-u]
 
 OPTIONS
    -k       Specify which sdk to use (see 'xcodebuild -showsdks', current: ${SDK})
@@ -28,6 +29,7 @@ OPTIONS
    -d       Enable Debug
    -n       Skip script steps requiring network interaction
    -l       Skip libvlc compilation
+   -u       Compile unstable version of MobileVLCKit
 EOF
 }
 
@@ -69,7 +71,7 @@ buildxcodeproj()
                IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} > ${out}
 }
 
-while getopts "hvsdnlk:" OPTION
+while getopts "hvsdnluk:" OPTION
 do
      case $OPTION in
          h)
@@ -93,6 +95,9 @@ do
          k)
              SDK=$OPTARG
              ;;
+         u)
+             UNSTABLEVLCKIT=yes
+             ;;
          ?)
              usage
              exit 1
@@ -138,6 +143,7 @@ git pull --rebase
 git reset --hard ${TESTEDMEDIALIBRARYKITHASH}
 cd ..
 fi
+if [ "$UNSTABLEVLCKIT" = "no" ]; then
 if ! [ -e VLCKit ]; then
 git clone git://git.videolan.org/vlc-bindings/VLCKit.git
 cd VLCKit
@@ -150,6 +156,13 @@ git pull --rebase
 git reset --hard ${TESTEDVLCKITHASH}
 cd ..
 fi
+else
+if ! [ -e VLCKit ]; then
+git clone git://git.videolan.org/vlc-bindings/VLCKit.git
+else
+git pull --rebase
+fi
+fi
 if ! [ -e OBSlider ]; then
 git clone git://github.com/ole/OBSlider.git
 else