amr 编译脚本
来源:互联网 发布:origin怎么保存数据 编辑:程序博客网 时间:2024/06/06 17:46
备份用
转自:http://blog.csdn.net/chaoyuan899/article/details/51722496
#!/bin/shset -xeVERSION="0.1.3"SDKVERSION="10.1"LIBSRCNAME="ios-opencore-amr"CURRENTPATH=`pwd`mkdir -p "${CURRENTPATH}/src"cd "${CURRENTPATH}/"DEVELOPER=`xcode-select -print-path`DEST="${CURRENTPATH}/lib-ios"mkdir -p "${DEST}"ARCHS="armv7 armv7s arm64 i386 x86_64"# ARCHS="armv7"LIBS="libopencore-amrnb.a libopencore-amrwb.a"DEVELOPER=`xcode-select -print-path`for arch in $ARCHS; docase $arch inarm*)IOSV="-miphoneos-version-min=7.0"if [ $arch == "arm64" ]thenIOSV="-miphoneos-version-min=7.0"fiecho "Building for iOS $arch ****************"SDKROOT="$(xcrun --sdk iphoneos --show-sdk-path)"CC="$(xcrun --sdk iphoneos -f clang)"CXX="$(xcrun --sdk iphoneos -f clang++)"CPP="$(xcrun -sdk iphonesimulator -f clang++)"CFLAGS="-isysroot $SDKROOT -arch $arch $IOSV -isystem $SDKROOT/usr/include -fembed-bitcode"CXXFLAGS=$CFLAGSCPPFLAGS=$CFLAGSexport CC CXX CFLAGS CXXFLAGS CPPFLAGS./configure \--host=arm-apple-darwin \--prefix=$DEST \--disable-shared --enable-static;;*)IOSV="-mios-simulator-version-min=7.0"echo "Building for iOS $arch*****************"SDKROOT=`xcodebuild -version -sdk iphonesimulator Path`CC="$(xcrun -sdk iphoneos -f clang)"CXX="$(xcrun -sdk iphonesimulator -f clang++)"CPP="$(xcrun -sdk iphonesimulator -f clang++)"CFLAGS="-isysroot $SDKROOT -arch $arch $IOSV -isystem $SDKROOT/usr/include -fembed-bitcode"CXXFLAGS=$CFLAGSCPPFLAGS=$CFLAGSexport CC CXX CFLAGS CXXFLAGS CPPFLAGS./configure \--prefix=$DEST \--disable-shared;;esacmake > /dev/nullmake installmake cleanfor i in $LIBS; domv $DEST/lib/$i $DEST/lib/$i.$archdonedonefor i in $LIBS; doinput=""for arch in $ARCHS; doinput="$input $DEST/lib/$i.$arch"donelipo -create -output $DEST/lib/$i $inputdone
0 0
- amr 编译脚本
- XCode6 编译opencore-amr
- BREW AMR 编译错误 L6248E
- 编译opencore-amr for iOS
- 编译opencore-amr for iOS
- iOS交叉编译opencore-amr
- 编译opencore-amr源码小记
- ios9设置bitcode AMR编译
- Windows 下编译opencore-amr
- Xcode5下编译amr和speex库
- 3gpp amr 源码 windows 下编译及使用
- 编译opencore-amr for iOS8并支持bitcode
- Ubuntu の 视频处理多面手 FFMPEG+AMR 编译配置教程
- iOS 编译包含 bitcode 的 opencore-amr-iOS 静态库
- 编译脚本
- 编译脚本
- ios与android语音通用方案 编译libopencore-amr xcode4.5/ios6版本
- ios与android语音通用方案 编译libopencore-amr xcode4.5/ios6版本
- ReactNative集成Reduex,下载Demo报错
- CSDN Markdown编辑器语法案例
- eclipse安装Aptana 插件,并设置使之能提示css,js,html,帮助编写代码
- Java原子操作与多线程操作测试一例
- win32 映射模式
- amr 编译脚本
- nginx+ftp实现图片的上传与访问
- 汇编语言学习笔记第二章 寄存器
- 如何用QuickBI制作图表联动的销售报表
- javascript对象
- nginx和ftp图片服务器的搭建记录
- 数据库安全性
- 智能指针 weak_ptr
- C#73课的主要内容