code_device/twain/build.sh

24 lines
374 B
Bash
Executable File

echo off
clear
origin_dir=$(pwd)
echo origin path is $origin_dir
if [ -f ../../build/twain/Makefile ]; then
echo ""
else
mkdir ../../build
mkdir ../../build/twain
fi
cd ../../build/twain
echo building path is $(pwd)
rm -rf ./*
cmake $origin_dir
make -j4
cd $origin_dir
sudo cp ../../release/kylin/x86_64/libhgtwain.so /usr/local/lib/twain/libhgtwain.so.ds