IPE中eng.bat中的修改


@echo off

REM $URL: https://emea-swi-ipesvn.emea.tibco.com/svn/iProcessSuite/trunk/eng.bat $
REM $Id: eng.bat 83578 2012-04-09 01:58:06Z jinzhang $
set ProgramFiles=C:\Program Files
call "%ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\bin\VCVARS32.BAT"

echo Setting up to build for English
set SWLANG=eng

REM CR17299 Nick The following 2 lines auto detect where this is being run from (like `pwd` on unix)
set SW_DRIVE=%~d0
set SWBASE=%SW_DRIVE%%~p0.

set SWMACH=I386
set SWCFLAGS=/D "PERMS" /D "SW4_WIN32SERVER" -D "SW_NOGETTIMEOFDAY"
set SW_ISHIELD=1
set SWTPM=TPM_NONE

REM CR19650 MAB 22/01/2007 - New environment flag to tell install set build to copy EMS
REM MR 39029: xyao: Switch from EMS 4.4.3 to 5.0.0
set SWEMSDISTVER=5.0.0

REM CR19749 SAC 22-02-07: add environment variable for Hawk install set
REM Remove Hawk Installation
set SWHAWKDISTVER=

REM CR17299 Nick Don't set SWDIR by default as it's nearly always wrong either uncomment
set SWDIR=C:\swserver\staffw_nod1

REM HP 2005-07-18 where to pick up javalibs, xmllibs, ant and jdk
set LIBBY_BASE=\\192.168.65.30\tibco\cdc-filer\export\exportNEW
set PMO_BASE=\\swi-filer1\pmostagearea

REM CR14558 -- Added support for DB2
REM set database type
set DBENGINE=MSSQL
REM set DBENGINE=ORACLE
REM set DBENGINE=DB2

REM CR14206 SAC 10-03-04: allow setting of database engine on command line
REM
IF NOT "%1" == "" set DBENGINE=%1

REM
REM CR16139 - CJED 25-FEB-2005 - Support Oracle 9i and 10g builds
REM With new SWORAVER environment variable - Default to 10g
REM
set SWORAVER=9i
if "%DBENGINE%" == "ORACLE" GOTO set_oraver
goto skip_oraver
:set_oraver
REM set SWORAVER=9i
set SWORAVER=10g
:skip_oraver

REM CR17299 Allow oracle version to be set from param 2
IF NOT "%2" == "" set SWORAVER=%2

REM CR19845 HP 2007-03-06 - optional 3rd parameter is the build checkpoint number
set SWCHECKPOINT=%3


REM Uncomment the next line if you want the microsoft browse database
REM set SW_BUILD_BROWSE=1

REM This line has been added to set and environment variable for CL and LINK
REM which means we can roll out final check builds to all makefiles much easier
set SW_CL=cl
set SW_LINK=link

set SW_ISHIELD_PATH=%ProgramFiles%\InstallShield\InstallShield 5.5 Professional Edition
REM CR19108 HP 2006-08-15
rem set ISMP_root=C:\Program Files\InstallShield 11\Universal Installer
REM IS11 Standalone Builder is now on libby - adjust to local disk for faster nmake install under java
set ISMP_root=%LIBBY_BASE%\tools\InstallShield1151
REM Had to add a new version of Installshield for  EAI WebServices (because it needs ismp.properties configured)
set ISMP_root_EAIWS=%LIBBY_BASE%\tools\Installshield1151_EAIWS

REM CR19845 HP 2007-02-28 Maven integration for Conductor / EAIJava
set MAVEN_HOME=%LIBBY_BASE%\tools\maven-1.0-rc1
set MKS_HOME=C:\Program Files\MKS\Source Integrity SE\mksnt
set ASSEMBLY_root=%SWBASE%\java\output\assemblygallery
REM CR19845 HP 2007-03-06 for production builds ASSEMBLY_root uses checkpoint number
if NOT "" == "%SWCHECKPOINT%" set ASSEMBLY_root=%PMO_BASE%\assemblygallery\%SWCHECKPOINT%


REM CR19031 SAC 07-09-06: new variable to hold the OS libraries for linking
REM
set SW_OS_LIBS=user32.lib gdi32.lib advapi32.lib comdlg32.lib ole32.lib Ws2_32.lib oleaut32.lib Wldap32.lib netapi32.lib version.lib clusapi.lib Iphlpapi.lib clusapi.lib winmm.lib odbc32.lib mqrt.lib winrpc32.lib Psapi.lib

set SW4_WIN32SERVER=1

REM set up some library vars
set LIBBYLIBS=%LIBBY_BASE%\libs
set LIBBYTOOLS=%LIBBY_BASE%\tools
 
REM CR17148 NJP 16May05 Path to the SQL Dev tools include folder
REM - required for the new Basic installer
set SQL2K_INCLUDE=%LIBBYLIBS%\mssql\sql2K\DevTools\Include

REM setup path for Java build tools
REM CR19108 HP 2006-08-15
REM CR19797 MAB 20/02/2007 - Use Java 1.5 to build with
set ANT_HOME=%LIBBYTOOLS%\ant\1.6.5
set ANTLOCATION=%ANT_HOME%\bin
set JAVA_HOME=%LIBBYTOOLS%\jdk\win32\1.5.0_15
set JAVA6_HOME=%LIBBYTOOLS%\jdk\win32\1.6.0_21

set JAVALOCATION=%JAVA_HOME%\bin
set JAVA6LOCATION=%JAVA6_HOME%\bin

REM CR16431 New section added for Java ANT environment
REM This is needed to find the libs
set JAVA_LIBS_HOME=%LIBBYLIBS%\javalibs
 
REM CR16431 Use Xerces and Xalan on miggins
REM CR18246 MAB 14/02/2006 - Update to latest xerces & xalan
set XERCES_PATH=%LIBBYLIBS%\xmllibs\xerces-c-src_2_7_0
set XALAN_PATH=%LIBBYLIBS%\xmllibs\xml-xalan_1_10_0
set ICULIB_PATH=%LIBBYLIBS%\langlibs\icu_3_4_1

REM CR14558 -- Added support for DB2
REM -- Setup the include and lib directories for DB2 CLI
REM CR17184 SAC 03-06-05: use V8 DB2 headers and libraries
REM
REM CR17276 - CJED 25-JUL-2005 - allow DB2 builds on Win32 without DB2 install
REM
REM CR17387 - HP 2005-08-12 DB2 library path changes for Windows_NT\x86
set DB2_INCLUDE=%LIBBYLIBS%\db2libs\82\%OS%\%PROCESSOR_ARCHITECTURE%\include
set DB2_LIB=%LIBBYLIBS%\db2libs\82\%OS%\%PROCESSOR_ARCHITECTURE%\lib
if "%DBENGINE%" == "DB2" GOTO set_db2stuff
GOTO skip_db2stuff
:set_db2stuff
set PATH=%PATH%;%LIBBYLIBS%\db2libs\82\%OS%\%PROCESSOR_ARCHITECTURE%\bin
:skip_db2stuff

REM -- This is the default for Oracle which is now 10G
REM -- CR16139 CJED 25-FEB-2005 - add Oracle 10G libs if building for 10G

if "%SWORAVER%" == "none" GOTO skip_oralibs

REM -- CR17384 HP 2005-08-12 Oracle library path changes for Windows_NT\x86
REM -- CR18500 CJED 07-APR-2006 - moved to Oracle 10G 10.2 release
if "%SWORAVER%" == "9i" GOTO oralibs_9i
if "%SWORAVER%" == "11g" GOTO oralibs_11g
set OCI_INCLUDE=%LIBBYLIBS%\oralibs\10.2.0.4\%OS%\%PROCESSOR_ARCHITECTURE%\oci\include
set OCI_LIB=%LIBBYLIBS%\oralibs\10.2.0.4\%OS%\%PROCESSOR_ARCHITECTURE%\oci\lib\msvc;%LIBBYLIBS%\oralibs\10.2.0.4\%OS%\%PROCESSOR_ARCHITECTURE%\RDBMS\xa;%LIBBYLIBS%\oralibs\10.2.0.4\%OS%\%PROCESSOR_ARCHITECTURE%\oci\lib
set PATH=%LIBBYLIBS%\oralibs\10.2.0.4\%OS%\%PROCESSOR_ARCHITECTURE%\bin;%PATH%
goto skip_oralibs
:oralibs_11g
set OCI_INCLUDE=%LIBBYLIBS%\oralibs\11.2.0.3\%OS%\%PROCESSOR_ARCHITECTURE%\oci\include
set OCI_LIB=%LIBBYLIBS%\oralibs\11.2.0.3\%OS%\%PROCESSOR_ARCHITECTURE%\oci\lib\msvc;%LIBBYLIBS%\oralibs\11.2.0.3\%OS%\%PROCESSOR_ARCHITECTURE%\RDBMS\xa;%LIBBYLIBS%\oralibs\11.2.0.3\%OS%\%PROCESSOR_ARCHITECTURE%\oci\lib
set PATH=%LIBBYLIBS%\oralibs\11.2.0.3\%OS%\%PROCESSOR_ARCHITECTURE%\bin;%PATH%
goto skip_oralibs
:oralibs_9i
REM -- CR19360 Now use 9.2.0.8 libs for Oracle 9
set OCI_INCLUDE=%LIBBYLIBS%\oralibs\9.2.0.8\%OS%\%PROCESSOR_ARCHITECTURE%\oci\include
set OCI_LIB=%LIBBYLIBS%\oralibs\9.2.0.8\%OS%\%PROCESSOR_ARCHITECTURE%\oci\lib\msvc;%LIBBYLIBS%\oralibs\9.2.0.8\%OS%\%PROCESSOR_ARCHITECTURE%\RDBMS\xa
set PATH=%LIBBYLIBS%\oralibs\9.2.0.8\%OS%\%PROCESSOR_ARCHITECTURE%\bin;%PATH%
:skip_oralibs

REM CR10978 SAC 29-01-02: set up PATH to MS SDK
REM
set MSSDK_INCLUDE=%ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\include
set MSSDK_LIB=%ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\lib

REM CR17261 MAB 04-07-2005 - Set up PATH to Tibco Hawk AMI
REM
set HAWK_ROOT=%LIBBYLIBS%\tibcolibs\hawk_4_8_1\hawk
set RV_ROOT=%LIBBYLIBS%\tibcolibs\rv_8_1_0\tibrv
set HAWK_LIB_PATH=%HAWK_ROOT%\ami_api\lib\win32
set RV_LIB_PATH=%RV_ROOT%\lib\win32

REM CR14344 -- Decouple Oracle from implying queues using AQ and events using AQ
REM SAC CR14206 10-03-04: set defaults for DB variants
REM
REM ORACLE:    Oracle AQ's & COM+ events
REM MS-SQL:    Database queues & COM+ events
REM DB2:    Database queues, queue daemon & Staffware events
REM
if "%DBENGINE%" == "ORACLE" set IQL=AQ& set IEL=MS
if "%DBENGINE%" == "MSSQL"  set IQL=SW& set IEL=MS
if "%DBENGINE%" == "DB2"    set IQL=SW& set IEL=SW

REM    CR14206 SAC 18-09-03: Set flags to build using the RPC database queue daemon for DB2
REM
if "%DBENGINE%" == "DB2" set SWCFLAGS=%SWCFLAGS% -D"_SWDBQD_"&set SWDBQD=1

REM set flags to MSSQL
if "%DBENGINE%" == "MSSQL" set SWCFLAGS=%SWCFLAGS% -D"MSSQL"

REM CR14344 -- Override default Independent Queue Layer
REM set IQL=AQ

REM CR14344 -- Override default Independent Event Layer
REM set IEL=MS

REM CR14344 -- Allow code to choose which layers to use for Queues and Events
set SWCFLAGS=%SWCFLAGS% -D"%IQL%IQL" -D"%IEL%IEL"

REM **************************************
REM    NO EDITING REQUIRED BELOW HERE
REM **************************************

REM     Set compiler flags
REM
REM SAC 19-01-05: increase FD_SETSIZE: 4096 --> 32767
set SWCFLAGS=%SWCFLAGS% -c -W3 -nologo -D"FD_SETSIZE=32767"

REM    Set linker flags
REM
REM VC7 set SWLFLAGS=-NODEFAULTLIB:libcmt -NODEFAULTLIB:libcmtd -NODEFAULTLIB:msvcrt -NODEFAULTLIB:msvcrtd
set SWLFLAGS=

REM CR15384 -- Allow PDBs to be generated for both RELEASE and DEBUG builds
set SWCFLAGS=%SWCFLAGS% -DEBUG
set SWLFLAGS=%SWLFLAGS% -DEBUG

REM CR12283 SAC 30-09-02: setup the link flags for use with SmartHeap
REM                       we need one for non-MFC apps and one for MFC apps
REM
set SWLNKFLAGS_DBG=%SWLFLAGS% -DEBUGTYPE:CV
set SWLNKFLAGS_REL=%SWLFLAGS%
set SWLNKFLAGS_MFC_DBG=%SWLFLAGS% -DEBUGTYPE:CV
set SWLNKFLAGS_MFC_REL=%SWLFLAGS% shmfc4m.lib

REM     Set flags for Staffware debugging
REM
set SWMONFLAGS=-D"TDBG" -D"FDBG" -D"NDBG" -D"UDBG" -D"pDBG" -D"MDBG" -D"lDBG" -D"BDBG"
set SWMONFLAGS=%SWMONFLAGS% -D"LDBG" -D"RDBG" -D"yDBG" -D"QDBG" -D"CDBG" -D"cDBG"
set SWMONFLAGS=%SWMONFLAGS% -D"sDBG" -D"SDBG" -D"DDBG" -D"mDBG" -D"PDBG" -D"VDBG"
set SWMONFLAGS=%SWMONFLAGS% -D"qDBG" -D"XDBG" -D"zDBG" -D"rDBG" -D"KDBG" -D"vDBG"
set SWMONFLAGS=%SWMONFLAGS% -D"kDBG" -D"nDBG" -D"aDBG" -D"dDBG" -D"YDBG" -D"eDBG"
set SWMONFLAGS=%SWMONFLAGS% -D"bDBG" -D"hDBG" -D"iDBG" -D"fDBG" -D"ZDBG" -D"gDBG"
set SWMONFLAGS=%SWMONFLAGS% -D"EDBG" -D"IDBG" -D"oDBG" -D"xDBG" -D"wDBG"

REM     Set build flags
REM
REM CR19326 SAC 23-10-06: changed _WIN32_WINNT from 0x500 to 0x501 so that
REM we support the interface GetSystemWow64Directory()
REM
set SWCFLAGS=%SWCFLAGS% -D"CLEAN32" -D"WIN32" -D"WINDOWS" -D"_WINDOWS"
set SWCFLAGS=%SWCFLAGS% -D"SWMONITOR" -D"WINDOWSOS2" -D"CLEAN32OS2"
set SWCFLAGS=%SWCFLAGS% -D"WIN32_UNIX_OS2" -D"WIN32OS2" -D"WIN32_UNIX"
set SWCFLAGS=%SWCFLAGS% -D"SW4_WIN32SERVER" -D_WIN32_WINNT=0x0501


REM     Set flags for using internally generated password
REM
set SWCFLAGS=%SWCFLAGS% -D"SW_INTERNAL_PWD"

REM     Use below for building with long user and nodenames enabled
REM
REM set SWCFLAGS=%SWCFLAGS% -D"LONG_USER_NODE_NAME" /* CR7049 no longer required */
set LONG_USER_NODE_NAME=1

REM     Set this to DEBUG for a DEBUG build
REM
REM set SWBUILD=RELEASE
set SWBUILD=DEBUG

REM set SWCFLAGS=%SWCFLAGS% -D"DEVDEBUG"

REM     For security in the RPC server, use the following
REM
set SECURITY=1
set SWCFLAGS=%SWCFLAGS% -D"SECURITY"

REM CR8527 set this for DG build. Also PRESTAFFPMS required for prepro to correctly add WG to staffpms.
REM for non-OEM/DATAGENERAL installations, comment out the 2 lines below. 26/07/2000.
REM set SWFLAGS=%SWFLAGS% -DDATAGENERAL
REM set PRESTAFFPMS=-DDATAGENERAL


IF NOT DEFINED SW_BUILD_BROWSE GOTO set_swflags
set SWCFLAGS=%SWCFLAGS% /FR

:set_swflags
set SWFLAGS=%SWMONFLAGS%

REM     Setup the debug & release compile flags
REM
set SWCFLAGS_DBG=%SWCFLAGS% -MTd -Zi
set SWCFLAGS_REL=%SWCFLAGS% -O2 -MT

REM     Setup the source directory
REM
set SWSRCS=%SWBASE%

REM     Setup the binary output directories
REM
IF DEFINED SW_ISHIELD GOTO inshield
echo *** Microsoft Setup Build ***
set SWBINS=%SWBASE%\%SWLANG%\bin
GOTO continue

:inshield
echo *** InstallShield Build ***
REM CR19748 MAB 07/02/2007 - Enable multiple concurrent builds.
set SWBUILDLANG=%SWBASE%\%SWLANG%
set SWINSTBASE=C:\temp\swdist\svr
set SWINSTLANG=%SWINSTBASE%\%SWLANG%


set SWBINS=%SWBUILDLANG%\bin
set SWTEXT=%SWBUILDLANG%\text
set SWSDKS=%SWBUILDLANG%\sdks
set SWJAVA=%SWBUILDLANG%\java
set SWTOMCAT=%SWBUILDLANG%\tomcat


set SW_INST_BINS=%SWINSTLANG%\bin
set SW_INST_TEXT=%SWINSTLANG%\text
set SW_INST_JAVA=%SWINSTBASE%\java
set SW_INST_TOMCAT=%SWINSTBASE%\tomcat
set SW_INST_SDKS=%SWINSTBASE%\sdks


:continue
set SWOBJS=%SWBASE%\%SWLANG%\objs
set SWLIBS=%SWBASE%\%SWLANG%\lib

REM     Where is the data for the SWDIR ?
REM   
set INISWDIR=%SWBASE%\install.nt\iniswdir

REM     Add the bin directory to the path
REM
REM VC7 set PATH=%SWBASE%\install.nt\bin;%SWBASE%\install.nt\bin\%SWMACH%;%PATH%
set PATH=%SWBASE%\bin;%PATH%
 
REM     Set up the INCLUDE directories
REM
set SWINC=%SWSRCS%\swinc
set INCLUDE=%INCLUDE%;%SWINC%;%SWINC%\fil;%SWINC%\sal;%SWINC%\swlibs;%SWINC%\rpc
set INCLUDE=%INCLUDE%;%SWSRCS%\sal\swinc
set INCLUDE=%INCLUDE%;%SWINC%\util
set INCLUDE=%INCLUDE%;%SWINC%\rpc
set INCLUDE=%INCLUDE%;%SWINC%\s4u
set INCLUDE=%INCLUDE%;%SWSRCS%\fil\swinc
REM SID 01/07/99 - FILSHARE - added new FILSHARE swinc
set INCLUDE=%INCLUDE%;%SWSRCS%\filshare\swinc
set INCLUDE=%INCLUDE%;%SWSRCS%\pro\swinc
set INCLUDE=%INCLUDE%;%SWSRCS%\swldap\swinc
REM swchrset.i is now in swinc\swlibs
REM set INCLUDE=%INCLUDE%;%SWSRCS%\swinc\swchrset
set INCLUDE=%INCLUDE%;%SWSRCS%\swinc\pro
set INCLUDE=%INCLUDE%;%SWSRCS%\swinc\wqs
set INCLUDE=%INCLUDE%;%SWSRCS%\util.nt\swinc
set INCLUDE=%INCLUDE%;%SWSRCS%\wqs\swinc
set INCLUDE=%INCLUDE%;%SWSRCS%\pthread

set INCLUDE=%INCLUDE%;%JAVA_HOME%\include
set INCLUDE=%INCLUDE%;%JAVA_HOME%\include\win32

REM     Put the MS SDK on the LIB and INCLUDE path
REM
REM CR18246 MAB 16/03/2006 - Added RV include to the path
REM
set INCLUDE=%HAWK_ROOT%\ami_api\include;%RV_ROOT%\include;%MSSDK_INCLUDE%;%INCLUDE%
set LIB=%MSSDK_LIB%;%LIB%

REM     Set up the LIB path
REM
REM VC7 set LIB=%LIB%;%SWSRCS%\binaries.nt\%SWMACH%

REM    CR16151 SAC 10.08.2004: winrpc.h header is with Noblenet source
REM
set INCLUDE=%INCLUDE%;%SWSRCS%\portmap\sunrpc4

REM CR12283 SAC 30-09-02: add SmartHeap to LIB and INCLUDE paths
REM CJED 30-SEP-2004 - added binaries to PATH to allow build
REM CR16062 Update version of smartheap
set INCLUDE=%INCLUDE%;%SWSRCS%\SmartHeap\SmartHeap_9.01smp\windows\x86\include
set LIB=%LIB%;%SWSRCS%\SmartHeap\SmartHeap_9.01smp\windows\x86\msvc
set LIB=%LIB%;%SWSRCS%\SmartHeap\SmartHeap_9.01smp\windows\x86\msvc\vc7
set PATH=%SWSRCS%\SmartHeap\SmartHeap_9.01smp\windows\x86\bin;%PATH%

REM CR16431 setup path finding java and ant
set PATH=%ANTLOCATION%;%JAVALOCATION%;%PATH%

REM CR12283 SAC 30-09-02: specify the SmartHeap objects to be linked in
REM
set SMARTHEAP_DBG_OBJS=
set SMARTHEAP_REL_OBJS=%SWOBJS%\SmartHeap\shsmp.obj

REM CR14206 SAC 10-03-04: output some info about build
REM

REM Database
REM

IF "%DBENGINE%" == "ORACLE" GOTO OraInfo
IF "%DBENGINE%" == "MSSQL" echo *** MS-SQL database ***
IF "%DBENGINE%" == "DB2" echo *** DB2 database ***
GOTO NotOraDb

:OraInfo
IF "%SWORAVER%" == "9i" echo *** Oracle 9i database ***
IF "%SWORAVER%" == "10g" echo *** Oracle 10g database ***
IF "%SWORAVER%" == "11g" echo *** Oracle 11g database ***
:NotOraDb

REM Queuing technology
REM
IF "%IQL%" == "SW" echo *** Staffware database queues ***
IF "%IQL%" == "AQ" echo *** Oracle AQ's ***
IF "%IQL%" == "MS" echo *** MSMQ's (obsolete) ***

REM Event technology
REM
IF "%IEL%" == "SW" echo *** Staffware events ***
IF "%IEL%" == "AQ" echo *** Oracle AQ events ***
IF "%IEL%" == "MS" echo *** COM+ events ***

REM Database queue daemon
REM
IF "%SWDBQD%" == "1" echo *** Database queue daemon ***

REM set the command windows title
REM
IF "%DBENGINE%" == "ORACLE" title %DBENGINE% %SWORAVER% %IQL%IQL %IEL%IEL
IF NOT "%DBENGINE%" == "ORACLE" title %DBENGINE% %IQL%IQL %IEL%IEL




你可能感兴趣的:(oracle,Microsoft,db2,database,Path,include)