12345678910111213141516171819202122 |
- if [ "$#" -lt 1 ]; then
- echo "没有输入"
- echo "$1"
- exit
- fi
- HOSTQTLIB='/opt/qt/5.10.1/gcc_64/lib'
- RPATH='/home/root/ADS/lib'
- DEVICEQTLIB='/home/yuchuli/tem/qtbase-everywhere-src-5.10.1/lib'
- gccdir='/home/yuchuli/armgcc/surround_os/gcc-linaro-6.3.1/bin/aarch64-linux-gnu-gcc'
- gppdir='/home/yuchuli/armgcc/surround_os/gcc-linaro-6.3.1/bin/aarch64-linux-gnu-g++'
- protoincdir='/home/yuchuli/tem/proto/protobuf-3.0.2/src'
- yamlinc='/home/yuchuli/tem/yaml-cpp/include'
- yamllib='/home/yuchuli/tem/yaml-cpp/build'
- sed -i "s:CC = gcc:CC = ${gccdir}:g" $1
- sed -i "s:CXX = g++:CXX = ${gppdir}:g" $1
- sed -i "s:LINK = g++:LINK = ${gppdir}:g" $1
- sed -i "s:INCPATH =:INCPATH =-I${protoincdir} -I${yamlinc} :g" $1
- sed -i "s:-rpath,${HOSTQTLIB}:-rpath,${RPATH}:g" $1
- sed -i "s:LIBS = :LIBS = -L${DEVICEQTLIB} -L${yamllib} :g" $1
|