区分app和web的编译
This commit is contained in:
parent
460fb4a6be
commit
da22405412
14
build.sh
14
build.sh
|
@ -1,3 +1,11 @@
|
|||
if [ "$1" != "hg" ] && [ "$1" != "lsc" ] && [ "$1" != "hw" ] && [ "$1" != ""hgweb ] && [ "$1" != ""lscweb ] && [ "$1" != ""hwweb ];
|
||||
then
|
||||
echo "APP脚本参数错误!!!"
|
||||
echo "参数:华高:hg || hgweb 立思层:lsc || lscweb 汉王:hw || hwweb"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
echo "Build QT base components require tool 'cbp2make' ..."
|
||||
if [ -f /usr/bin/cbp2make ]; then
|
||||
echo "--->installed already, nice."
|
||||
|
@ -71,6 +79,8 @@ rm -rf ./obj
|
|||
rm -f makefile
|
||||
rm HGImgProcTmp.cbp
|
||||
|
||||
#WEB
|
||||
if [ "${1}" == "hgweb" ] || [ "${1}" == "hwweb" ] || [ "${1}" == "lscweb" ]; then
|
||||
cd ../HGUpload
|
||||
cbp2make -targets ${system}_${arch}_Release -in HGUpload.cbp -out makefile
|
||||
make -j6
|
||||
|
@ -97,7 +107,7 @@ rm -rf ./bin
|
|||
rm -rf ./obj
|
||||
rm -f makefile
|
||||
rm HGWebServiceTmp.cbp
|
||||
|
||||
else #APP
|
||||
cd ../../../build-qt/HGSolution/HGScanner
|
||||
cp HGScanner.pro HGScannerTmp.pro
|
||||
if [ "${1}" == "hw" ]; then
|
||||
|
@ -151,5 +161,5 @@ rm -f .qmake.stash
|
|||
rm -f Makefile
|
||||
rm HGUpgradeTmp.pro
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue