Pārlūkot izejas kodu

修改编译模块

jsonwang 3 gadi atpakaļ
vecāks
revīzija
ea7fb7e055

+ 13 - 1
buildFFmpeg/FFmpeg-iOS-build-script-master/build-ffmpeg.sh

@@ -18,8 +18,20 @@ X264=`pwd`/x264-iOS
 
 #FDK_AAC=`pwd`/../fdk-aac-build-script-for-iOS/fdk-aac-ios
 
-CONFIGURE_FLAGS="--enable-cross-compile --disable-debug --disable-programs \
+CONFIGURE_FLAGS="--enable-cross-compile --disable-debug \
                  --disable-doc --enable-pic"
+                 
+                 #添加FFmpeg配置选项->默认配置
+#--enable-cross-compile: 交叉编译
+#--disable-debug: 禁止使用调试模式
+#--disable-programs:禁用程序(不允许建立命令行程序)
+#--disable-doc:不需要编译文档
+#--enable-pic:允许建立与位置无关代码
+CONFIGURE_FLAGS="--enable-cross-compile --disable-debug --disable-doc --enable-pic"
+#核心库(编解码->最重要的库):avcodec
+CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-avdevice --enable-avcodec --enable-avformat"
+CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-swresample --enable-swscale --disable-postproc"
+CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-avfilter --enable-avutil --enable-avresample "
 
 if [ "$X264" ]
 then