tar zxvf avro-cpp-1.7.7.tar
cd avro-cpp-1.7.7
patch -p 1 < ../update_file_writer.patch
BOOST_LIBRARYDIR=/Users/jtomson/sandbox/babbage/3rdparty/boost-darwin-cook/prebuilt/lib/ios/ \
BOOST_INCLUDEDIR=/Users/jtomson/sandbox/babbage/3rdparty/boost-darwin-cook/prebuilt/include/ \
cmake -G Xcode
- change
Base SDK
for the project to latest iOS - change
Supported Platforms
to iOS - replace all
Valid Architectures
with$(ARCHS_STANDARD)
- set
Build Active Architectures Only
toNO
- set
Deployment Target
to the base iOS version to support - set
Inline Methods Hidden
andSymbols Hidden by Default
toYES
xcodebuild BITCODE_GENERATION_MODE=bitcode -target avrocpp_s -config RelWithDebInfo -sdk iphoneos
xcodebuild BITCODE_GENERATION_MODE=bitcode -target avrocpp_s -config RelWithDebInfo -sdk iphonesimulator
lipo -create \
RelWithDebInfo-iphoneos/libavrocpp_s.a \
RelWithDebInfo-iphonesimulator/libavrocpp_s.a \
-o libavrocpp.a
mv libavrocpp.a ../prebuilt/ios/libavrocpp.a
rm -rf ../prebuilt/include/*
cp -R api/ ../prebuilt/include
coming soon!