Browse Source

build script: add convienience flag to compile for TV

Felix Paul Kühne 9 years ago
parent
commit
83b5880578
1 changed files with 15 additions and 2 deletions
  1. 15 2
      compileVLCforiOS.sh

+ 15 - 2
compileVLCforiOS.sh

@@ -11,6 +11,7 @@ VERBOSE=no
 CONFIGURATION="Release"
 CONFIGURATION="Release"
 NONETWORK=no
 NONETWORK=no
 SKIPLIBVLCCOMPILATION=no
 SKIPLIBVLCCOMPILATION=no
+TVOS=no
 
 
 TESTEDVLCKITHASH=3f93c1e7
 TESTEDVLCKITHASH=3f93c1e7
 TESTEDMEDIALIBRARYKITHASH=e5ca039f
 TESTEDMEDIALIBRARYKITHASH=e5ca039f
@@ -27,6 +28,7 @@ OPTIONS
    -d       Enable Debug
    -d       Enable Debug
    -n       Skip script steps requiring network interaction
    -n       Skip script steps requiring network interaction
    -l       Skip libvlc compilation
    -l       Skip libvlc compilation
+   -t       Build for TV
 EOF
 EOF
 }
 }
 
 
@@ -71,7 +73,7 @@ buildxcworkspace()
     IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} > ${out}
     IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} > ${out}
 }
 }
 
 
-while getopts "hvsdnluk:" OPTION
+while getopts "hvsdtnluk:" OPTION
 do
 do
      case $OPTION in
      case $OPTION in
          h)
          h)
@@ -95,6 +97,9 @@ do
          k)
          k)
              SDK=$OPTARG
              SDK=$OPTARG
              ;;
              ;;
+         t)
+             TVOS=yes
+             ;;
          ?)
          ?)
              usage
              usage
              exit 1
              exit 1
@@ -204,6 +209,9 @@ fi
 if [ "$SKIPLIBVLCCOMPILATION" = "yes" ]; then
 if [ "$SKIPLIBVLCCOMPILATION" = "yes" ]; then
     args="${args} -l"
     args="${args} -l"
 fi
 fi
+if [ "$TVOS" = "yes" ]; then
+    args="${args} -t"
+fi
 ./buildMobileVLCKit.sh ${args} -k "${SDK}"
 ./buildMobileVLCKit.sh ${args} -k "${SDK}"
 spopd
 spopd
 
 
@@ -214,6 +222,11 @@ info "installing pods"
 pod install
 pod install
 
 
 # Build the VLC for iOS workspace now
 # Build the VLC for iOS workspace now
-buildxcworkspace "VLC for iOS" "VLC for iOS"
+if [ "$TVOS" = "no" ]; then
+    buildxcworkspace "VLC for iOS" "VLC for iOS"
+else
+    buildxcworkspace "VLC for iOS" "VLC for Apple TV"
+fi
+
 
 
 info "Build completed"
 info "Build completed"