diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2009-10-12 20:27:04 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2009-10-12 20:27:04 (GMT) |
commit | d3aa5c967e7894a82246e5d1e444a9e87d3e2660 (patch) | |
tree | 7ba357477a0fd4dfffae789913b6b478308618e6 /windows/hdf5build.BAT | |
parent | ceddabad65bb049add87a055eb37ab3c4570a0f9 (diff) | |
download | hdf5-d3aa5c967e7894a82246e5d1e444a9e87d3e2660.zip hdf5-d3aa5c967e7894a82246e5d1e444a9e87d3e2660.tar.gz hdf5-d3aa5c967e7894a82246e5d1e444a9e87d3e2660.tar.bz2 |
[svn-r17632] Removed vnet assignments and allow default /vs8 and /ivf91 on command line.
Tested: windows
Diffstat (limited to 'windows/hdf5build.BAT')
-rwxr-xr-x | windows/hdf5build.BAT | 61 |
1 files changed, 23 insertions, 38 deletions
diff --git a/windows/hdf5build.BAT b/windows/hdf5build.BAT index abb6c90..b9aac04 100755 --- a/windows/hdf5build.BAT +++ b/windows/hdf5build.BAT @@ -17,12 +17,12 @@ rem File Name: hdf5build.bat rem This batch file is used to build HDF5 Libraries and Tools.
rem This batch file takes the following options:
rem . /vs7 Build HDF5 using Visual Studio .NET 2003
-rem . Note: Default is Visual Studio 2005
+rem . /vs8 Note: Default is Visual Studio 2005
rem . /vs9 Build HDF5 using Visual Studio 2008
rem . Note: Default is Visual Studio 2005
-rem . /fort Build HDF5 with Fortran libraries
-rem . /ivf101 Build HDF5 Fortran using Intel Visual Fortran 10.1
-rem . Note: Default is Intel Visual Fortran 9.1
+rem . /fort Build HDF5 with Fortran libraries
+rem . /ivf101 Build HDF5 Fortran using Intel Visual Fortran 10.1
+rem . /ivf91 Note: Default is Intel Visual Fortran 9.1
rem . /useenv Build HDF5 using compiler settings defined
rem . in the environment, rather than the IDE.
rem . /? Help information
@@ -59,13 +59,13 @@ rem Print a help message echo.Usage: %~nx0 [OPTION]
echo.
echo. /vs7 Build HDF5 using Visual Studio .NET 2003
- echo. Note: Default is Visual Studio 2005
+ echo. /vs8 Note: Default is Visual Studio 2005
echo. /vs9 Build HDF5 using Visual Studio 2008
echo. Note: Default is Visual Studio 2005
echo. /fort Build HDF5 with Fortran libraries using the
echo. Intel Fortran version specified, or 9.1 by default
echo. /ivf101 Build HDF5 Fortran using Intel Visual Fortran 10.1
- echo. Note: Default is Intel Visual Fortran 9.1
+ echo. /ivf91 Note: Default is Intel Visual Fortran 9.1
echo. /useenv Build HDF5 using compiler settings defined
echo. in the environment, rather than the IDE.
echo. /? Help information
@@ -78,8 +78,14 @@ rem Parse through the parameters sent to file, and set appropriate variables for %%a in (%*) do (
if "%%a"=="/vs7" (
- rem Use Visual Studio .NET 2003
- set hdf5_vnet=true
+ rem Visual Studio .NET 2003 not supported
+ rem Set errorlevel 1 and send to help
+ call :help
+ exit /b 1
+
+ ) else if "%%a"=="/vs8" (
+ rem Use Visual Studio 2005
+ set hdf5_vs2005=true
) else if "%%a"=="/vs9" (
rem Use Visual Studio .NET 2003
@@ -89,6 +95,10 @@ rem Parse through the parameters sent to file, and set appropriate variables rem Enable Fortran
set hdf5_enablefortran=true
+ ) else if "%%a"=="/ivf91" (
+ rem Enable Fortran
+ set hdf5_ivf91=true
+
) else if "%%a"=="/ivf101" (
rem Enable Fortran
set hdf5_ivf101=true
@@ -120,29 +130,14 @@ rem Setup our environment echo.Setting up environment
- rem Sanity check-- make sure VS.NET isn't specified with Fortran or x64
- if defined hdf5_vnet (
- if defined hdf5_enablefortran (
- echo.Error: Building Fortran libraries with Visual Studio .NET is unsupported
- exit /b 1
- )
- if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
- echo.Error: Building HDF5 on x64 with Visual Studio .NET is unsupported
- exit /b 1
- )
- )
- rem Make sure /vs7 and /vs9 weren't specified together
- if "%hdf5_vnet%%hdf5_vs2008%"=="truetrue" (
- echo.Error: /vs7 and /vs9 should not be specified together.
+ rem Make sure /vs8 and /vs9 weren't specified together
+ if "%hdf5_vs2005%%hdf5_vs2008%"=="truetrue" (
+ echo.Error: /vs8 and /vs9 should not be specified together.
exit /b 1
)
rem Figure out which solution file to use based on configuration
- if defined hdf5_vnet (
- echo.Using Visual Studio .NET 2003
- set hdf5_sln="%CD%\windows_vnet\proj\all\all.sln"
-
- ) else if defined hdf5_vs2008 (
+ if defined hdf5_vs2008 (
echo.Using Visual Studio 2008
if defined hdf5_enablefortran (
echo.Building Fortran projects enabled
@@ -178,17 +173,7 @@ rem Setup our environment set ccflags=
- if defined hdf5_vnet (
- if defined vs71comntools (
- rem This sets the Visual Studio .NET path and environment variables
- call "%vs71comntools%\vsvars32.bat"
- ) else (
- echo.Error: Cannot setup Visual Studio .NET 2003 environment. Please
- echo.make sure VS71COMNTOOLS is defined in the environment.
- exit /b 1
- )
-
- ) else if defined hdf5_vs2008 (
+ if defined hdf5_vs2008 (
if not defined hdf5_enablefortran (
if defined vs90comntools (
rem This sets the Visual Studio 2005 path and environment variables
|