@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 SET PARAM1=%1 if "%2" == "VC10" goto studyParam if not "%2" == "" goto usage :studyParam 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 SET PARAM1=x86 if "%1" == "VC10" goto setvcvarsallVC10 goto usage :setvcvarsallVC10 SET VCBEXTENSION=_vs10 SET VC_COMPILER=vc100 SET ACTIVENAMECHECK="Microsoft Visual Studio 10" SET ACTIVEPATHCHECK="C:\Program Files\Microsoft Visual Studio 10.0\VC" if exist %ACTIVEPATHCHECK% goto VSExist SET ACTIVEPATHCHECK="C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC" if exist %ACTIVEPATHCHECK% goto VSExist goto VSExist :setvcvarsall if "%2" == "VC10" goto setvcvarsallVC10 SET VC_COMPILER=vc90 SET ACTIVENAMECHECK="Microsoft Visual Studio 9" SET ACTIVEPATHCHECK="C:\Program Files\Microsoft Visual Studio 9.0\VC" if exist %ACTIVEPATHCHECK% goto VSExist SET ACTIVEPATHCHECK="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC" if exist %ACTIVEPATHCHECK% goto VSExist :VSExist call %ACTIVEPATHCHECK%\vcvarsall.bat %PARAM1% :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\xalan SET XERCESCROOT=%FDOTHIRDPARTY%\apache\xerces SET NLSDIR=%FDOTHIRDPARTY%\apache\xalan\src\xalanc\NLS if "%PARAM1%" == "" goto setfdovariables_x86 if "%PARAM1%" == "x86" goto setfdovariables_x86 :setfdovariables_x64 if not exist "%FDOORACLE%" SET FDOORACLE=%FDOTHIRDPARTY%\oracle_x64\instantclient\11.2\sdk if not exist "%FDOORACLE%" echo OPTIONAL FDO environment variable FDOORACLE is not set if not exist "%FDOORACLE%" SET FDOORACLE= if not exist "%FDOMYSQL%" SET FDOMYSQL=%FDOTHIRDPARTY%\mysql_x64 if not exist "%FDOMYSQL%" echo OPTIONAL FDO environment variable FDOMYSQL is not set if not exist "%FDOMYSQL%" SET FDOMYSQL= if not exist "%SDEHOME%" SET SDEHOME=%FDOTHIRDPARTY%\ESRI\ArcSDEClient931\Win64 goto contsetfdovariables :setfdovariables_x86 if not exist "%FDOORACLE%" SET FDOORACLE=%FDOTHIRDPARTY%\oracle\instant_client\11.2\sdk if not exist "%FDOORACLE%" echo OPTIONAL FDO environment variable FDOORACLE is not set if not exist "%FDOORACLE%" SET FDOORACLE= if not exist "%FDOMYSQL%" SET FDOMYSQL=%FDOTHIRDPARTY%\mysql if not exist "%FDOMYSQL%" echo OPTIONAL FDO environment variable FDOMYSQL is not set if not exist "%FDOMYSQL%" SET FDOMYSQL= if not exist "%SDEHOME%" SET SDEHOME=%FDOTHIRDPARTY%\ESRI\ArcSDEClient931\Windows :contsetfdovariables if not exist "%FDOGDAL%" SET FDOGDAL=%FDOTHIRDPARTY%\gdal if not exist "%FDOGDAL%" echo OPTIONAL FDO environment variable FDOGDAL is not set if not exist "%FDOGDAL%" SET FDOGDAL= if not exist "%FDOPOSTGRESQL%" SET FDOPOSTGRESQL=%FDOTHIRDPARTY%\pgsql if not exist "%FDOPOSTGRESQL%" echo OPTIONAL FDO environment variable FDOPOSTGRESQL is not set if not exist "%FDOPOSTGRESQL%" SET FDOPOSTGRESQL= if not exist "%SDEHOME%" echo OPTIONAL FDO environment variable SDEHOME is not set if not exist "%SDEHOME%" SET SDEHOME= if exist "%SDEHOME%\bin\sde.dll" SET SDEVER_ARCUNITTEST=92 if exist "%SDEHOME%\bin\sde91.dll" SET SDEVER_ARCUNITTEST=91 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] [VC Option] echo where [option] is: x86 ^| x64 ^| ia64 ^| amd64 ^| x86_amd64 ^| x86_ia64 ^| VC10 echo where [VC Option] can be: VC10 echo: echo For example: echo %0 x64 VC10 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