Poco C++ ios 和 android平台编译脚本

#!/bin/bash
#
# Description: poco编译脚本,ios和android
# 
# Created by yangchen on 2013-1-30.
# 
# Important History:
# 
# index	version	 date	 author	 notes
# 0	 1.0.1001	2013/1/30       yangchen	创建文件

###########========ios 平台======#########


./configure --config=iPhone --no-tests --no-samples

make cppunit IPHONE_SDK_VERSION_MIN=3.0 POCO_TARGET_OSARCH=armv7 -s -j4
make IPHONE_SDK_VERSION_MIN=3.0 POCO_TARGET_OSARCH=armv7 -s -j4

./configure --config=iPhoneSimulator --no-tests --no-samples

make cppunit -s -j4
make -s -j4

mkdir -p lib/iOSAll

lipo -create  lib/iPhoneOS/armv7/libCppUnit.a  lib/iPhoneSimulator/i686/libCppUnit.a  lib/iOSAll/libCppUnit.a 
lipo -create  lib/iPhoneOS/armv7/libPocoFoundation.a  lib/iPhoneSimulator/i686/libPocoFoundation.a  lib/iOSAll/libPocoFoundation.a 
lipo -create  lib/iPhoneOS/armv7/libPocoNet.a  lib/iPhoneSimulator/i686/libPocoNet.a  lib/iOSAll/libPocoNet.a 
lipo -create  lib/iPhoneOS/armv7/libCppUnitd.a  lib/iPhoneSimulator/i686/libCppUnitd.a  lib/iOSAll/libCppUnitd.a 
lipo -create  lib/iPhoneOS/armv7/libPocoFoundationd.a  lib/iPhoneSimulator/i686/libPocoFoundationd.a  lib/iOSAll/libPocoFoundationd.a 
lipo -create  lib/iPhoneOS/armv7/libPocoNetd.a  lib/iPhoneSimulator/i686/libPocoNetd.a  lib/iOSAll/libPocoNetd.a 


###########========android 平台======#########
./configure --config=Android --no-samples --no-test --no-fpenvironmentmake -s -j4
make -s -j4 ANDROID_ABI=armeabi-v7a





   

你可能感兴趣的:(Poco C++ ios 和 android平台编译脚本)