Browse Source

compilation script: fix compiling individual architectures

Felix Paul Kühne 5 years ago
parent
commit
a5aae202fc
1 changed files with 21 additions and 0 deletions
  1. 21 0
      compileAndBuildVLCKit.sh

+ 21 - 0
compileAndBuildVLCKit.sh

@@ -194,6 +194,27 @@ buildMobileKit() {
                 echo "*** Framework ARCH: ${FARCH} is invalid ***"
                 exit 1
             fi
+            if (is_simulator_arch $FARCH);then
+                if [ "$TVOS" = "yes" ]; then
+                    PLATFORM="appletvsimulator"
+                fi
+                if [ "$IOS" = "yes" ]; then
+                    PLATFORM="iphonesimulator"
+                fi
+                if [ "$MACOS" = "yes" ]; then
+                    PLATFORM="macosx"
+                fi
+            else
+                if [ "$TVOS" = "yes" ]; then
+                    PLATFORM="appletvos"
+                fi
+                if [ "$IOS" = "yes" ]; then
+                    PLATFORM="iphoneos"
+                fi
+                if [ "$MACOS" = "yes" ]; then
+                    PLATFORM="macosx"
+                fi
+            fi
 
             buildLibVLC $FARCH "$PLATFORM"
         fi