qmake 命令行shadow build

#!/bin/bash

echo $PWD
DIR_PRJ=$PWD

#take string after the first */ form DIR_PRJ
#OLD_NAME="${DIR_PRJ#*/}"

#take string after the last */ form DIR_PRJ,
#that means take the current fold name
OLD_NAME="${DIR_PRJ##*/}"

#take string before the last /* form DIR_PRJ
#that mens take the parent directory of current director
DIR_PARENT="${DIR_PRJ%/*}"

DST_NAME=build-arm-linux
#DST_PRJ=$DIR_PRJ/../$DST_NAME
cd ..
mkdir -p $DST_NAME
cd $DST_NAME
/opt/arm-qt/bin/qmake $DIR_PRJ/mainmenu.pro
/opt/arm-qt/bin/qmake all
make clean -j2
make -j2

posted @ 2022-10-26 13:52  ccc_zdh  阅读(240)  评论(0)    收藏  举报