cec: fixed compiler warning after 45de9d9fb1cdefce6ecb53f372a9947480046bba
[deb_libcec.git] / project / create-installer.cmd
CommitLineData
09054f70
LOK
1@echo off
2
3set NSIS="C:\Program Files (x86)\NSIS\makensis.exe"
4set DDK=C:\WinDDK\7600.16385.1
5
6IF "%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
14rem Compile libCEC
15echo Cleaning libCEC
f93e2ad3 16%COMPILER% libcec.sln /clean Release
09054f70
LOK
17
18echo Compiling libCEC
f93e2ad3
LOK
19%COMPILER% libcec.sln /clean Release
20%COMPILER% libcec.sln /build Release
09054f70
LOK
21
22rem Copy driver installer
23echo Copying driver installer
24copy "%DDK%\redist\DIFx\dpinst\MultiLin\amd64\dpinst.exe" ..\dpinst-amd64.exe
25copy "%DDK%\redist\DIFx\dpinst\MultiLin\x86\dpinst.exe" ..\dpinst-x86.exe
26
27rem Run the NSIS installer
28echo Creating the installer
29%NSIS% /V1 /X"SetCompressor /FINAL lzma" "libCEC.nsi"
30
31echo The installer can be found here: libCEC-installer.exe