mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 17:17:14 +08:00
18 lines
430 B
Bash
Executable File
18 lines
430 B
Bash
Executable File
#!/bin/bash
|
|
USE_FULL_API=TRUE
|
|
# configure
|
|
TARGET_ARCH_ABI=armv8 # for RK3399, set to default arch abi
|
|
#TARGET_ARCH_ABI=armv7hf # for Raspberry Pi 3B
|
|
PADDLE_LITE_DIR=../Paddle-Lite
|
|
THIRD_PARTY_DIR=./third_party
|
|
if [ "x$1" != "x" ]; then
|
|
TARGET_ARCH_ABI=$1
|
|
fi
|
|
|
|
# build
|
|
rm -rf build
|
|
mkdir build
|
|
cd build
|
|
cmake -DPADDLE_LITE_DIR=${PADDLE_LITE_DIR} -DTARGET_ARCH_ABI=${TARGET_ARCH_ABI} -DTHIRD_PARTY_DIR=${THIRD_PARTY_DIR} ..
|
|
make
|