summary refs log tree commit diff stats
path: root/build/build-x86.bat
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2010-10-29 19:40:02 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2010-10-29 19:40:02 +0200
commit6d0fa458f0bd3209e452b28242fa4c32afbffecf (patch)
tree6fc919a26460a721432af3561d1b54d86f230a9c /build/build-x86.bat
parent82be51593735727056605b8e947281c9c19592ee (diff)
update wdk distribution to use relative paths where possible
Diffstat (limited to 'build/build-x86.bat')
-rw-r--r--build/build-x86.bat16
1 files changed, 10 insertions, 6 deletions
diff --git a/build/build-x86.bat b/build/build-x86.bat
index be345934..84345bd5 100644
--- a/build/build-x86.bat
+++ b/build/build-x86.bat
@@ -1,10 +1,14 @@
 @echo off
+set PERL_510=c:\mozilla-build\perl-5.10-x86
+set PERL_512=c:\mozilla-build\perl-5.12-x86
+set DEV_32=c:\mozilla-build\build\xchat-wdk\dep-x86
 cd ..\src
-type makeinc.skel > makeinc.mak
-set INCLUDE=c:\WinDDK\7600.16385.1\inc\api;c:\WinDDK\7600.16385.1\inc\crt;c:\WinDDK\7600.16385.1\inc\api\crt\stl70
-set LIB=c:\WinDDK\7600.16385.1\lib\wxp\i386;c:\WinDDK\7600.16385.1\lib\Crt\i386
+echo DEV32 = %DEV_32% > makeinc.mak
+type makeinc.skel >> makeinc.mak
+set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\api\crt\stl70
+set LIB=%WDK_ROOT%\lib\wxp\i386;%WDK_ROOT%\lib\Crt\i386
 set OPATH=%PATH%
-set PATH=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin;c:\mozilla-build\build\xchat-dev32\bin
+set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin;%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\Common7\IDE;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin;%DEV_32%\bin
 nmake /nologo /f makefile.mak clean
 cd pixmaps
 nmake /nologo /f makefile.mak
@@ -15,10 +19,10 @@ nmake /nologo /f makefile.mak clean
 nmake /nologo /f makefile.mak
 cd perl
 set OOPATH=%PATH%
-set PATH=%OOPATH%;c:\mozilla-build\perl-5.10-x86\bin
+set PATH=%OOPATH%;%PERL_510%\bin
 nmake /nologo /s /f makefile-510.mak clean
 nmake /nologo /s /f makefile-510.mak
-set PATH=%OOPATH%;c:\mozilla-build\perl-5.12-x86\bin
+set PATH=%OOPATH%;%PERL_512%\bin
 nmake /nologo /s /f makefile-512.mak clean
 nmake /nologo /s /f makefile-512.mak
 cd ..\..\build