1 Star 1 Fork 0

datree/dlt-viewer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_qwt_windows_qt5_MSVC.bat 3.97 KB
一键复制 编辑 原始数据 按行查看 历史
@echo off
cls
REM Date Version Author Changes
REM 4.7.19 1.0 Alexander Wenzel Update to Qt 5.12.4, Qwt 6.1.4 and Visual Studio 2015
REM 30.1.18 1.0 Gernot Wirschal First versioned file
echo ************************************
echo *** Build QWT Library ***
echo ************************************
echo ************************************
echo *** Configuration ***
echo ************************************
if "%MSVC_VERSION%"=="" (
echo "Set default MSVCS ""
set MSVC_VERSION=2015
)
set MSVC_VER=msvc%MSVC_VERSION%
rem parameter of this batch script can be either x86 or x86_amd64
if "%ARCHITECTURE%"=="" (
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
set ARCHITECTURE=x86_amd64
) else (
set ARCHITECTURE=x86
)
set USE_ARCH_PARAM=false
if "%1" NEQ "" (
if "%1"=="x86" set USE_ARCH_PARAM=true
if "%1"=="x86_amd64" set USE_ARCH_PARAM=true
)
if "!USE_ARCH_PARAM!"=="true" set ARCHITECTURE=%1
)
echo Target architecture is %ARCHITECTURE%
echo *** Setting up environment ***
echo Set QT path for %QTVER%
IF "%QTVER%"=="" (
set QTVER=5.12.4
)
echo Set QT diretory for %ARCHITECTURE%
if "%QTDIR%"=="" (
if "%ARCHITECTURE%"=="x86_amd64" (
set QTDIR=C:\Qt\Qt5.12.4\5.12.4\msvc2015_64
) else (set QTDIR=C:\Qt\Qt5.12.4\5.12.4\msvc2015)
)
if "%MSVC_DIR%"=="" set MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
echo Set suffix for %ARCHITECTURE%
set DIR_POSTFIX=_32bit
IF "%ARCHITECTURE%" EQU "x86_amd64" set DIR_POSTFIX=_64bit
echo DIR_POSTFIX %DIR_POSTFIX%
set WORKINGDIR=%CD%
IF "%QWT%"=="" (
set QWT=6.1.4
)
set QWT_DIR=C:\Qwt-%QWT%_%MSVC_VERSION%_%QTVER%%DIR_POSTFIX%
set PATH=%QTDIR%\bin;%MSVC_DIR%;%MSVC_DIR%\bin;%PATH%
IF "%WORKSPACE%" == "" (
set SOURCE_DIR=%CD%\qwt-%QWT%
) ELSE (
set SOURCE_DIR=%WORKSPACE%\qwt-%QWT%
)
IF '%SEVENZ_DIR%'=='' (
set SEVENZ_DIR="C:\Program Files\7-Zip"
)
IF exist %QWT_DIR% (
echo ************************************
echo *** Delete old qwt Directory ***
echo ************************************
rmdir /s /q %QWT_DIR%
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
)
echo ************************************
echo * QTDIR = %QTDIR%
echo * MSVC_DIR = %MSVC_DIR%
echo * PATH = %PATH%
echo * DLT_VIEWER_SDK_DIR = %DLT_VIEWER_SDK_DIR%
echo * SOURCE_DIR = %SOURCE_DIR%
echo ************************************
IF not exist "%MSVC_DIR%" (
echo "\!"
echo "No valid MSVC directory found in %MSVC_DIR%"
echo "\!"
GOTO ERROR_HANDLER
)
echo ************************************
echo *** Unzip Archives ***
echo ************************************
IF exist qwt-%QWT% (
rmdir /s /q qwt-%QWT%
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
)
%SEVENZ_DIR%\7z.exe x qwt-%QWT%.zip -y
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
cd %SOURCE_DIR%
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
echo ************************************
echo *** Configure MSVC environment ***
echo ************************************
call vcvarsall.bat %ARCHITECTURE%
if %ERRORLEVEL% NEQ 0 goto error
echo configuring was successful
echo ************************************
echo *** Build QWT ***
echo ************************************
set QMAKEFEATURES=%QWT_DIR%\features
qmake qwt.pro
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
nmake clean
rem IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
nmake
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
nmake install
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
echo *** Move QWT folder ***
move "C:\Qwt-%QWT%" %QWT_DIR%
GOTO QUIT
:ERROR_HANDLER
echo ####################################
echo ### ERROR occured ###
echo ####################################
cd %WORKINGDIR%
IF '%WORKSPACE%'=='' (
pause
)
:QUIT
echo ************************************
echo *** SUCCESS finish ***
echo ************************************
echo Qwt installed in: %QWT_DIR%
cd %WORKINGDIR%
IF '%WORKSPACE%'=='' (
pause
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/datree1353/dlt-viewer.git
git@gitee.com:datree1353/dlt-viewer.git
datree1353
dlt-viewer
dlt-viewer
master

搜索帮助