@echo off rem rem Copyright (C) 2004-2006 Autodesk, Inc. rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of version 2.1 of the GNU Lesser rem General Public License as published by the Free Software Foundation. rem rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem if not "%2" == "" goto usage if "%1" == "" goto setvcvarsall if "%1" == "x86" goto setvcvarsall if "%1" == "amd64" goto setvcvarsall if "%1" == "x64" goto setvcvarsall if "%1" == "ia64" goto setvcvarsall if "%1" == "x86_amd64" goto setvcvarsall if "%1" == "x86_ia64" goto setvcvarsall goto usage :setvcvarsall SET ACTIVENAMECHECK="Microsoft Visual Studio 9" SET ACTIVEPATHCHECK="C:\Program Files\Microsoft Visual Studio 9.0\VC" if exist %ACTIVEPATHCHECK% goto VSExist SET ACTIVEPATHCHECK="D:\Program Files\Microsoft Visual Studio 9.0\VC" if not exist %ACTIVEPATHCHECK% goto error :VSExist call %ACTIVEPATHCHECK%\vcvarsall.bat %1 :setfdovars SET FDO=%cd%\Fdo SET ACTIVEPATHCHECK=%FDO% SET ACTIVENAMECHECK="FDO" if not exist "%FDO%" goto error SET FDOUTILITIES=%cd%\Utilities SET ACTIVEPATHCHECK=%FDOUTILITIES% SET ACTIVENAMECHECK="FDO Utilities" if not exist "%FDOUTILITIES%" goto error SET FDOTHIRDPARTY=%cd%\Thirdparty SET ACTIVEPATHCHECK=%FDOTHIRDPARTY% SET ACTIVENAMECHECK="FDO Thirdparty" if not exist "%FDOTHIRDPARTY%" goto error SET XALANROOT=%FDOTHIRDPARTY%\apache\xml-xalan\c SET XERCESCROOT=%FDOTHIRDPARTY%\apache\xml-xerces\c SET NLSDIR=%FDOTHIRDPARTY%\apache\xml-xalan\c\Src\xalanc\NLS if not exist "%SDEHOME%" SET SDEHOME=%FDOTHIRDPARTY%\ESRI\ArcSDEClient91\Windows if not exist "%SDEHOME%" echo OPTIONAL FDO environment variable SDEHOME is not set if exist "%SDEHOME%\bin\sde.dll" SET SDEVER_ARCUNITTEST=92 if exist "%SDEHOME%\bin\sde91.dll" SET SDEVER_ARCUNITTEST=91 if not exist "%FDOMYSQL%" SET FDOMYSQL=C:\Program Files\MySQL\MySQL Server 5.0 if not exist "%FDOMYSQL%" echo OPTIONAL FDO environment variable FDOMYSQL is not set if not exist "%FDOORACLE%" SET FDOORACLE=%FDOTHIRDPARTY%\oracle\instant_client\10.2\sdk if not exist "%FDOORACLE%" echo OPTIONAL FDO environment variable FDOORACLE is not set if not exist "%FDOGDAL%" SET FDOGDAL=%FDOTHIRDPARTY%\gdal if not exist "%FDOGDAL%" echo OPTIONAL FDO environment variable FDOGDAL is not set SET ACTIVENAMECHECK="7-Zip" SET ACTIVEPATHCHECK="C:\Program Files\7-Zip" if exist %ACTIVEPATHCHECK% set PATH=%PATH%;%ACTIVEPATHCHECK% SET ACTIVENAMECHECK="Graphviz" SET ACTIVEPATHCHECK="C:\Program Files\ATT\Graphviz\bin" if exist %ACTIVEPATHCHECK% set PATH=%PATH%;%ACTIVEPATHCHECK% if not exist %ACTIVEPATHCHECK% echo OPTIONAL %ACTIVENAMECHECK% documentation package not recognized in the Windows PATH. Update the setenvironment.bat script file with the correct path SET ACTIVENAMECHECK="Doxygen" SET ACTIVEPATHCHECK="C:\Program Files\doxygen\bin" if exist %ACTIVEPATHCHECK% set PATH=%PATH%;%ACTIVEPATHCHECK% if not exist %ACTIVEPATHCHECK% echo OPTIONAL %ACTIVENAMECHECK% documentation package not recognized in the Windows PATH. Update the setenvironment.bat script file with the correct path SET ACTIVENAMECHECK="GnuWin32 Bison/Sed" SET ACTIVEPATHCHECK="c:\Program Files\GnuWin32\bin" if exist %ACTIVEPATHCHECK% set PATH=%PATH%;%ACTIVEPATHCHECK% if not exist %ACTIVEPATHCHECK% echo OPTIONAL %ACTIVENAMECHECK% package not recognized in the Windows PATH. Update the setenvironment.bat script file with the correct path SET ACTIVENAMECHECK="Python 2.4" SET ACTIVEPATHCHECK=C:\progra~1\Python24 if exist %ACTIVEPATHCHECK% SET PYTHON_HOME=C:\progra~1\Python24 if exist %ACTIVEPATHCHECK% set PATH=%PATH%;%ACTIVEPATHCHECK% if not exist %ACTIVEPATHCHECK% echo OPTIONAL %ACTIVENAMECHECK% package not found. Update the setenvironment.bat script file with the correct path SET ACTIVENAMECHECK="SWIG 1.3.31" SET ACTIVEPATHCHECK=C:\progra~1\swigwin-1.3.31 if exist %ACTIVEPATHCHECK% SET SWIG_HOME=C:\progra~1\swigwin-1.3.31 if exist %ACTIVEPATHCHECK% set PATH=%PATH%;%ACTIVEPATHCHECK% if not exist %ACTIVEPATHCHECK% echo OPTIONAL %ACTIVENAMECHECK% package not found. Update the setenvironment.bat script file with the correct path goto end :usage echo Error in script usage. The correct usage is: echo %0 [option] echo where [option] is: x86 ^| ia64 ^| amd64 ^| x86_amd64 ^| x86_ia64 echo: echo For example: echo %0 x86_ia64 exit /B 1 :end exit /B 0 :error echo Unable to find %ACTIVEPATHCHECK% echo Please update setenvironment script file with the right %ACTIVENAMECHECK% path exit /B 1