File size: 804 Bytes
40ed781 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
#!/usr/bin/env bash
# Copyright (c) 2023 Xiaomi Corporation (authors: Fangjun Kuang)
# https://onnxruntime.ai/docs/build/ios.html
num_jobs=3
# Get directory this script is in
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
build_dir=$DIR/build-ios/simulator/os64
#requires python3.6 or higher
python3 \
$DIR/tools/ci_build/build.py \
--build_dir $build_dir \
--config Release \
--use_xcode \
--cmake_extra_defines onnxruntime_BUILD_UNIT_TESTS=OFF \
--cmake_extra_defines onnxruntime_BUILD_SHARED_LIB=OFF \
--cmake_extra_defines CMAKE_INSTALL_PREFIX=$build_dir/install/ \
--ios \
--ios_sysroot iphonesimulator \
--osx_arch x86_64 \
--target install \
--parallel $num_jobs \
--skip_tests \
--build_apple_framework \
--apple_deploy_target 13.0 \
--use_coreml
|