forked from caqtdm/caqtdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaQtDM_Test.bat
59 lines (38 loc) · 1.24 KB
/
caQtDM_Test.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@echo off
Setlocal EnableDelayedExpansion
echo "========== Parameter ============"
call caQtDM_Env.bat
set "CAQTDM_COLLECT=%CAQTDM_COLLECT:/=\%"
echo.
echo "========== create destination directory if not exists============"
echo.
echo.
call :run_caqtdm
pause
GOTO:eof
:run_caqtdm
set SELCTION=1
set PARAMETER=D:\qt\caqtdm_project\caQtDM_Tests\tests.ui
echo ============ start caqtdm =================
set PATH=%PATH%;%JOM%
set PATH=%QTHOME%\bin;%PATH%
set PATH=%QWTLIB%;%PATH%
IF %SELCTION%==1 GOTO :SELECTRelease
IF %SELCTION%==2 GOTO :SELECTDebug
:SELECTDebug
set QT_PLUGIN_PATH=%CAQTDM_COLLECT%\debug\designer
set PATH=%PATH%;%EPICS_BASE%\bin\%EPICS_HOST_ARCH%
set PATH=%CAQTDM_COLLECT%\debug;%PATH%
set QT_QPA_PLATFORM_PLUGIN_PATH=%QTHOME%\plugins\platforms
set "QT_QPA_PLATFORM_PLUGIN_PATH=%QT_QPA_PLATFORM_PLUGIN_PATH:/=\%"
caqtdm %PARAMETER%
GOTO:eof
:SELECTRelease
set QT_PLUGIN_PATH=%CAQTDM_COLLECT%\designer
set PATH=%PATH%;%EPICS_BASE%\bin\%EPICS_HOST_ARCH%:"C:\Program Files (x86)\Dr. Memory\bin64\"
set PATH=%CAQTDM_COLLECT%;%SSLLIB%;%PATH%
set QT_QPA_PLATFORM_PLUGIN_PATH=%QTHOME%\plugins\platforms
set "QT_QPA_PLATFORM_PLUGIN_PATH=%QT_QPA_PLATFORM_PLUGIN_PATH:/=\%"
drmemory.exe -leaks_only -- caqtdm %PARAMETER%
GOTO:eof
GOTO:eof