summaryrefslogtreecommitdiffstats
path: root/windows/batch_intelc/hdf5build_intelc.BAT
blob: ff4b5eacfc665763d1572022637a9da377f916a8 (plain)
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
@REM File Name : hdf5build_inelc.bat
@REM Purpose   : Building HDF5 with INTEL C++ Compiler
@REM Written By: Fang GUO
@REM Date      : May 27, 2005
@REM Update    : June 7, 2005

@REM There are 2 options for this batch file:
@REM   1. hdf5build_intelc               -- Build HDF5 tools and c library
@REM   2. hdf5build_intelc enablecpp      -- Build HDF5 tools and c/c++ library
@echo off

if %1.==. GOTO BUILDC
if "%1"=="/?" GOTO HELP
if %1==enablecpp GOTO BUILDCPP
GOTO WRONG

:BUILDC

call convert_to_icproj %1

type nul > build_results_intelc.txt
type nul > all_debug.log
type nul > all_release.log
type nul > h5tinit.log

echo Start Building HDF5 C libraries ...

echo ***************************************************************************** >> build_results_intelc.txt
echo                         Build H5Tinit.exe >> build_results_intelc.txt
echo ***************************************************************************** >> build_results_intelc.txt

cd windows\misc\typegen
ICProjConvert80 typegen.sln /IC >> ..\..\..\h5tinit.log
devenv typegen.sln /rebuild Debug /IntelSpecific Intel >> ..\..\..\h5tinit.log
cd ..\..\..\
more h5tinit.log >> build_results_intelc.txt
del h5tinit.log

echo ***************************************************************************** >> build_results_intelc.txt
echo                         Build HDF5 C Library and Tools >> build_results_intelc.txt
echo ***************************************************************************** >> build_results_intelc.txt

cd src
h5tinit.exe > h5tinit.c

cd ..\windows\proj\all
devenv all.sln /rebuild debug /IntelSpecific Intel >> ..\..\..\all_debug.log
devenv all.sln /rebuild release /IntelSpecific Intel >> ..\..\..\all_release.log 
cd ..\..\..\
more all_debug.log >> build_results_intelc.txt
more all_release.log >> build_results_intelc.txt
del all_debug.log
del all_release.log
GOTO END

:BUILDCPP
call convert_to_icproj
call convert_to_icproj %1

type nul > build_results_intelc.txt
type nul > all_debug.log
type nul > all_release.log
type nul > h5tinit.log

echo ***************************************************************************** >> build_results_intelc.txt
echo                         Build H5Tinit.exe >> build_results_intelc.txt
echo ***************************************************************************** >> build_results_intelc.txt

cd windows\misc\typegen
ICProjConvert80 typegen.sln /IC >> ..\..\..\h5tinit.log
devenv typegen.sln /rebuild Debug /IntelSpecific Intel >> ..\..\..\h5tinit.log
cd ..\..\..\
more h5tinit.log >> build_results_intelc.txt
del h5tinit.log

echo ***************************************************************************** >> build_results_intelc.txt
echo                         Build HDF5 C/C++ Libraries and Tools >> build_results_intelc.txt
echo ***************************************************************************** >> build_results_intelc.txt

cd src
h5tinit.exe > h5tinit.c

cd ..\windows\proj\all
devenv all.sln /rebuild debug /IntelSpecific Intel >> ..\..\..\all_debug.log
devenv all.sln /build debug /project hdf5_cppdll /IntelSpecific Intel >> ..\..\..\all_debug.log
devenv all.sln /build debug /project hdf5_cpp /IntelSpecific Intel >> ..\..\..\all_debug.log
devenv all.sln /build debug /project hdf5_hl_cpp /IntelSpecific Intel >> ..\..\..\all_debug.log
::devenv all.sln /build debug /project hdf5_hl_cppdll /IntelSpecific Intel >> ..\..\..\all_debug.log
devenv all.sln /build debug /project testhdf5_cpp  /IntelSpecific Intel >> ..\..\..\all_debug.log
devenv all.sln /build debug /project testhdf5_cppdll  /IntelSpecific Intel >> ..\..\..\all_debug.log
devenv all.sln /build debug /project dsets_cpp  /IntelSpecific Intel >> ..\..\..\all_debug.log
devenv all.sln /build debug /project dsets_cppdll  /IntelSpecific Intel >> ..\..\..\all_debug.log
devenv all.sln /build debug /project hl_test_table_cpp  /IntelSpecific Intel >> ..\..\..\all_debug.log
::devenv all.sln /build debug /project hl_test_table_cppdll  /IntelSpecific Intel >> ..\..\..\all_debug.log

devenv all.sln /rebuild release /IntelSpecific Intel >> ..\..\..\all_release.log
devenv all.sln /build release /project hdf5_cppdll /IntelSpecific Intel >>..\..\..\all_release.log
devenv all.sln /build release /project hdf5_cpp /IntelSpecific Intel >>..\..\..\all_release.log
devenv all.sln /build release /project hdf5_hl_cpp /IntelSpecific Intel >>..\..\..\all_release.log
::devenv all.sln /build release /project hdf5_hl_cppdll /IntelSpecific Intel >>..\..\..\all_release.log
devenv all.sln /build release /project testhdf5_cpp  /IntelSpecific Intel >>..\..\..\all_release.log
devenv all.sln /build release /project testhdf5_cppdll  /IntelSpecific Intel >>..\..\..\all_release.log
devenv all.sln /build release /project dsets_cpp  /IntelSpecific Intel >>..\..\..\all_release.log
devenv all.sln /build release /project dsets_cppdll  /IntelSpecific Intel >>..\..\..\all_release.log
devenv all.sln /build release /project hl_test_table_cpp  /IntelSpecific Intel >>..\..\..\all_release.log
::devenv all.sln /build release /project hl_test_table_cppdll  /IntelSpecific Intel >>..\..\..\all_release.log

cd ..\..\..\

more all_debug.log >> build_results_intelc.txt
more all_release.log >> build_results_intelc.txt
del all_debug.log
del all_release.log
GOTO END

:WRONG
echo The syntax of the command is incorrect.
echo.

:HELP
echo Builds HDF5 Libraries and Tools.
echo.
echo hdf5build [OPTION]
echo.
echo Please use one of the following options!
echo.
echo    hdf5build                   Build HDF5 C Library and Tools
echo    hdf5build enablecpp         Build HDF5 C/C++ Libraries and Tools
echo    hdf5build enablefortran     Build HDF5 C/Fortran Libraries and Tools
echo    hdf5build enableall         Build HDF5 C/C++/Fortran Libraries and Tools
echo    hdf5build /?                Help information

:END