code_app/build.sh

38 lines
1.2 KiB
Bash
Raw Normal View History

2023-03-31 02:29:39 +00:00
cd ./build2/qt
rm -f Makefile
rm -f HGBase/Makefile
rm -f HGDemo/Makefile
rm -f HGFWUpgrade/Makefile
rm -f HGImgFmt/Makefile
rm -f HGImgProc/Makefile
rm -f HGSaneUI/Makefile
rm -f HGSaneUser/Makefile
rm -f HGScanner/Makefile
rm -f HGScannerLib/Makefile
rm -f HGTwainUser/Makefile
rm -f HGUpgrade/Makefile
rm -f HGUpload/Makefile
rm -f HGVersion/Makefile
rm -f HGWebScan/Makefile
rm -f HGWebService/Makefile
if [ "${1}" == "hw" ] || [ "${1}" == "hwweb" ] || [ "${1}" == "hwso" ]; then
2023-03-31 02:29:39 +00:00
qmake -qt=qt5 -makefile "DEFINES += OEM_HANWANG" HGSolution.pro
elif [ "${1}" == "lsc" ] || [ "${1}" == "lscweb" ] || [ "${1}" == "lscso" ]; then
2023-03-31 02:29:39 +00:00
qmake -qt=qt5 -makefile "DEFINES += OEM_LISICHENG" HGSolution.pro
elif [ "${1}" == "cts" ] || [ "${1}" == "ctsweb" ] || [ "${1}" == "ctsso" ]; then
2023-03-31 02:29:39 +00:00
qmake -qt=qt5 -makefile "DEFINES += OEM_CANGTIAN" HGSolution.pro
elif [ "${1}" == "zj" ] || [ "${1}" == "zjweb" ] || [ "${1}" == "zjso" ]; then
2023-03-31 02:29:39 +00:00
qmake -qt=qt5 -makefile "DEFINES += OEM_ZHONGJING" HGSolution.pro
elif [ "${1}" == "zg" ] || [ "${1}" == "zgweb" ] || [ "${1}" == "zgso" ]; then
2023-03-31 02:29:39 +00:00
qmake -qt=qt5 -makefile "DEFINES += OEM_ZIGUANG" HGSolution.pro
else
qmake -qt=qt5 -makefile HGSolution.pro
fi
make -j8
cd ../../