build_ios_armv7_arm64.sh 679 字节
Newer Older
Y
Yan Chunwei 已提交
1
#!/bin/bash
2
set -e
Y
Yan Chunwei 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

build_dir=build.ios.armv7.arm64
mkdir -p ${build_dir}
cd ${build_dir}

GEN_CODE_PATH_PREFIX=lite/gen_code
mkdir -p ./${GEN_CODE_PATH_PREFIX}
touch ./${GEN_CODE_PATH_PREFIX}/__generated_code__.cc

cmake .. \
        -DWITH_GPU=OFF \
        -DWITH_MKL=OFF \
        -DWITH_LITE=ON \
        -DLITE_WITH_CUDA=OFF \
        -DLITE_WITH_X86=OFF \
        -DLITE_WITH_ARM=ON \
19 20 21 22 23 24
        -DWITH_TESTING=OFF \
        -DLITE_WITH_JAVA=OFF \
        -DLITE_SHUTDOWN_LOG=ON \
        -DLITE_ON_TINY_PUBLISH=ON \
        -DLITE_WITH_OPENMP=OFF \
        -DWITH_ARM_DOTPROD=OFF \
Y
Yan Chunwei 已提交
25 26 27
        -DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=ON \
        -DARM_TARGET_OS=ios

28
make -j4
Y
Yan Chunwei 已提交
29 30

cd -