diff --git a/build.sh b/build.sh index af324454..25af73ee 100755 --- a/build.sh +++ b/build.sh @@ -29,6 +29,7 @@ rm -f HGImgFmt/Makefile rm -f HGImgProc/Makefile rm -f HGSaneUI/Makefile rm -f HGSaneUser/Makefile +rm -f HGTwainUI/Makefile rm -f HGOCR/Makefile rm -f HGScanner/Makefile rm -f HGScanner2/Makefile @@ -39,7 +40,7 @@ rm -f HGVersion/Makefile rm -f HGWebScan/Makefile rm -f HGWebService/Makefile -if [ "${1}" == "hwall" ] || [ "${1}" == "hw" ]|| [ "${1}" == "hwweb" ] || [ "${1}" == "hwso" ]; then +if [ "${1}" == "hwall" ] || [ "${1}" == "hw" ]|| [ "${1}" == "hwweb" ] || [ "${1}" == "hwso" ] || [ "${1}" == "hwtwain" ]; then if [ "${1}" == "hwall" ]; then @@ -93,6 +94,13 @@ if [ "${1}" == "hwall" ] || [ "${1}" == "hw" ]|| [ "${1}" == "hwweb" ] || [ "${ make -j8 cd ../ + elif [ "${1}" == "hwtwain" ]; then + + cd HGTwainUI + qmake -qt=qt5 -makefile "DEFINES += OEM_HANWANG" HGTwainUI.pro + make -j8 + cd ../ + else cd HGScannerLib @@ -103,7 +111,7 @@ if [ "${1}" == "hwall" ] || [ "${1}" == "hw" ]|| [ "${1}" == "hwweb" ] || [ "${ fi fi -elif [ "${1}" == "lscall" ] || [ "${1}" == "lsc" ] || [ "${1}" == "lscweb" ] || [ "${1}" == "lscso" ]; then +elif [ "${1}" == "lscall" ] || [ "${1}" == "lsc" ] || [ "${1}" == "lscweb" ] || [ "${1}" == "lscso" ] || [ "${1}" == "lsctwain" ]; then if [ "${1}" == "lscall" ]; then @@ -157,6 +165,13 @@ elif [ "${1}" == "lscall" ] || [ "${1}" == "lsc" ] || [ "${1}" == "lscweb" ] || make -j8 cd ../ + elif [ "${1}" == "lsctwain" ]; then + + cd HGTwainUI + qmake -qt=qt5 -makefile "DEFINES += OEM_LISICHENG" HGTwainUI.pro + make -j8 + cd ../ + else cd HGScannerLib @@ -167,7 +182,7 @@ elif [ "${1}" == "lscall" ] || [ "${1}" == "lsc" ] || [ "${1}" == "lscweb" ] || fi fi -elif [ "${1}" == "ctsall" ] || [ "${1}" == "cts" ] || [ "${1}" == "ctsweb" ] || [ "${1}" == "ctsso" ]; then +elif [ "${1}" == "ctsall" ] || [ "${1}" == "cts" ] || [ "${1}" == "ctsweb" ] || [ "${1}" == "ctsso" ] || [ "${1}" == "ctstwain" ]; then if [ "${1}" == "ctsall" ]; then @@ -221,6 +236,13 @@ elif [ "${1}" == "ctsall" ] || [ "${1}" == "cts" ] || [ "${1}" == "ctsweb" ] || make -j8 cd ../ + elif [ "${1}" == "ctstwain" ]; then + + cd HGTwainUI + qmake -qt=qt5 -makefile "DEFINES += OEM_CANGTIAN" HGTwainUI.pro + make -j8 + cd ../ + else cd HGScannerLib @@ -231,7 +253,7 @@ elif [ "${1}" == "ctsall" ] || [ "${1}" == "cts" ] || [ "${1}" == "ctsweb" ] || fi fi -elif [ "${1}" == "zjall" ] || [ "${1}" == "zj" ] || [ "${1}" == "zjweb" ] || [ "${1}" == "zjso" ]; then +elif [ "${1}" == "zjall" ] || [ "${1}" == "zj" ] || [ "${1}" == "zjweb" ] || [ "${1}" == "zjso" ] || [ "${1}" == "zjtwain" ]; then if [ "${1}" == "zjall" ]; then @@ -285,6 +307,13 @@ elif [ "${1}" == "zjall" ] || [ "${1}" == "zj" ] || [ "${1}" == "zjweb" ] || [ " make -j8 cd ../ + elif [ "${1}" == "zjtwain" ]; then + + cd HGTwainUI + qmake -qt=qt5 -makefile "DEFINES += OEM_ZHONGJING" HGTwainUI.pro + make -j8 + cd ../ + else cd HGScannerLib @@ -295,7 +324,7 @@ elif [ "${1}" == "zjall" ] || [ "${1}" == "zj" ] || [ "${1}" == "zjweb" ] || [ " fi fi -elif [ "${1}" == "zgall" ] || [ "${1}" == "zg" ] || [ "${1}" == "zgweb" ] || [ "${1}" == "zgso" ]; then +elif [ "${1}" == "zgall" ] || [ "${1}" == "zg" ] || [ "${1}" == "zgweb" ] || [ "${1}" == "zgso" ] || [ "${1}" == "zgtwain" ]; then if [ "${1}" == "zgall" ]; then @@ -349,6 +378,13 @@ elif [ "${1}" == "zgall" ] || [ "${1}" == "zg" ] || [ "${1}" == "zgweb" ] || [ " make -j8 cd ../ + elif [ "${1}" == "zgtwain" ]; then + + cd HGTwainUI + qmake -qt=qt5 -makefile "DEFINES += OEM_ZIGUANG" HGTwainUI.pro + make -j8 + cd ../ + else cd HGScannerLib @@ -361,7 +397,7 @@ elif [ "${1}" == "zgall" ] || [ "${1}" == "zg" ] || [ "${1}" == "zgweb" ] || [ " else - if [ "${1}" == "hg" ] || [ "${1}" == "hgweb" ] || [ "${1}" == "hgso" ]; then + if [ "${1}" == "hg" ] || [ "${1}" == "hgweb" ] || [ "${1}" == "hgso" ] || [ "${1}" == "hgtwain" ]; then cd HGBase qmake -qt=qt5 -makefile HGBase.pro @@ -418,6 +454,13 @@ else make -j8 cd ../ + elif [ "${1}" == "hgtwain" ]; then + + cd HGTwainUI + qmake -qt=qt5 -makefile HGTwainUI.pro + make -j8 + cd ../ + else cd HGScannerLib