3 echo ##########################################################################
4 echo Installing LATA %VERSION%
5 echo ##########################################################################
8 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
9 if NOT exist "%PRODUCT_INSTALL%\lib" mkdir %PRODUCT_INSTALL%\lib
11 REM clean BUILD directory
12 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
15 robocopy %SOURCE_DIR% %BUILD_DIR% /E /NP /NFL /NDL /NS /NC
16 if NOT %ERRORLEVEL% == 1 (
17 echo ERROR when copying archive
21 REM LATA source directory
22 set LATA_SRC_DIR=%BUILD_DIR%\src
24 REM LATA binary directory
25 set LATA_BIN_DIR=%BUILD_DIR%\bin
28 mkdir %BUILD_DIR%\plugin_visit\build_paraview
30 REM copy the patched CMake file... caution, the patch is provided with the archive
31 copy %BUILD_DIR%\plugin_visit\CMakeLists.txt.para %BUILD_DIR%\plugin_visit\build_paraview\CMakeLists.txt
32 if NOT %ERRORLEVEL% == 0 (
33 echo ERROR when copying CMakeLists.txt
37 cd %BUILD_DIR%\plugin_visit\build_paraview
39 REM add required symbolic links
40 cp %BUILD_DIR%\plugin_visit\src\avtlataFileFormat.h avtlataFileFormat.h
41 cp %BUILD_DIR%\plugin_visit\src\avtlataFileFormat.C avtlataFileFormat.C
42 for /r "%LATA_SRC_DIR%/commun_triou" %%G in (*.cpp) do COPY %%~G *.C
43 for /r "%LATA_SRC_DIR%/commun_triou" %%G in (*.h) do COPY %%~G *.h
44 for /r "%LATA_SRC_DIR%/triou_compat" %%G in (*.h) do COPY %%~G *.h
45 for /r "%LATA_SRC_DIR%/triou_compat" %%G in (*.cpp) do COPY %%~G *.C
47 REM define the VISITLIBPATH variable
48 set VISITLIBPATH=%BUILD_DIR%\VisItLib
51 echo INFO: running cmake -DVisItBridgePlugin_SOURCE_DIR=%BUILD_DIR%\VisItLib
53 cd %BUILD_DIR%\build_paraview
55 SET CMAKE_OPTIONS=-DCMAKE_BUILD_TYPE:STRING=Release
56 SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"
57 SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVisItBridgePlugin_SOURCE_DIR=%BUILD_DIR:\=/%/VisItLib
59 if NOT %ERRORLEVEL% == 0 (
60 echo ERROR: failed to run command: cmake %CMAKE_OPTIONS%
65 echo INFO: fix file: vtkVisItReaderlataSM.xml
66 REM copy the patched CMake file... caution, the patch is provided with the archive
67 rm -f vtkVisItReaderlataSM.xml
69 cp %BUILD_DIR%\plugin_visit\vtkVisItReaderlataSM.xml.para vtkVisItReaderlataSM.xml
71 REM create a doc folder
75 echo "INFO: running command: make..."
76 msbuild %MAKE_OPTIONS% ALL_BUILD.vcxproj /p:Configuration=Release /p:Platform=x64
77 if NOT %ERRORLEVEL% == 0 (
78 echo ERROR on msbuild ALL_BUILD.vcxproj
83 echo INFO: copy the shared objects library to the installation folder.
84 copy %BUILD_DIR%\libVisItReaderlata.dll %PRODUCT_INSTALL%\lib\libVisItReaderlata.dll
85 if NOT %ERRORLEVEL% == 0 (
86 echo ERROR when copying libVisItReaderlata.dll
90 taskkill /F /IM "mspdbsrv.exe"