Skip to content

Commit

Permalink
clean up and got release build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgubanow committed Jul 31, 2020
1 parent 0f8cdd8 commit e03532c
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 116 deletions.
16 changes: 4 additions & 12 deletions hidapiw.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ Global
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A25A4B7E-7332-40BC-A944-F9517EF456A8}.Debug|x64.ActiveCfg = Debug|x64
{A25A4B7E-7332-40BC-A944-F9517EF456A8}.Debug|x64.Build.0 = Debug|x64
{A25A4B7E-7332-40BC-A944-F9517EF456A8}.Debug|x86.ActiveCfg = Debug|x86
{A25A4B7E-7332-40BC-A944-F9517EF456A8}.Debug|x86.Build.0 = Debug|x86
{A25A4B7E-7332-40BC-A944-F9517EF456A8}.Release|x64.ActiveCfg = Release|Any CPU
{A25A4B7E-7332-40BC-A944-F9517EF456A8}.Release|x64.Build.0 = Release|Any CPU
{A25A4B7E-7332-40BC-A944-F9517EF456A8}.Release|x86.ActiveCfg = Release|Any CPU
{A25A4B7E-7332-40BC-A944-F9517EF456A8}.Release|x86.Build.0 = Release|Any CPU
{707EB569-886D-480C-BB86-1A3787B71BEC}.Debug|x64.ActiveCfg = Debug|x64
{707EB569-886D-480C-BB86-1A3787B71BEC}.Debug|x64.Build.0 = Debug|x64
{707EB569-886D-480C-BB86-1A3787B71BEC}.Debug|x86.ActiveCfg = Debug|Win32
Expand All @@ -37,10 +29,10 @@ Global
{98702AB4-A467-486E-8373-6565E11F5BB4}.Debug|x64.Build.0 = Debug|x64
{98702AB4-A467-486E-8373-6565E11F5BB4}.Debug|x86.ActiveCfg = Debug|x86
{98702AB4-A467-486E-8373-6565E11F5BB4}.Debug|x86.Build.0 = Debug|x86
{98702AB4-A467-486E-8373-6565E11F5BB4}.Release|x64.ActiveCfg = Release|Any CPU
{98702AB4-A467-486E-8373-6565E11F5BB4}.Release|x64.Build.0 = Release|Any CPU
{98702AB4-A467-486E-8373-6565E11F5BB4}.Release|x86.ActiveCfg = Release|Any CPU
{98702AB4-A467-486E-8373-6565E11F5BB4}.Release|x86.Build.0 = Release|Any CPU
{98702AB4-A467-486E-8373-6565E11F5BB4}.Release|x64.ActiveCfg = Release|x64
{98702AB4-A467-486E-8373-6565E11F5BB4}.Release|x64.Build.0 = Release|x64
{98702AB4-A467-486E-8373-6565E11F5BB4}.Release|x86.ActiveCfg = Release|x86
{98702AB4-A467-486E-8373-6565E11F5BB4}.Release|x86.Build.0 = Release|x86
{3D753EEE-D6A9-4F23-A28E-188ED637A991}.Debug|x64.ActiveCfg = Debug|x64
{3D753EEE-D6A9-4F23-A28E-188ED637A991}.Debug|x64.Build.0 = Debug|x64
{3D753EEE-D6A9-4F23-A28E-188ED637A991}.Debug|x86.ActiveCfg = Debug|Win32
Expand Down
4 changes: 1 addition & 3 deletions hidapiw/AssemblyInfo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include "pch.h"

using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
Expand All @@ -9,7 +7,7 @@ using namespace System::Security::Permissions;
[assembly:AssemblyTitleAttribute(L"hidapiwnative")];
[assembly:AssemblyDescriptionAttribute(L"")];
[assembly:AssemblyConfigurationAttribute(L"")];
[assembly:AssemblyCompanyAttribute(L"")];
[assembly:AssemblyCompanyAttribute(L"0x0h")];
[assembly:AssemblyProductAttribute(L"hidapiwnative")];
[assembly:AssemblyCopyrightAttribute(L"Copyright (c) 2020")];
[assembly:AssemblyTrademarkAttribute(L"")];
Expand Down
1 change: 0 additions & 1 deletion hidapiw/hidapiw.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "pch.h"
#include "hidapiw.h"

hidapiw::hidapiw()
Expand Down
14 changes: 5 additions & 9 deletions hidapiw/hidapiw.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\netcoreapp3.1\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\netcoreapp3.1\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
Expand All @@ -90,7 +93,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand All @@ -112,7 +115,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand All @@ -124,18 +127,11 @@
<ItemGroup>
<ClInclude Include="hidapiw.h" />
<ClInclude Include="hidDeviceInfo.hpp" />
<ClInclude Include="pch.h" />
<ClInclude Include="Resource.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="AssemblyInfo.cpp" />
<ClCompile Include="hidapiw.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="app.rc" />
Expand Down
6 changes: 0 additions & 6 deletions hidapiw/hidapiw.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
<ClInclude Include="Resource.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="pch.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="hidDeviceInfo.hpp">
<Filter>Header Files</Filter>
</ClInclude>
Expand All @@ -32,9 +29,6 @@
<ClCompile Include="AssemblyInfo.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="pch.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="hidapiw.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
5 changes: 0 additions & 5 deletions hidapiw/pch.cpp

This file was deleted.

12 changes: 0 additions & 12 deletions hidapiw/pch.h

This file was deleted.

19 changes: 0 additions & 19 deletions hidapiw_native/dllmain.cpp

This file was deleted.

5 changes: 0 additions & 5 deletions hidapiw_native/framework.h

This file was deleted.

1 change: 0 additions & 1 deletion hidapiw_native/hidapiw_native.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "pch.h"
#define NATIVE_CODE
#include "hidapiw_native.h"

Expand Down
16 changes: 4 additions & 12 deletions hidapiw_native/hidapiw_native.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
Expand Down Expand Up @@ -83,10 +83,11 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\netcoreapp3.1\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;HIDAPIWCPP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -135,7 +136,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
Expand All @@ -153,19 +154,10 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="framework.h" />
<ClInclude Include="hidapiw_native.h" />
<ClInclude Include="pch.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp" />
<ClCompile Include="hidapiw_native.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
12 changes: 0 additions & 12 deletions hidapiw_native/hidapiw_native.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,11 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="framework.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="pch.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="hidapiw_native.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="pch.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="hidapiw_native.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
5 changes: 0 additions & 5 deletions hidapiw_native/pch.cpp

This file was deleted.

13 changes: 0 additions & 13 deletions hidapiw_native/pch.h

This file was deleted.

6 changes: 5 additions & 1 deletion testConsole/testConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Platforms>AnyCPU;x64;x86</Platforms>
<Platforms>x64;x86</Platforms>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<OutputPath>..\x64\Debug\</OutputPath>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OutputPath>..\x64\Release\</OutputPath>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\hidapiw\hidapiw.vcxproj" />
</ItemGroup>
Expand Down

0 comments on commit e03532c

Please sign in to comment.