2 SETLOCAL EnableDelayedExpansion
\r
3 rem =============== Developer configuration area ===============
\r
5 rem VTK: environment variables for the chosen VTK installation
\r
6 set VTKINCDIR=P:\ParaView-3.12.0-win64-fulldev\include\paraview-3.12
\r
7 set VTKBINDIR=P:\ParaView-3.12.0-win64-fulldev\bin
\r
8 set VTKLIBDIR=P:\ParaView-3.12.0-win64-fulldev\lib\paraview-3.12
\r
10 rem Qt: batch file with environment variables for the chosen qt installation
\r
11 set QTbatchfile=Q:\4.6.3_x64\qtvars.bat
\r
13 rem NSIS: path to where NSIS is installed
\r
14 set NSIS_DIR=P:\NSIS
\r
16 rem ============= End Developer configuration area =============
\r
22 rem ===================== Setup and copy =======================
\r
23 rem go to where this script is located
\r
28 rem go to the third_party64 folder
\r
29 IF NOT EXIST third_party64 mkdir third_party64
\r
30 cd third_party64 || goto BADEND
\r
32 rem Copy VTK installation
\r
33 echo Copying VTK files, please wait...
\r
34 IF NOT EXIST VTK mkdir VTK
\r
36 IF NOT EXIST bin mkdir bin
\r
37 IF NOT EXIST lib mkdir lib
\r
38 IF NOT EXIST include mkdir include
\r
40 xcopy /s "%VTKBINDIR%\*.dll" bin\ > NUL:
\r
41 xcopy /s "%VTKLIBDIR%\*.*" lib\ > NUL:
\r
42 xcopy /s "%VTKINCDIR%\*.*" include\ > NUL:
\r
44 rem remove unwanted Qt*.dll files
\r
47 rem going back to the third_party64 folder
\r
51 rem Copy Qt Installation
\r
52 IF NOT EXIST Qt mkdir Qt
\r
55 IF NOT EXIST bin mkdir bin
\r
56 IF NOT EXIST lib mkdir lib
\r
57 IF NOT EXIST src mkdir src
\r
58 IF NOT EXIST include mkdir include
\r
59 IF NOT EXIST plugins mkdir plugins
\r
60 IF NOT EXIST mkspecs mkdir mkspecs
\r
61 IF NOT EXIST tools mkdir tools
\r
62 IF NOT EXIST translations mkdir translations
\r
65 echo Copying Qt files, please wait...
\r
67 xcopy /s "%QTDIR%\bin\*.*" bin\ > NUL:
\r
68 xcopy /s "%QTDIR%\lib\*.*" lib\ > NUL:
\r
69 xcopy /s "%QTDIR%\src\*.*" src\ > NUL:
\r
70 xcopy /s "%QTDIR%\include\*.*" include\ > NUL:
\r
71 xcopy /s "%QTDIR%\plugins\*.*" plugins\ > NUL:
\r
72 xcopy /s "%QTDIR%\mkspecs\*.*" mkspecs\ > NUL:
\r
73 xcopy /s "%QTDIR%\tools\*.*" tools\ > NUL:
\r
74 xcopy /s "%QTDIR%\translations\*.*" translations > NUL:
\r
76 rem hack the qt.conf file
\r
77 echo [Paths] > bin\qt.conf
\r
78 echo Prefix = %CD% >> bin\qt.conf
\r
79 echo Demos = demos >> bin\qt.conf
\r
80 echo Examples = examples >> bin\qt.conf
\r
82 rem create the qtvars.bat file
\r
83 echo @echo off > bin\qtvars.bat
\r
84 echo echo Setting QMAKESPEC to %QMAKESPEC% >> bin\qtvars.bat
\r
85 echo set QMAKESPEC=%QMAKESPEC% >> bin\qtvars.bat
\r
86 echo echo Setting QTDIR environment variable to %CD% >> bin\qtvars.bat
\r
87 echo set QTDIR=%CD% >> bin\qtvars.bat
\r
88 echo echo Putting Qt\bin in the current PATH environment variable. >> bin\qtvars.bat
\r
89 echo set PATH=%CD%\bin;^%%PATH^%% >> bin\qtvars.bat
\r
90 echo. >> bin\qtvars.bat
\r
92 rem going back to the third_party64 folder
\r
96 rem Copy NSIS Installation
\r
97 echo Copying NSIS files, please wait...
\r
98 IF NOT EXIST NSIS mkdir NSIS
\r
100 xcopy /s "%NSIS_DIR%\*.*" . > NUL:
\r
102 rem create the nsisvars.bat file
\r
103 echo @echo off > nsisvars.bat
\r
104 echo echo Putting NSIS in the current PATH environment variable. >> nsisvars.bat
\r
105 echo set PATH=%CD%;^%%PATH^%% >> nsisvars.bat
\r
106 echo. >> nsisvars.bat
\r
108 rem going back to the third_party64 folder
\r
112 rem =============== ALL DONE ================
\r
119 echo Unable to complete procedure.
\r