summary refs log tree commit diff stats
path: root/win32/build-x86.bat
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-12-11 14:29:37 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-12-11 14:29:37 +0100
commit2012320d0eed36e0461e44ac9be8cc162c135bf5 (patch)
tree6c8674c36fa245b421c38b60f7031a71a0b2ad4b /win32/build-x86.bat
parent1b84f0467a169e2b20018dce0787973a0ba52273 (diff)
restructuring
Diffstat (limited to 'win32/build-x86.bat')
-rw-r--r--win32/build-x86.bat45
1 files changed, 45 insertions, 0 deletions
diff --git a/win32/build-x86.bat b/win32/build-x86.bat
new file mode 100644
index 00000000..85c7c2d1
--- /dev/null
+++ b/win32/build-x86.bat
@@ -0,0 +1,45 @@
+@echo off
+set WDK_ROOT=c:\WinDDK\7600.16385.1
+set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\api\crt\stl70;%WDK_ROOT%\inc\mfc42;%WDK_ROOT%\inc\ddk;%WDK_ROOT%\inc\api\dao360
+set LIB=%WDK_ROOT%\lib\wxp\i386;%WDK_ROOT%\lib\Crt\i386;%WDK_ROOT%\lib\Mfc\i386;%WDK_ROOT%\lib\ATL\i386
+set OPATH=%PATH%
+set DEV_32=%cd%\deps-x86
+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;c:\mozilla-build\gendef
+set PERL_512=c:\mozilla-build\perl-5.12-x86\perl
+set PERL_514=c:\mozilla-build\perl-5.14-x86\perl
+echo [Setup] > xchat-wdk-x86.iss
+echo WizardImageFile=%cd%\bitmaps\wizardimage.bmp >> xchat-wdk-x86.iss
+echo WizardSmallImageFile=%cd%\bitmaps\wizardsmallimage.bmp >> xchat-wdk-x86.iss
+del version.exe
+cl /nologo version.c
+version -a32 >> xchat-wdk-x86.iss
+version -v >> xchat-wdk-x86.iss
+version -i >> xchat-wdk-x86.iss
+version -o32 >> xchat-wdk-x86.iss
+cd ..
+win32\version -r > resource.h
+echo SetupIconFile=%cd%\xchat.ico >> win32\xchat-wdk-x86.iss
+type win32\xchat-wdk-x86.skel.iss >> win32\xchat-wdk-x86.iss
+cd src
+echo DEV = %DEV_32% > makeinc.mak
+type makeinc.skel.mak >> makeinc.mak
+nmake /nologo /f makefile.mak clean
+nmake /nologo /f makefile.mak
+cd ..\plugins
+nmake /nologo /f makefile.mak clean
+nmake /nologo /f makefile.mak
+cd perl
+set OOPATH=%PATH%
+set PATH=%OOPATH%;%PERL_512%\bin
+nmake /nologo /s /f makefile-512.mak clean
+nmake /nologo /s /f makefile-512.mak
+set PATH=%OOPATH%;%PERL_514%\bin
+nmake /nologo /s /f makefile-514.mak clean
+nmake /nologo /s /f makefile-514.mak
+cd ..\..\win32
+call compile-po-files.bat
+set PATH=%OPATH%
+call release-x86.bat
+set PATH=%PROGRAMFILES(X86)%\Inno Setup 5
+compil32 /cc xchat-wdk-x86.iss
+pause