Skip to content

Commit

Permalink
windows: fix resource files and backwards compat dll names
Browse files Browse the repository at this point in the history
  • Loading branch information
opdenkamp committed Apr 5, 2013
1 parent fec04a8 commit b419626
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 7 deletions.
Binary file added project/LibCecSharp.rc
Binary file not shown.
4 changes: 4 additions & 0 deletions project/LibCecSharp.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@
<ClInclude Include="..\include\cectypes.h" />
<ClInclude Include="..\src\LibCecSharp\resource.h" />
<ClInclude Include="..\src\lib\platform\windows\stdint.h" />
<ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="LibCecSharp.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
6 changes: 6 additions & 0 deletions project/LibCecSharp.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,11 @@
<ClInclude Include="..\src\lib\platform\windows\stdint.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="resource.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="LibCecSharp.rc" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion project/libCEC.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Section "CEC Debug Client" SecCecClient
SetOutPath "$INSTDIR"
File /x p8-usbcec-driver-installer.exe /x cec-tray.exe "..\build\*.exe"
SetOutPath "$INSTDIR\x64"
File /nonfatal /x cec-tray.exe "..\build\x64\*.exe"
File /nonfatal "..\build\x64\*.exe"

!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
SetOutPath "$INSTDIR"
Expand Down
Binary file modified project/libcec.rc
Binary file not shown.
1 change: 1 addition & 0 deletions project/libcec.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<ClInclude Include="..\src\lib\platform\windows\os-threads.h" />
<ClInclude Include="..\src\lib\platform\windows\os-types.h" />
<ClInclude Include="..\src\lib\platform\windows\stdint.h" />
<ClInclude Include="resource1.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\lib\adapter\AdapterFactory.cpp" />
Expand Down
1 change: 1 addition & 0 deletions project/libcec.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
<ClInclude Include="..\src\lib\adapter\AdapterFactory.h">
<Filter>adapter</Filter>
</ClInclude>
<ClInclude Include="resource1.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\lib\CECProcessor.cpp" />
Expand Down
14 changes: 14 additions & 0 deletions project/resource.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by testclient.rc

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
Binary file modified project/testclient.rc
Binary file not shown.
1 change: 1 addition & 0 deletions project/testclient.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
<ItemGroup>
<ClInclude Include="..\include\cec.h" />
<ClInclude Include="..\include\cecloader.h" />
<ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\lib\platform\windows\os-threads.cpp" />
Expand Down
1 change: 1 addition & 0 deletions project/testclient.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<ClInclude Include="..\include\cecloader.h">
<Filter>exports</Filter>
</ClInclude>
<ClInclude Include="resource.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\testclient\main.cpp" />
Expand Down
5 changes: 2 additions & 3 deletions src/CecSharpTester/CecSharpTester.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="CecSharpClient.cs" />
</ItemGroup>
<ItemGroup>
Expand All @@ -64,9 +65,7 @@
<Name>LibCecSharp</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
11 changes: 8 additions & 3 deletions support/create-installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ IF "%VS110COMNTOOLS%"=="" (
set COMPILER11="%VS110COMNTOOLS%\..\IDE\VCExpress.exe"
) ELSE IF EXIST "%VS110COMNTOOLS%\..\IDE\devenv.exe" (
set COMPILER11="%VS110COMNTOOLS%\..\IDE\devenv.exe"
) ELSE GOTO NOSDK10
) ELSE GOTO NOSDK11

del /s /f /q ..\build
mkdir ..\build
Expand Down Expand Up @@ -80,6 +80,10 @@ CALL ..\support\private\sign-binary.cmd ..\build\x64\cec-tray.exe

:CREATEINSTALLER
echo. Creating the installer
cd ..\build\x64
cp libcec.dll libcec.x64.dll
cp cec-client.exe cec-client.x64.exe
cd ..\..\project
%NSIS% /V1 /X"SetCompressor /FINAL lzma" "libCEC.nsi"

IF NOT EXIST "..\build\libCEC-installer.exe" GOTO :ERRORCREATINGINSTALLER
Expand All @@ -100,8 +104,8 @@ IF "%1%"=="" (
set EXITCODE=0
GOTO EXIT

:NOSDK10
echo. Both Visual Studio 2010 and Visual C++ Express 2010 were not found on your system.
:NOSDK11
echo. Visual Studio 2012 was not found on your system.
GOTO EXIT

:NOSIS
Expand All @@ -123,6 +127,7 @@ del /q /f ..\build\*.dll
del /q /f ..\build\*.lib
del /q /f ..\build\*.exp
del /q /f ..\build\*.xml
del /q /f ..\build\*.metagen
del /s /f /q ..\build\x64
rmdir ..\build\x64
cd ..\support
Expand Down

0 comments on commit b419626

Please sign in to comment.