Browse Source

MVK: correctly propagate BITCODE_GENERATION_MODE to Xcode if needed (closes #17)

Felix Paul Kühne 8 years ago
parent
commit
89b9f6496a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      buildMobileVLCKit.sh

+ 6 - 0
buildMobileVLCKit.sh

@@ -149,6 +149,11 @@ buildxcodeproj()
         fi
         fi
     fi
     fi
 
 
+    local bitcodeflag=""
+    if [ "$BITCODE" = "yes" ]; then
+        bitcodeflag="BITCODE_GENERATION_MODE=bitcode"
+    fi
+
     local defs="$GCC_PREPROCESSOR_DEFINITIONS"
     local defs="$GCC_PREPROCESSOR_DEFINITIONS"
     if [ "$SCARY" = "no" ]; then
     if [ "$SCARY" = "no" ]; then
         defs="$defs NOSCARYCODECS"
         defs="$defs NOSCARYCODECS"
@@ -160,6 +165,7 @@ buildxcodeproj()
                ARCHS="${architectures}" \
                ARCHS="${architectures}" \
                IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} \
                IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} \
                GCC_PREPROCESSOR_DEFINITIONS="$defs" \
                GCC_PREPROCESSOR_DEFINITIONS="$defs" \
+               ${bitcodeflag} \
                > ${out}
                > ${out}
 }
 }