X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=support%2Fcreate-installer.cmd;h=1d76a37a9f748275ff5698767a6b8b8f8ffca7b0;hb=96fa7764c1af5034afaba2646831df0a74419249;hp=6a6648679799c7fa75b57cf2470a3a9417613618;hpb=7c6346eb117a1e0e66c782b79be71067ead1e6b4;p=deb_libcec.git diff --git a/support/create-installer.cmd b/support/create-installer.cmd index 6a66486..1d76a37 100644 --- a/support/create-installer.cmd +++ b/support/create-installer.cmd @@ -20,12 +20,15 @@ IF "%VS100COMNTOOLS%"=="" ( set COMPILER10="%VS100COMNTOOLS%\..\IDE\devenv.exe" ) ELSE GOTO NOSDK10 -cd ..\project - del /s /f /q ..\build mkdir ..\build + +call create-driver-installer.cmd + mkdir ..\build\x64 +cd ..\project + rem Skip to libCEC/x86 when we're running on win32 if "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" goto libcecx86 @@ -64,9 +67,11 @@ echo. Cleaning LibCecSharp (x64) echo. Compiling LibCecSharp (x64) %COMPILER9% LibCecSharp.sln /build "Release|x64" /project LibCecSharp %COMPILER9% LibCecSharp.sln /build "Release|x64" /project CecSharpTester +%COMPILER9% LibCecSharp.sln /build "Release|x64" /project cec-config-gui copy ..\build\LibCecSharp.dll ..\build\x64\LibCecSharp.dll copy ..\build\CecSharpTester.exe ..\build\x64\CecSharpTester.exe +copy ..\build\cec-config-gui.exe ..\build\x64\cec-config-gui.exe :libcecsharpx86 rem Compile LibCecSharp (x86) @@ -75,21 +80,21 @@ echo. Cleaning LibCecSharp (x86) echo. Compiling LibCecSharp (x86) %COMPILER9% LibCecSharp.sln /build "Release|x86" /project LibCecSharp %COMPILER9% LibCecSharp.sln /build "Release|x86" /project CecSharpTester +%COMPILER9% LibCecSharp.sln /build "Release|x86" /project cec-config-gui :NOSDK9 -echo. Copying driver installer -copy "%DDK%\redist\DIFx\dpinst\MultiLin\amd64\dpinst.exe" ..\build\dpinst-amd64.exe -copy "%DDK%\redist\DIFx\dpinst\MultiLin\x86\dpinst.exe" ..\build\dpinst-x86.exe - rem Clean things up before creating the installer -del ..\build\LibCecSharp.pdb -del ..\build\CecSharpTester.pdb +del /q /f ..\build\LibCecSharp.pdb +del /q /f ..\build\CecSharpTester.pdb +del /q /f ..\build\cec-config-gui.pdb +del /q /f ..\build\cec-config-gui.vshost.exe.manifest +del /q /f ..\build\cec-config-gui.vshost.exe copy ..\build\cec-client.x64.exe ..\build\x64\cec-client.x64.exe -del ..\build\cec-client.x64.exe +del /q /f ..\build\cec-client.x64.exe copy ..\build\libcec.x64.dll ..\build\x64\libcec.x64.dll -del ..\build\libcec.x64.dll +del /q /f ..\build\libcec.x64.dll copy ..\build\libcec.x64.lib ..\build\x64\libcec.x64.lib -del ..\build\libcec.x64.lib +del /q /f ..\build\libcec.x64.lib rem Check for sign-binary.cmd, only present on the Pulse-Eight production build system rem Calls signtool.exe and signs the DLLs with Pulse-Eight's code signing key @@ -99,10 +104,12 @@ CALL ..\support\sign-binary.cmd ..\build\cec-client.exe CALL ..\support\sign-binary.cmd ..\build\CecSharpTester.exe CALL ..\support\sign-binary.cmd ..\build\libcec.dll CALL ..\support\sign-binary.cmd ..\build\LibCecSharp.dll +CALL ..\support\sign-binary.cmd ..\build\cec-config-gui.exe CALL ..\support\sign-binary.cmd ..\build\x64\cec-client.x64.exe CALL ..\support\sign-binary.cmd ..\build\x64\CecSharpTester.exe CALL ..\support\sign-binary.cmd ..\build\x64\libcec.x64.dll CALL ..\support\sign-binary.cmd ..\build\x64\LibCecSharp.dll +CALL ..\support\sign-binary.cmd ..\build\x64\cec-config-gui.exe :CREATEINSTALLER echo. Creating the installer @@ -136,4 +143,12 @@ GOTO EXIT echo. The installer could not be created. The most likely cause is that something went wrong while compiling. :EXIT +del /q /f ..\build\cec-client.exe +del /q /f ..\build\CecSharpTester.exe +del /q /f ..\build\cec-config-gui.exe +del /q /f ..\build\*.dll +del /q /f ..\build\*.lib +del /q /f ..\build\*.exp +del /s /f /q ..\build\x64 +rmdir ..\build\x64 cd ..\support \ No newline at end of file