forked from caqtdm/caqtdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaQtDM_Env.bat
executable file
·206 lines (146 loc) · 6.74 KB
/
caQtDM_Env.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
REM =============================================================================================
REM For general compiling
REM =============================================================================================
IF "%1"=="1" GOTO SELECT1
IF "%1"=="2" GOTO SELECT2
IF "%1"=="3" GOTO SELECT3
IF "%1"=="4" GOTO SELECT4
echo =============================================================================================
echo Select Build Environment
echo 1) QT 4.8.5 QWT6.1.3 32 Bit VS2010
echo 2) QT 6.7.1 QWT6.2.0 64 Bit VS2019
echo 3) QT 5.15.0 QWT6.1.5 64 Bit VS2019
set /P SELCTION=Select:
echo =============================================================================================
IF %SELCTION%==1 GOTO :SELECT1
IF %SELCTION%==2 GOTO :SELECT2
IF %SELCTION%==3 GOTO :SELECT3
IF %SELCTION%==4 GOTO :SELECT4
IF %SELCTION%==A GOTO :SELECTA
REM =============================================================================================
REM SELECT1
REM =============================================================================================
:SELECT1
call "C:\Program files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
set QTHOME=X:/qt/4.8.5
set QWTHOME=X:/qt/qwt-6.1.3
set QWTVERSION=6.1
set QWTINCLUDE=%QWTHOME%/src
set QWTLIB=%QWTHOME%/lib
set QWTLIBNAME=qwt
set GITPATH=C:\Users\brands\AppData\Local\Atlassian\SourceTree\git_local\bin\;C:\Program Files (x86)\Git\bin
set EPICS_BASE=X:/epics/base-3.14.12.4
set EPICS_HOST_ARCH=win32-x86
set EPICSINCLUDE=%EPICS_BASE%/include
set QTCONTROLS_LIBS=X:/Qt/caqtdm_project/caQtDM_QtControls
set CAQTDM_COLLECT=X:/Qt/caqtdm_project/caQtDM_Binaries
set JOM=X:\qt\jom
set QTBASE=%QTCONTROLS_LIBS%
set QTDM_LIBINSTALL=X:\Qt\4.8.5\lib
set QTDM_BININSTALL=X:\qt\4.8.5\bin
set WIXHOME=C:\Program Files (x86)\WiX Toolset v3.8\bin
set QMAKESPEC=%QTHOME%\mkspecs\win32-msvc2010
set TIMESTAPER="http://timestamp.digicert.com"
set CAQTDM_SIGNER="Paul Scherrer Institut"
set ZMQ=X:/Qt/ZMQ
set ZMQINC=%ZMQ%/include
set ZMQLIB=%ZMQ%/lib/%EPICS_HOST_ARCH%
GOTO PRINTOUT
REM =============================================================================================
REM SELECT2
REM =============================================================================================
:SELECT2
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
d:
set QTHOME=D:/qt/build/Qt-6.7.1_VS19_64bit
set QWTHOME=D:/qt/qwt-6.2.0_Qt6.7.1_64bit
set QWTINCLUDE=D:/qt/qwt-6.2.0_Qt6.7.1_64bit/src
set QWTLIB=%QWTHOME%/lib
set QWTLIBNAME=qwt
set QWTVERSION=6.2
set CAQTDMQTVER=QT6
set CAQTDM_GPS=1
set GITPATH=C:\Users\brands\AppData\Local\Atlassian\SourceTree\git_local\bin\
set EPICS_BASE=D:\epics\Package\base
set EPICS_HOST_ARCH=windows-x64
set EPICSINCLUDE=%EPICS_BASE%/include
set QTCONTROLS_LIBS=D:\qt\caqtdm_project\caQtDM_Binaries_64Bit
set CAQTDM_COLLECT=D:\qt\caqtdm_project\caQtDM_Binaries_64Bit
set JOM=D:\qt\jom
set QTBASE=%QTCONTROLS_LIBS%
set WIXHOME=C:\Program Files (x86)\WiX Toolset v3.11\bin
set QMAKESPEC=%QTHOME%\mkspecs\win32-msvc
set TIMESTAPER="http://timestamp.digicert.com"
set CAQTDM_SIGNER="Paul Scherrer Institut"
set ZMQ=D:\qt\zeromq-4.2.3
set ZMQINC=%ZMQ%/include
set ZMQLIB=%ZMQ%/lib/%EPICS_HOST_ARCH%
set SSL=D:\qt\openssl-1.0.2n_VS16_64bit
set SSLINC=%SSL%\inc32
set SSLLIB=%SSL%\out32dll
set CAQTDM_GPS=1
set CAQTDM_MODBUS=1
GOTO PRINTOUT
REM =============================================================================================
REM SELECT3
REM =============================================================================================
:SELECT3
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
d:
set QTHOME=D:/qt/build/Qt-5.15.0_VS19_64bit
set QWTHOME=D:/qt/build/qwt-Qt_5_15_0-Release
set QWTINCLUDE=%QWTHOME%/include
set QWTLIB=%QWTHOME%/lib
set QWTVERSION=6.1
set QWTLIBNAME=qwt
set CAQTDMQTVER=QT5
set PATH=%PATH%;C:\Program Files (x86)\Git\bin
set GITPATH=C:\Users\brands\AppData\Local\Atlassian\SourceTree\git_local\bin\
set EPICS_BASE=D:\epics\Package\base
set EPICS_HOST_ARCH=windows-x64
set EPICSINCLUDE=%EPICS_BASE%/include
set QTCONTROLS_LIBS=D:/qt/caqtdm_project/caQtDM_Binaries_64Bit
set CAQTDM_COLLECT=D:/qt/caqtdm_project/caQtDM_Binaries_64Bit
set JOM=D:\qt\jom
set QTBASE=%QTCONTROLS_LIBS%
set WIXHOME=C:\Program Files (x86)\WiX Toolset v3.11\bin
set QMAKESPEC=%QTHOME%\mkspecs\win32-msvc
set TIMESTAPER="http://timestamp.digicert.com"
set CAQTDM_SIGNER="Paul Scherrer Institut"
set ZMQ=D:\qt\zeromq-4.2.3
set ZMQINC=%ZMQ%/include
set ZMQLIB=%ZMQ%/lib/%EPICS_HOST_ARCH%
set SSL=D:\qt\openssl-1.0.2n_VS16_64bit
set SSLINC=%SSL%\inc32
set SSLLIB=%SSL%\out32dll
set CAQTDM_GPS=1
set CAQTDM_MODBUS=1
GOTO PRINTOUT
:SELECTA
set CAQTDM_GENERAL_COMPILATION=1
GOTO :eof
:PRINTOUT
echo =============================================================================================
echo in order to build this package you will eventually have to redefine following variables in
echo this file, they are taken from your environment if they exist, otherwise define them yourself:
echo.
echo for building:
echo.
echo QTHOME now defined as %QTHOME% for locating Qt
echo QWTHOME now defined as %QWTHOME% for locating qwt
echo QWTINCLUDE now defined as %QWTINCLUDE% for locating the include files of qwt
echo QWTLIB now defined as %QWTLIB% for locating the libraries of qwt
echo EPICS_BASE now defined as %EPICS_BASE% for locating epics
echo EPICSINCLUDE now defined as %EPICSINCLUDE% for locating epics include files
echo EPICSLIB now defined as %EPICSLIB% for locating epics libraries
echo QTBASE now defined as %QTBASE% for building the package locally, pointing to caQtDM_Binaries
echo QTDM_RPATH now defined as %QTDM_RPATH% for runtime search path
echo CAQTDM_COLLECT now defined as %CAQTDM_COLLECT% for target path compile
echo.
echo for install:
echo.
echo EPICSEXTENSIONS now defined as %EPICSEXTENSIONS% for locating epics extensions
echo QTDM_LIBINSTALL now defined as %QTDM_LIBINSTALL% for libraries install
echo QTDM_BININSTALL now defined as %QTDM_BININSTALL% for binaries install
echo WIXHOME now defined as %WIXHOME% for package generation
echo ============================================================================================