forked from caqtdm/caqtdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
caQtDM_Start.bat
71 lines (47 loc) · 1.69 KB
/
caQtDM_Start.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
60
61
62
63
64
65
66
67
68
69
70
71
@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
echo =============================================================================================
echo ============ Type Release/Debug =================
echo 1) Release
echo 2) Debug
set /P SELCTION=Select:
echo =============================================================================================
echo =============================================================================================
echo ============ Parameter =================
echo Enter Parameter
set /P PARAMETER=Select:
echo =============================================================================================
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%
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:/=\%"
caqtdm %PARAMETER%
GOTO:eof
GOTO:eof