Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* SETMOZENV.CMD - A utility for setting up the build environment for Warpzilla */
- /* V 1.1 - mkaply - proper support for GLIB and LIBIDL */
- /* V 1.2 - mkaply - use EMX2, not emx_string */
- /* V 1.3 - mkaply - Support for a better PERL */
- /* V 1.4 - mkaply - Support for an even better PERL */
- /* V 1.5 - mkaply - Support for changing FLOCK and perl shell */
- /* V 1.6 - mkaply - Make VACPP the default */
- /* V 1.7 - mkaply - GCC 3.2.1 support */
- /* V 1.8 - pedemont - GCC 3.3.5 Beta 1 support */
- /* V 1.9 - pedemont - remove VACPP support */
- /* V 1.10 - pedemont - replace bash.exe with ash.exe */
- /* V 1.11 - pedemont - add INCLUDE env variable */
- /* V 1.12 - Silvan Scherrer - change all references from u: to %unixroot% */
- /* adjusted the CPLUS_INCLUDE_PATH env, removed double entry of qt */
- /* v 1.13 - Silvan Scherrer - changed all references for qt with %qtdir% */
- /* v 1.14 - Silvan Scherrer - added debugger */
- /* v 1.15 - Silvan Scherrer - added IPFC env */
- /* v 1.16 - Silvan Scherrer - changed all %unixroot%/usr to %gccdir%/usr */
- /* v 1.17 - Silvan Scherrer - adjusted python path */
- /* v 1.18 - Silvan Scherrer - added gcc 442 support */
- /* v 1.19 - Silvan Scherrer - cups support via set command */
- /* v 1.20 - Silvan Scherrer - adjusted cplus_include_path */
- /* v 1.21 - Silvan Scherrer - emxomfopt added */
- /* v 1.22 - Silvan Scherrer - remove python stuff as installed systemwide */
- /* v 1.23 - Silvan Scherrer - use systemwide unixroot transition to rpm */
- /* v 1.24 - Silvan Scherrer - adjusted qt4 path to shadow builds */
- /* v 1.25 - Silvan Scherrer - gcc 4.4.6 */
- /* v 1.26 - Silvan Scherrer - watcom support */
- /* v 1.27 - Silvan Scherrer - perl adjusted */
- /* v 1.28 - Silvan Scherrer - add uixtools */
- /* v 1.29 - Silvan Scherrer - get dir of moztools and extras */
- /* v 1.30 - Silvan Scherrer - remove perl stuff, as rpm installed */
- /* v 1.31 - Silvan Scherrer - added usr\local\bin to the path */
- /* v 1.32 - Silvan Scherrer - gcc 4.7.3 */
- /* v 1.33 - Silvan Scherrer - remove emxomf options as handled by rpm */
- /* v 1.34 - Silvan Scherrer - remove some unneeded stuff */
- /* v 1.35 - Silvan Scherrer - remove config.site */
- /* v 1.36 - Silvan Scherrer - remove all autoconf stuff in here */
- /* v 1.37 - Silvan Scherrer - remove more set= */
- /* be quiet */
- '@ECHO OFF'
- /* If SETMOZENV has alread been run, don't run it again */
- if value('DEVENV',,'OS2ENVIRONMENT') = '1' THEN
- DO
- exit
- END
- 'SET unixroot=c:'
- 'set DEVENV=1'
- 'set lang=en_US'
- 'set programs='
- 'set qmakespec=os2-g++'
- 'set qtdir=%unixroot%\usr\lib\qt4'
- 'set PKG_CONFIG_PATH=c:/usr/lib/pkgconfig;c:/extras/lib/pkgconfig'
- 'set lrelease=%qtdir%/bin/lrelease.exe'
- 'set moc=%qtdir%\bin\moc.exe'
- 'set uic=%qtdir%\bin\uic.exe'
- 'SET PATH_EMXPGCC=%unixroot%\usr'
- 'SET JAM_TOOLSET=gcc'
- 'set gcc=%unixroot%\usr'
- 'SET CCENV=EMX'
- 'SET BUILD_ENV=EMX'
- 'SET BUILD_PLATFORM=os2'
- 'SET DEBUG_PATH=d:\tools\jitdbg'
- 'SET cups=c:/cups'
- 'SET cups_includepath=%cups%\include'
- 'SET cups_libs='
- 'SET WATCOM=e:\WATCOM'
- 'SET gccversion=4.9.2'
- /* Figure out what drive the utility was run on and set it as ROOT */
- PARSE SOURCE command
- PARSE VAR command word1 word2 path
- PARSE UPPER VALUE path WITH root':\'therest
- 'SET ROOT='root':'
- /* If the environment variable GCCDIR is set, use it, otherwise assume GCCDIR is a directory off of ROOT */
- if value('GCCDIR',,'OS2ENVIRONMENT') = '' THEN
- DO
- 'SET GCCDIR=%gcc%'
- END
- /* Create an environment variable GCCDIR2 with forward slashes instead of backslashes */
- 'SET GCCDIR2='backtoforward(value('GCCDIR',,'OS2ENVIRONMENT'));
- /* If the environment variable TOOLKIT is set, use it, otherwise assume TOOLKIT is a directory off of ROOT */
- if value('TOOLKIT',,'OS2ENVIRONMENT') = '' THEN
- DO
- 'SET TOOLKIT=%ROOT%\os2tk45'
- END
- /* Create an environment variable TOOLKIT2 with forward slashes instead of backslashes */
- 'SET TOOLKIT2='backtoforward(value('TOOLKIT',,'OS2ENVIRONMENT'));
- /* If a HOME environment variable is not set, set it */
- if value('HOME',,'OS2ENVIRONMENT') = '' THEN
- DO
- 'set HOME=%ROOT%\HOME'
- END
- 'SET BEGINLIBPATH=%BEGINLIBPATH%;%qtdir%\bin'
- 'SET PATH=%unixroot%\usr\bin;%unixroot%\usr\libexec\bin;%qtdir%\bin;%PATH%;%unixroot%\extras\bin'
- 'SET DPATH=%DPATH%;%TOOLKIT%\msg'
- /* REM *** shell settings **** */
- 'set SHELL=sh.exe'
- 'SET CONFIG_SHELL=sh.exe'
- 'SET MAKESHELL=sh.exe'
- /* REM *** Compiler settings **** */
- /* 'set CC=gcc' */
- /*'set CXX=g++' */
- 'SET C_INCLUDE_PATH=%GCCDIR2%/lib/gcc/i386-pc-os2-emx/%gccversion%/include;%GCCDIR2%/include;%TOOLKIT2%/H;%unixroot%/extras/include;%qtdir%/include;%cups%/include'
- 'SET CPLUS_INCLUDE_PATH=%GCCDIR2%/include/c++/%gccversion%;%GCCDIR2%/include/c++/%gccversion%/i386-pc-os2-emx;%GCCDIR2%/lib/gcc/i386-pc-os2-emx/%gccversion%/include'
- 'SET CPLUS_INCLUDE_PATH=%CPLUS_INCLUDE_PATH%;%unixroot%/extras/include;%qtdir%/include;%cups%/include;%GCCDIR2%/include/c++/%gccversion%/backward;%GCCDIR2%/include;G:\boost-1.57'
- 'SET LIBRARY_PATH=%unixroot%/extras/lib;%gccdir2%/lib;%gccdir2%/lib/gcc/i386-pc-os2-emx/%gccversion%;%qtdir%/lib;%cups%/lib;C:\OS2\DLL;C:\MPTN\DLL'
- 'SET LIB=%unixroot%\extras\lib;%GCCDIR2%\lib;%qtdir%\lib;%cups%\lib;G:\boost-1.57\stage\lib'
- 'SET GCCLOAD=5'
- 'SET GCCOPT=-pipe'
- 'SET EMXOPT=-c -n -h1024'
- 'SET TERMCAP=%EMX2%/etc/termcap.dat'
- 'rem SET TERM=ansi-color-3'
- 'SET INFOPATH=%EMX2%/info;%unixroot%/usr/share/info'
- 'SET EMXBOOK=emxdev.inf+emxlib.inf+emxgnu.inf+emxbsd.inf'
- 'SET HELPNDX=EPMKWHLP.NDX+CPP.NDX+CPPBRS.NDX+emxbook.ndx'
- /* rem *** ASH SHELL STUFF */
- /* for some reason, ash.exe ignores the first entry in my PATH when called */
- /* from make; create a dummy path at the beginning in order to make it work */
- 'SET PATH=%ROOT%\foo;%TOOLKIT%\bin;%PATH%'
- /* rem *** MOZILLA BUILD **** */
- 'set tmp=%unixroot%/temp/tmp'
- 'SET TEMP=%TMP%'
- 'SET TMPDIR=%TMP%'
- /* set the IPFC env for the ipf compiler */
- 'SET IPFC=%TOOLKIT%\ipfc'
- /* Is debugger_path set */
- if value('DEBUG_PATH',,'OS2ENVIRONMENT') <> '' THEN
- DO
- 'SET PATH=%PATH%;%Debug_path%\bin'
- 'SET BEGINLIBPATH=%BEGINLIBPATH%;%Debug_path%\dll'
- 'SET DPATH=%DPATH%;%Debug_path%\help'
- 'SET HELP=%HELP%;%Debug_path%\help'
- END
- /* set the watcom stuff here */
- 'SET PATH=%PATH%;%watcom%\binp;%watcom%\binw'
- 'SET BEGINLIBPATH=%BEGINLIBPATH%;%watcom%\binp\dll'
- 'SET BOOKSHELF=%BOOKSHELF%;%watcom%\binp\help'
- 'SET HELP=%HELP%;%watcom%\binp\help'
- 'SET INCLUDE=%watcom%\H;%watcom%\H\OS2'
- 'SET EDPATH=%watcom%\EDDAT'
- 'SET WIPFC=%watcom%\WIPFC'
- /* REM *** Set user debug info here *** */
- 'set LOGNAME=%hostname%'
- 'set USER=%hostname%'
- 'set SYSTEMNAME=%hostname%'
- exit
- backtoforward: procedure
- arg pathname
- return Translate(pathname, '/', '\')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement