Browse Source

Fix compilation for tvOS and document how

Felix Paul Kühne 7 years ago
parent
commit
c0c7fdfc8a
1 changed files with 9 additions and 0 deletions
  1. 9 0
      buildMobileVLCKit.sh

+ 9 - 0
buildMobileVLCKit.sh

@@ -727,12 +727,21 @@ buildMobileKit() {
 
     if [ "$SKIPLIBVLCCOMPILATION" != "yes" ]; then
         if [ "$TVOS" = "yes" ]; then
+            # this variable is read by libvlc's contrib build script
+            # to create the required build environment
+            # for historical raisons, tvOS is a special flavor of iOS
+            # so we need to export both variables
+            export BUILDFORIOS="yes"
             export BUILDFORTVOS="yes"
             info "Building libvlc for tvOS"
         else
             if [ "$MACOS" = "yes" ]; then
+                # macOS is the default build environment for libvlc's contrib
+                # build scripts, so we don't need to export anything
                 info "Building libvlc for macOS"
             else
+                # this variable is read by libvlc's contrib build script
+                # to create the required build environment
                 export BUILDFORIOS="yes"
                 info "Building libvlc for iOS"
             fi