فهرست منبع

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

Felix Paul Kühne 8 سال پیش
والد
کامیت
89b9f6496a
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      buildMobileVLCKit.sh

+ 6 - 0
buildMobileVLCKit.sh

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