Skip to content

Commit

Permalink
tendyron dongle
Browse files Browse the repository at this point in the history
  • Loading branch information
chenghuaiyu committed May 9, 2018
1 parent 4c5b4f7 commit 33e0942
Show file tree
Hide file tree
Showing 34 changed files with 14,913 additions and 4 deletions.
112 changes: 112 additions & 0 deletions windows/CommonSettings.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<BuildDir>$(SolutionDir)..\Build</BuildDir>
<!--NOTE: CpuOnlyBuild and UseCuDNN flags can't be set at the same time.-->
<CpuOnlyBuild>false</CpuOnlyBuild>
<UseCuDNN>true</UseCuDNN>
<CudaVersion>8.0</CudaVersion>
<!-- NOTE: If Python support is enabled, PythonDir (below) needs to be
set to the root of your Python installation. If your Python installation
does not contain debug libraries, debug build will not work. -->
<PythonSupport>false</PythonSupport>
<!-- NOTE: If Matlab support is enabled, MatlabDir (below) needs to be
set to the root of your Matlab installation. -->
<MatlabSupport>false</MatlabSupport>
<CudaDependencies></CudaDependencies>

<!-- Set CUDA architecture suitable for your GPU.
Setting proper architecture is important to mimize your run and compile time. -->
<CudaArchitecture>compute_35,sm_35;compute_52,sm_52;compute_61,sm_61</CudaArchitecture>

<!-- CuDNN 4 and 5 are supported -->
<CuDnnPath>%CUDA_PATH%\cudnn-8.0-windows10-x64-v5.1\</CuDnnPath>
<ScriptsDir>$(SolutionDir)\scripts</ScriptsDir>
</PropertyGroup>
<PropertyGroup Condition="'$(CpuOnlyBuild)'=='false'">
<CudaDependencies>cublas.lib;cuda.lib;curand.lib;cudart.lib</CudaDependencies>
</PropertyGroup>

<PropertyGroup Condition="'$(UseCuDNN)'=='true'">
<CudaDependencies>cudnn.lib;$(CudaDependencies)</CudaDependencies>
</PropertyGroup>
<PropertyGroup Condition="'$(UseCuDNN)'=='true' And $(CuDnnPath)!=''">
<LibraryPath>$(CuDnnPath)\cuda\lib\x64;$(LibraryPath)</LibraryPath>
<IncludePath>$(CuDnnPath)\cuda\include;$(IncludePath)</IncludePath>
</PropertyGroup>

<PropertyGroup>
<OutDir>$(BuildDir)\$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(BuildDir)\Int\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup>
<LibraryPath>$(OutDir);$(CUDA_PATH)\lib\$(Platform);$(LibraryPath)</LibraryPath>
<IncludePath>$(SolutionDir)..\include;$(SolutionDir)..\include\caffe\proto;$(CUDA_PATH)\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(PythonSupport)'=='true'">
<PythonDir>C:\ProgramData\Miniconda2\</PythonDir>
<LibraryPath>$(PythonDir)\libs;$(LibraryPath)</LibraryPath>
<IncludePath>$(PythonDir)\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(MatlabSupport)'=='true'">
<MatlabDir>C:\Program Files\MATLAB\R2014b</MatlabDir>
<LibraryPath>$(MatlabDir)\extern\lib\win64\microsoft;$(LibraryPath)</LibraryPath>
<IncludePath>$(MatlabDir)\extern\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(CpuOnlyBuild)'=='true'">
<ClCompile>
<PreprocessorDefinitions>CPU_ONLY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(UseCuDNN)'=='true'">
<ClCompile>
<PreprocessorDefinitions>USE_CUDNN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<CudaCompile>
<Defines>USE_CUDNN</Defines>
</CudaCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(PythonSupport)'=='true'">
<ClCompile>
<PreprocessorDefinitions>WITH_PYTHON_LAYER;BOOST_PYTHON_STATIC_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(MatlabSupport)'=='true'">
<ClCompile>
<PreprocessorDefinitions>MATLAB_MEX_FILE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<ClCompile>
<MinimalRebuild>false</MinimalRebuild>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PreprocessorDefinitions>_SCL_SECURE_NO_WARNINGS;USE_OPENCV;USE_LEVELDB;USE_LMDB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<Optimization>Full</Optimization>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<GenerateDebugInformation>true</GenerateDebugInformation>
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
</Project>
35 changes: 33 additions & 2 deletions windows/detection/detection.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</ImportGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Link>
<AdditionalDependencies>libcaffe.lib;$(CudaDependencies);%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>libcaffe.lib;Winscard.lib;$(CudaDependencies);%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Console</SubSystem>
</Link>
<PostBuildEvent>
Expand All @@ -53,7 +53,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Link>
<AdditionalDependencies>libcaffe.lib;$(CudaDependencies);%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>libcaffe.lib;Winscard.lib;$(CudaDependencies);%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Console</SubSystem>
</Link>
<PostBuildEvent>
Expand All @@ -80,6 +80,20 @@
<ClCompile Include="..\..\wisdom\decryption\decryption.cpp" />
<ClCompile Include="..\..\wisdom\decryption\rc4.cpp" />
<ClCompile Include="..\..\wisdom\detection.cpp" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\aes.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\bignum.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\des.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\md.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\md2.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\md4.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\md5.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\md_wrap.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\padlock.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\rsa.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\sha1.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\sha2.c" />
<ClCompile Include="..\..\wisdom\dongle\polarssl\sha4.c" />
<ClCompile Include="..\..\wisdom\dongle\tendyron.cpp" />
<ClCompile Include="..\..\wisdom\output\cjson.cpp" />
<ClCompile Include="..\..\wisdom\output\output.cpp" />
<ClCompile Include="..\..\wisdom\output\outputcjson.cpp" />
Expand All @@ -106,6 +120,23 @@
<ClInclude Include="..\..\wisdom\decryption\decryption.h" />
<ClInclude Include="..\..\wisdom\decryption\rc4.hpp" />
<ClInclude Include="..\..\wisdom\detection.hpp" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\aes.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\base.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\bignum.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\bn_mul.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\config.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\des.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\md.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\md2.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\md4.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\md5.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\md_wrap.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\padlock.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\rsa.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\sha1.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\sha2.h" />
<ClInclude Include="..\..\wisdom\dongle\polarssl\sha4.h" />
<ClInclude Include="..\..\wisdom\dongle\tendyron.h" />
<ClInclude Include="..\..\wisdom\output\cjson.h" />
<ClInclude Include="..\..\wisdom\output\output.h" />
<ClInclude Include="..\..\wisdom\output\outputcjson.h" />
Expand Down
96 changes: 96 additions & 0 deletions windows/detection/detection.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<Filter Include="config">
<UniqueIdentifier>{2e0bcb64-8192-434d-9c08-b86bc7ba9a66}</UniqueIdentifier>
</Filter>
<Filter Include="dongle">
<UniqueIdentifier>{11b44a6e-5349-472c-974b-e214884df374}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\wisdom\decryption\decryption.cpp">
Expand Down Expand Up @@ -89,6 +92,48 @@
<ClCompile Include="..\..\wisdom\runcaffe\run_caffe_case2.cpp">
<Filter>runcaffe</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\tendyron.cpp">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\aes.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\bignum.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\des.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\md.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\md_wrap.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\md2.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\md4.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\md5.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\padlock.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\rsa.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\sha1.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\sha2.c">
<Filter>dongle</Filter>
</ClCompile>
<ClCompile Include="..\..\wisdom\dongle\polarssl\sha4.c">
<Filter>dongle</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\wisdom\decryption\decryption.h">
Expand Down Expand Up @@ -157,5 +202,56 @@
<ClInclude Include="..\..\wisdom\runcaffe\run_caffe_case2.hpp">
<Filter>runcaffe</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\tendyron.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\aes.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\base.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\bignum.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\bn_mul.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\config.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\des.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\md.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\md_wrap.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\md2.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\md4.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\md5.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\padlock.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\rsa.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\sha1.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\sha2.h">
<Filter>dongle</Filter>
</ClInclude>
<ClInclude Include="..\..\wisdom\dongle\polarssl\sha4.h">
<Filter>dongle</Filter>
</ClInclude>
</ItemGroup>
</Project>
Loading

0 comments on commit 33e0942

Please sign in to comment.