调整脚本
This commit is contained in:
parent
73c614aa79
commit
108f2623d5
37
build.sh
37
build.sh
|
@ -49,10 +49,7 @@ sed -i "s/release\/${system}\/${arch}\/HGBase/release\/${system}\/${arch}\/${pre
|
|||
cbp2make -targets ${system}_${arch}_Release -in HGBaseTmp.cbp -out makefile
|
||||
make -j6
|
||||
mv ../../../../release/${system}/${arch}/${prefix}Base.so ../../../../release/${system}/${arch}/lib${prefix}Base.so
|
||||
rm -rf ./bin
|
||||
rm -rf ./obj
|
||||
rm -f makefile
|
||||
rm HGBaseTmp.cbp
|
||||
|
||||
|
||||
cd ../HGImgFmt
|
||||
cp HGImgFmt.cbp HGImgFmtTmp.cbp
|
||||
|
@ -61,10 +58,7 @@ sed -i "s/-lHGBase/-l${prefix}Base/g" HGImgFmtTmp.cbp
|
|||
cbp2make -targets ${system}_${arch}_Release -in HGImgFmtTmp.cbp -out makefile
|
||||
make -j6
|
||||
mv ../../../../release/${system}/${arch}/${prefix}ImgFmt.so ../../../../release/${system}/${arch}/lib${prefix}ImgFmt.so
|
||||
rm -rf ./bin
|
||||
rm -rf ./obj
|
||||
rm -f makefile
|
||||
rm HGImgFmtTmp.cbp
|
||||
|
||||
|
||||
cd ../HGImgProc
|
||||
cp HGImgProc.cbp HGImgProcTmp.cbp
|
||||
|
@ -74,18 +68,13 @@ sed -i "s/-lHGImgFmt/-l${prefix}ImgFmt/g" HGImgProcTmp.cbp
|
|||
cbp2make -targets ${system}_${arch}_Release -in HGImgProcTmp.cbp -out makefile
|
||||
make -j6
|
||||
mv ../../../../release/${system}/${arch}/${prefix}ImgProc.so ../../../../release/${system}/${arch}/lib${prefix}ImgProc.so
|
||||
rm -rf ./bin
|
||||
rm -rf ./obj
|
||||
rm -f makefile
|
||||
rm HGImgProcTmp.cbp
|
||||
|
||||
|
||||
if [ "${1}" == "hgweb" ] || [ "${1}" == "hwweb" ] || [ "${1}" == "lscweb" ]; then
|
||||
cd ../HGUpload
|
||||
cbp2make -targets ${system}_${arch}_Release -in HGUpload.cbp -out makefile
|
||||
make -j6
|
||||
rm -rf ./bin
|
||||
rm -rf ./obj
|
||||
rm -f makefile
|
||||
|
||||
|
||||
cd ../HGWebService
|
||||
cp HGWebService.cbp HGWebServiceTmp.cbp
|
||||
|
@ -102,10 +91,7 @@ if [ "${1}" == "hgweb" ] || [ "${1}" == "hwweb" ] || [ "${1}" == "lscweb" ]; the
|
|||
sed -i "s/-lhgdriver/-l${prefix2}driver/g" HGWebServiceTmp.cbp
|
||||
cbp2make -targets ${system}_${arch}_Release -in HGWebServiceTmp.cbp -out makefile
|
||||
make -j6
|
||||
rm -rf ./bin
|
||||
rm -rf ./obj
|
||||
rm -f makefile
|
||||
rm HGWebServiceTmp.cbp
|
||||
|
||||
else #APP
|
||||
cd ../../../build-qt/HGSolution/HGScanner
|
||||
cp HGScanner.pro HGScannerTmp.pro
|
||||
|
@ -131,12 +117,7 @@ else #APP
|
|||
|
||||
qmake -qt=qt5 -makefile HGScannerTmp.pro
|
||||
make -j6
|
||||
rm -f *.o
|
||||
rm -f *.h
|
||||
rm -f *.cpp
|
||||
rm -f .qmake.stash
|
||||
rm -f Makefile
|
||||
rm HGScannerTmp.pro
|
||||
|
||||
|
||||
|
||||
cd ../HGUpgrade
|
||||
|
@ -153,12 +134,6 @@ else #APP
|
|||
|
||||
qmake -qt=qt5 -makefile HGUpgradeTmp.pro
|
||||
make -j6
|
||||
rm -f *.o
|
||||
rm -f *.h
|
||||
rm -f *.cpp
|
||||
rm -f .qmake.stash
|
||||
rm -f Makefile
|
||||
rm HGUpgradeTmp.pro
|
||||
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue