4 Star 1 Fork 0

Gitee 极速下载/corebitcoin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/oleganza/CoreBitcoin
克隆/下载
build_libraries.sh 3.76 KB
一键复制 编辑 原始数据 按行查看 历史
Oleg Andreev 提交于 2014-02-23 14:35 . header processing in frameworks
#!/bin/sh
# Cleanup to start with a blank slate
rm -rf build
mkdir -p build
xcodebuild clean
# Update all headers to produce up-to-date combined headers.
./update_headers.rb
# Build iOS static libraries for simulator and for devices
xcodebuild -project CoreBitcoin.xcodeproj -target CoreBitcoinIOSlib -configuration Release -sdk iphonesimulator
mv build/libCoreBitcoinIOS.a build/libCoreBitcoinIOS-simulator.a
xcodebuild -project CoreBitcoin.xcodeproj -target CoreBitcoinIOSlib -configuration Release -sdk iphoneos
mv build/libCoreBitcoinIOS.a build/libCoreBitcoinIOS-device.a
# Merge simulator and device libs into one
lipo build/libCoreBitcoinIOS-device.a build/libCoreBitcoinIOS-simulator.a -create -output build/libCoreBitcoinIOS.a
rm build/libCoreBitcoinIOS-simulator.a
rm build/libCoreBitcoinIOS-device.a
# Build the iOS frameworks for simulator and for devices
rm -f build/CoreBitcoinIOS*.framework
xcodebuild -project CoreBitcoin.xcodeproj -target CoreBitcoinIOS -configuration Release -sdk iphonesimulator
mv build/CoreBitcoinIOS.framework build/CoreBitcoinIOS-simulator.framework
xcodebuild -project CoreBitcoin.xcodeproj -target CoreBitcoinIOS -configuration Release -sdk iphoneos
# Merge the libraries inside the frameworks
mv build/CoreBitcoinIOS-simulator.framework/CoreBitcoinIOS build/CoreBitcoinIOS.framework/CoreBitcoinIOS-simulator
mv build/CoreBitcoinIOS.framework/CoreBitcoinIOS build/CoreBitcoinIOS.framework/CoreBitcoinIOS-device
lipo build/CoreBitcoinIOS.framework/CoreBitcoinIOS-simulator build/CoreBitcoinIOS.framework/CoreBitcoinIOS-device \
-create -output build/CoreBitcoinIOS.framework/CoreBitcoinIOS
# Update openssl includes to match framework header search path
./postprocess_openssl_includes_in_framework.rb build/CoreBitcoinIOS.framework
# Delete the intermediate files
rm build/CoreBitcoinIOS.framework/CoreBitcoinIOS-device
rm build/CoreBitcoinIOS.framework/CoreBitcoinIOS-simulator
rm -rf build/CoreBitcoinIOS-simulator.framework
# Build for OS X
xcodebuild -project CoreBitcoin.xcodeproj -target CoreBitcoinOSXlib -configuration Release
xcodebuild -project CoreBitcoin.xcodeproj -target CoreBitcoinOSX -configuration Release
# Update openssl includes to match framework header search path
./postprocess_openssl_includes_in_framework.rb build/CoreBitcoinOSX.framework
# Clean up
rm -rf build/CoreBitcoin.build
# At this point all the libraries and frameworks are built and placed in the ./build
# directory with names ending with -IOS and -OSX indicating their architectures. The
# rest of the script renames them to have the same name without these suffixes.
# If you build your project in a way that you would rather have the names differ, you
# can uncomment the next line and stop the build process here.
#exit
# Moving the result to a separate location
BINARIES_TARGETDIR="binaries"
rm -rf ${BINARIES_TARGETDIR}
mkdir ${BINARIES_TARGETDIR}
mkdir ${BINARIES_TARGETDIR}/OSX
mkdir ${BINARIES_TARGETDIR}/iOS
# Move and rename the frameworks
mv build/CoreBitcoinOSX.framework ${BINARIES_TARGETDIR}/OSX/CoreBitcoin.framework
mv ${BINARIES_TARGETDIR}/OSX/CoreBitcoin.framework/CoreBitcoinOSX ${BINARIES_TARGETDIR}/OSX/CoreBitcoin.framework/CoreBitcoin
mv build/CoreBitcoinIOS.framework ${BINARIES_TARGETDIR}/iOS/CoreBitcoin.framework
mv ${BINARIES_TARGETDIR}/iOS/CoreBitcoin.framework/CoreBitcoinIOS ${BINARIES_TARGETDIR}/iOS/CoreBitcoin.framework/CoreBitcoin
# Move and rename the static libraries
mv build/libCoreBitcoinIOS.a ${BINARIES_TARGETDIR}/iOS/libCoreBitcoin.a
mv build/libCoreBitcoinOSX.a ${BINARIES_TARGETDIR}/OSX/libCoreBitcoin.a
# Move the headers
mv build/include ${BINARIES_TARGETDIR}/include
# Clean up
rm -rf build
# Remove +Tests.h headers from libraries and frameworks.
find ${BINARIES_TARGETDIR} -name '*+Tests.h' -print0 | xargs -0 rm
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/corebitcoin.git
git@gitee.com:mirrors/corebitcoin.git
mirrors
corebitcoin
corebitcoin
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385