2011-02-28 20:59:32 +03:00
@ echo off
2011-08-15 08:08:24 +04:00
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\wnet\amd64;%WDK_ROOT% \lib\Crt\amd64;%WDK_ROOT% \lib\Mfc\amd64;%WDK_ROOT% \lib\ATL\amd64
set OPATH = %PATH%
set DEV_64 = %cd% \..\dep-x64
2011-12-04 00:44:36 +04:00
set PATH = %PROGRAMFILES(X86)% \Microsoft Visual Studio 10.0\VC\bin\amd64;%PROGRAMFILES(X86)% \Microsoft SDKs\Windows\v7.0A\Bin\x64;%DEV_64% \bin;c:\mozilla-build\gendef
2011-07-27 06:51:28 +04:00
set PERL_512 = c:\mozilla-build\perl-5.12-x64\perl
2011-12-04 00:44:36 +04:00
set PERL_514 = c:\mozilla-build\perl-5.14-x64\perl
2011-11-23 04:35:45 +04:00
echo [Setup] > xchat-wdk-x64.iss
echo WizardImageFile=%cd% \bitmaps\wizardimage.bmp >> xchat-wdk-x64.iss
echo WizardSmallImageFile=%cd% \bitmaps\wizardsmallimage.bmp >> xchat-wdk-x64.iss
2011-08-15 08:08:24 +04:00
del version.exe
cl /nologo version.c
2011-11-23 04:35:45 +04:00
version -a64 >> xchat-wdk-x64.iss
version -v >> xchat-wdk-x64.iss
version -i >> xchat-wdk-x64.iss
version -o64 >> xchat-wdk-x64.iss
2011-02-28 20:59:32 +03:00
cd ..
2011-08-15 08:08:24 +04:00
build\version -r > resource.h
2011-11-23 04:35:45 +04:00
echo SetupIconFile=%cd% \xchat.ico >> build\xchat-wdk-x64.iss
2011-11-23 05:08:13 +04:00
type build\xchat-wdk-x64.skel.iss >> build\xchat-wdk-x64.iss
2011-02-28 20:59:32 +03:00
cd src
2011-08-15 08:08:24 +04:00
echo DEV = %DEV_64% > makeinc.mak
echo X64 = YES >> makeinc.mak
2011-02-28 20:59:32 +03:00
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
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
2011-08-15 08:08:24 +04:00
call compile-po-files.bat
2011-02-28 20:59:32 +03:00
set PATH = %OPATH%
call release-x64.bat
2011-11-23 04:35:45 +04:00
set PATH = %PROGRAMFILES(X86)% \Inno Setup 5
compil32 /cc xchat-wdk-x64.iss
2011-08-17 08:47:57 +04:00
pause