Compare commits

...

3 Commits

Author SHA1 Message Date
luoliangyi f714def5a8 pro文件增加运行目录 2023-03-30 23:54:56 +08:00
luoliangyi 2f7549163f 增加windows下一键编译脚本 2023-03-30 23:31:56 +08:00
luoliangyi 10e5ce4304 增加一键编译脚本 2023-03-30 23:21:27 +08:00
4 changed files with 64 additions and 0 deletions

45
build2.bat Normal file
View File

@ -0,0 +1,45 @@
set OEM=%1
cd /d ./build2/qt
if "%OEM%" == "hw" (
%QT_PATH%/msvc2017_64/bin/qmake "DEFINES += OEM_HANWANG" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
%QT_PATH%/msvc2017/bin/qmake "DEFINES += OEM_HANWANG" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
) else (
if "%OEM%" == "lsc" (
%QT_PATH%/msvc2017_64/bin/qmake "DEFINES += OEM_LISICHENG" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
%QT_PATH%/msvc2017/bin/qmake "DEFINES += OEM_LISICHENG" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
) else (
if "%OEM%" == "cts" (
%QT_PATH%/msvc2017_64/bin/qmake "DEFINES += OEM_CANGTIAN" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
%QT_PATH%/msvc2017/bin/qmake "DEFINES += OEM_CANGTIAN" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
) else (
if "%OEM%" == "zj" (
%QT_PATH%/msvc2017_64/bin/qmake "DEFINES += OEM_ZHONGJING" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
%QT_PATH%/msvc2017/bin/qmake "DEFINES += OEM_ZHONGJING" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
) else (
if "%OEM%" == "zg" (
%QT_PATH%/msvc2017_64/bin/qmake "DEFINES += OEM_ZIGUANG" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
%QT_PATH%/msvc2017/bin/qmake "DEFINES += OEM_ZIGUANG" -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
) else (
%QT_PATH%/msvc2017_64/bin/qmake -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
%QT_PATH%/msvc2017/bin/qmake -r -tp vc HGSolution.pro
MSBuild.exe HGSolution.sln /m:8 /p:Configuration=Release
)
)
)
)
)
cd ../../

View File

@ -90,6 +90,9 @@ win32 {
LIBS += -lgdi32 -lgdiplus -ldbghelp -lws2_32
LIBS += -L$$PWD/../../build/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE} -l$${OEM_PREFIX}Base -l$${OEM_PREFIX}ImgFmt -l$${OEM_PREFIX}ImgProc
LIBS += -L$$PWD/../../../../sdk/lib/win/$${MY_ARCH}/OEM/$${OEM_NAME} -lsane
# sane.dll
LIBS += -L$$PWD/../../../../release/win/$${MY_ARCH}/OEM/$${OEM_NAME}
}
unix {

View File

@ -99,6 +99,9 @@ win32 {
INCLUDEPATH += $$PWD/../../../third_party/libcurl/$${MY_OS}/include
LIBS += $$PWD/../../../third_party/zlib/$${MY_OS}/lib/$${MY_ARCH}/zlib.lib
LIBS += $$PWD/../../../third_party/libzip/$${MY_OS}/lib/$${MY_ARCH}/zip.lib
# sane.dll
LIBS += -L$$PWD/../../../../release/win/$${MY_ARCH}/OEM/$${OEM_NAME}
}
unix {

13
build2_all.bat Normal file
View File

@ -0,0 +1,13 @@
@echo off
call .\build2.bat hw
call .\build2.bat lsc
call .\build2.bat cts
call .\build2.bat zj
call .\build2.bat zg
call .\build2.bat hg