Update iOS README.txt, improve iOS build script and toolchain files.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1090 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/3/head
parent
9a4386ad16
commit
7b14ea616e
|
@ -2,7 +2,7 @@ INCLUDE(CMakeForceCompiler)
|
|||
|
||||
SET (CMAKE_CROSSCOMPILING TRUE)
|
||||
SET (CMAKE_SYSTEM_NAME "Darwin")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "arm6")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "armv6")
|
||||
|
||||
SET (SDKVER "5.0")
|
||||
SET (DEVROOT "/Developer/Platforms/iPhoneOS.platform/Developer")
|
||||
|
|
|
@ -2,7 +2,7 @@ INCLUDE(CMakeForceCompiler)
|
|||
|
||||
SET (CMAKE_CROSSCOMPILING TRUE)
|
||||
SET (CMAKE_SYSTEM_NAME "Darwin")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "arm7")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "armv7")
|
||||
|
||||
SET (SDKVER "5.0")
|
||||
SET (DEVROOT "/Developer/Platforms/iPhoneOS.platform/Developer")
|
||||
|
|
|
@ -1 +1,13 @@
|
|||
This folder will contain the iOS build scripts to enable AssImp to be compiled for arm6/7 and i386 as a static library (.a) file for iOS
|
||||
To build for iOS simply execute "./build_ios.sh" from this folder. Currently this script requires the latest SDK (5.0) from Apple in order to build properly. In the future I will add support for specifying the SDK version on the command line.
|
||||
|
||||
Once the build is completed you will see a "ios" folder under /lib. This folder has sub folders for each of the following architectures:
|
||||
|
||||
* armv6 (Older Devices)
|
||||
* armv7 (New Devices)
|
||||
* i386 (Simulator)
|
||||
|
||||
Each of these folders contains a single static library for that architecture. In addition the libassimp.a file in the root of this folder is a combined archive (fat binary) library for all of the above architectures.
|
||||
|
||||
This port is being maintained by Matt Mathias <mmathias01@gmail.com> please contact him with any questions or comments.
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
# BUILD ASSIMP for iOS and iOS Simulator
|
||||
#######################
|
||||
|
||||
PKG_NAME=bullet-2.78
|
||||
BUILD_DIR="./lib/ios"
|
||||
|
||||
IOS_BASE_SDK="5.0"
|
||||
|
@ -69,28 +68,34 @@ create_outdir()
|
|||
lib_arm6=`echo $lib_i386 | sed "s/i386/arm6/g"`
|
||||
lib_arm7=`echo $lib_i386 | sed "s/i386/arm7/g"`
|
||||
lib=`echo $lib_i386 | sed "s/i386\///g"`
|
||||
echo 'Creating fat binary...'
|
||||
lipo -arch armv6 $lib_arm6 -arch armv7 $lib_arm7 -arch i386 $lib_i386 -create -output $lib
|
||||
done
|
||||
echo 'Done! You will find the libaries and fat binary library in /lib/ios'
|
||||
}
|
||||
cd ../../
|
||||
|
||||
rm -rf $BUILD_DIR
|
||||
mkdir -p $BUILD_DIR/arm6 $BUILD_DIR/arm7 $BUILD_DIR/i386
|
||||
|
||||
make clean 2> /dev/null
|
||||
setenv_arm6
|
||||
make assimp -j8
|
||||
cp ./lib/libassimp.a $BUILD_DIR/arm6
|
||||
echo 'Building armv6 library'
|
||||
make clean
|
||||
make assimp -j 8 -l
|
||||
cp ./lib/libassimp.a $BUILD_DIR/arm6/
|
||||
|
||||
make clean 2> /dev/null
|
||||
setenv_arm7
|
||||
make assimp -j8
|
||||
cp ./lib/libassimp.a $BUILD_DIR/arm7
|
||||
echo 'Building armv7 library'
|
||||
make clean
|
||||
make assimp -j 8 -l
|
||||
cp ./lib/libassimp.a $BUILD_DIR/arm7/
|
||||
|
||||
|
||||
make clean 2> /dev/null
|
||||
setenv_i386
|
||||
make assimp -j8
|
||||
cp ./lib/libassimp.a $BUILD_DIR/i386
|
||||
echo 'Building i386 library'
|
||||
make clean
|
||||
make assimp -j 8 -l
|
||||
cp ./lib/libassimp.a $BUILD_DIR/i386/
|
||||
|
||||
rm ./lib/libassimp.a
|
||||
|
||||
|
|
Loading…
Reference in New Issue