win32: get LibCecSharp.dll directly from the Release dir since it's not copied to...
[deb_libcec.git] / project / create-installer.cmd
1 @echo off
2
3 set NSIS="C:\Program Files (x86)\NSIS\makensis.exe"
4 set DDK=C:\WinDDK\7600.16385.1
5
6 IF "%VS100COMNTOOLS%"=="" (
7 set COMPILER="%ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe"
8 ) ELSE IF EXIST "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" (
9 set COMPILER="%VS100COMNTOOLS%\..\IDE\VCExpress.exe"
10 ) ELSE IF EXIST "%VS100COMNTOOLS%\..\IDE\devenv.exe" (
11 set COMPILER="%VS100COMNTOOLS%\..\IDE\devenv.exe"
12 )
13
14 rem Compile libCEC
15 echo Cleaning libCEC
16 %COMPILER% libcec.sln /clean Release
17
18 echo Compiling libCEC
19 %COMPILER% libcec.sln /build Release /project libcec
20 echo Compiling cec-client
21 %COMPILER% libcec.sln /build Release /project testclient
22 echo Compiling LibCecSharp
23 %COMPILER% libcec.sln /build Release /project LibCecSharp
24
25 rem Copy driver installer
26 echo Copying driver installer
27 copy "%DDK%\redist\DIFx\dpinst\MultiLin\amd64\dpinst.exe" ..\dpinst-amd64.exe
28 copy "%DDK%\redist\DIFx\dpinst\MultiLin\x86\dpinst.exe" ..\dpinst-x86.exe
29
30 rem Run the NSIS installer
31 echo Creating the installer
32 %NSIS% /V1 /X"SetCompressor /FINAL lzma" "libCEC.nsi"
33
34 echo The installer can be found here: libCEC-installer.exe