2011-02-28 20:59:32 +03:00
@ echo off
2011-08-12 06:52:46 +04:00
set LIB = %WDK_ROOT% \lib\wxp\i386;%WDK_ROOT% \lib\Crt\i386;%WDK_ROOT% \lib\Mfc\i386;%WDK_ROOT% \lib\ATL\i386
2011-08-11 10:11:10 +04:00
set OPATH = %PATH%
set DEV_32 = %cd% \..\dep-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
2011-07-27 06:51:28 +04:00
set PERL_512 = c:\mozilla-build\perl-5.12-x86\perl
2011-05-31 00:52:02 +04:00
set PERL_514 = c:\mozilla-build\perl-5.14-x86
2011-02-28 20:59:32 +03:00
echo [Setup] > xchat-wdk.iss
echo WizardImageFile=%cd% \bitmaps\wizardimage.bmp >> xchat-wdk.iss
echo WizardSmallImageFile=%cd% \bitmaps\wizardsmallimage.bmp >> xchat-wdk.iss
2011-08-11 10:11:10 +04:00
del version.exe
cl /nologo version.c
version -a >> xchat-wdk.iss
version -v >> xchat-wdk.iss
version -i >> xchat-wdk.iss
version -o >> xchat-wdk.iss
2011-02-28 20:59:32 +03:00
cd ..
2011-08-11 10:11:10 +04:00
build\version -r > resource.h
2011-02-28 20:59:32 +03:00
echo SetupIconFile=%cd% \xchat.ico >> build\xchat-wdk.iss
type build\xchat-wdk.skel.iss >> build\xchat-wdk.iss
cd src
echo DEV = %DEV_32% > makeinc.mak
type makeinc.skel.mak >> makeinc.mak
nmake /nologo /f makefile.mak clean
cd pixmaps
nmake /nologo /f makefile.mak
cd ..
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
2011-05-31 00:52:02 +04:00
set PATH = %OOPATH% ;%PERL_514% \bin
nmake /nologo /s /f makefile-514.mak clean
nmake /nologo /s /f makefile-514.mak
2011-02-28 20:59:32 +03:00
cd ..\..\build
call compile-po-files.bat
set PATH = %OPATH%
call release-x86.bat