assimp/port/iOS
Aliaksandr Kasmachou 924106188e
feat: add option for creating XCFramework and configure minimum iOS target (#5648)
* feat: add option for creating XCFramework and configure minimum iOS target with a build parameter

* style: update indents for iOS bash script

---------

Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
2024-08-29 23:05:32 +02:00
..
IPHONEOS_ARM64E_TOOLCHAIN.cmake added arm64e to iOS build script 2018-12-20 16:50:38 +02:00
IPHONEOS_ARM64_TOOLCHAIN.cmake Norod: Managed to get it past the make file creation phase 2018-06-27 11:39:14 +03:00
IPHONEOS_ARMV6_TOOLCHAIN.cmake Norod: Managed to get it past the make file creation phase 2018-06-27 11:39:14 +03:00
IPHONEOS_ARMV7S_TOOLCHAIN.cmake Norod: Managed to get it past the make file creation phase 2018-06-27 11:39:14 +03:00
IPHONEOS_ARMV7_TOOLCHAIN.cmake Norod: Managed to get it past the make file creation phase 2018-06-27 11:39:14 +03:00
IPHONEOS_I386_TOOLCHAIN.cmake Norod: Managed to get it past the make file creation phase 2018-06-27 11:39:14 +03:00
IPHONEOS_X86_64_TOOLCHAIN.cmake Norod: Managed to get it past the make file creation phase 2018-06-27 11:39:14 +03:00
README.md feat: add option for creating XCFramework and configure minimum iOS target (#5648) 2024-08-29 23:05:32 +02:00
build.sh feat: add option for creating XCFramework and configure minimum iOS target (#5648) 2024-08-29 23:05:32 +02:00

README.md

assimp for iOS

(deployment target 6.0+, 32/64bit)

Requirements

  • cmake
  • pkg-config

Note: all these packages can be installed with brew

Builds assimp libraries for several iOS CPU architectures at once, and outputs a fat binary / XCFramework from the result.

Run the build.sh script from the ./port/iOS/ directory. See ./build.sh --help for information about command line options.

shadeds-Mac:iOS arul$ ./build.sh --help
[!] ./build.sh - assimp iOS build script
 - don't build fat library (--no-fat)
 - supported architectures(--archs): armv7, armv7s, arm64, i386, x86_64
 - supported C++ STD libs.(--stdlib): libc++, libstdc++

Example:

cd ./port/iOS/
./build.sh --stdlib=libc++ --archs="arm64 x86_64" --no-fat --min-version="16.0"

Supported architectures/devices:

Simulator CPU Architectures

  • i386
  • x86_64

Device

  • ARMv6 (dropped after iOS 6.0)
  • ARMv7
  • ARMv7-s
  • ARM64

Building with older iOS SDK versions

The script should work out of the box for the iOS 8.x SDKs and probably newer releases as well. If you are using SDK version 7.x or older, you need to specify the exact SDK version inside build.sh, for example:

IOS_SDK_VERSION=7.1

Optimization

By default, no compiler optimizations are specified inside the build script. For an optimized build, add the corresponding flags to the CFLAGS definition inside build.sh.