Skip to content

Commit 2ca5907

Browse files
Add visual studio 2015 solution/project files.
1 parent 38096fc commit 2ca5907

File tree

6 files changed

+418
-0
lines changed

6 files changed

+418
-0
lines changed

‎src/main.c‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,32 @@
88
#include<stdio.h>
99
#include<stdlib.h>
1010
#include<string.h>
11+
#ifndef_WIN32
1112
#include<libgen.h>
13+
#endif
1214

1315
#include"sha1.h"
1416

17+
#ifdef_WIN32
18+
char*basename(char*path)
19+
{
20+
char*base=NULL, *cur=NULL;
21+
22+
base=path;
23+
cur=path;
24+
while (0!=*cur)
25+
{
26+
if ('\\'==*cur)
27+
{
28+
base=cur+1;
29+
}
30+
cur++;
31+
}
32+
33+
returnbase;
34+
}
35+
#endif
36+
1537
intmain(intargc, char**argv)
1638
{
1739
FILE*fd;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion =14.0.24720.0
5+
MinimumVisualStudioVersion =10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sha1collisiondetection", "sha1collisiondetection\sha1collisiondetection.vcxproj", "{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}"
7+
EndProject
8+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sha1dcsum", "sha1dcsum\sha1dcsum.vcxproj", "{100B9E3C-A787-4FF4-8C4F-65A5618D928E}"
9+
ProjectSection(ProjectDependencies) = postProject
10+
{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735} = {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}
11+
EndProjectSection
12+
EndProject
13+
Global
14+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
15+
Debug|x64 = Debug|x64
16+
Debug|x86 = Debug|x86
17+
Release|x64 = Release|x64
18+
Release|x86 = Release|x86
19+
EndGlobalSection
20+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
21+
{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Debug|x64.ActiveCfg = Debug|x64
22+
{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Debug|x64.Build.0 = Debug|x64
23+
{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Debug|x86.ActiveCfg = Debug|Win32
24+
{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Debug|x86.Build.0 = Debug|Win32
25+
{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Release|x64.ActiveCfg = Release|x64
26+
{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Release|x64.Build.0 = Release|x64
27+
{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Release|x86.ActiveCfg = Release|Win32
28+
{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Release|x86.Build.0 = Release|Win32
29+
{100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Debug|x64.ActiveCfg = Debug|x64
30+
{100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Debug|x64.Build.0 = Debug|x64
31+
{100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Debug|x86.ActiveCfg = Debug|Win32
32+
{100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Debug|x86.Build.0 = Debug|Win32
33+
{100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Release|x64.ActiveCfg = Release|x64
34+
{100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Release|x64.Build.0 = Release|x64
35+
{100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Release|x86.ActiveCfg = Release|Win32
36+
{100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Release|x86.Build.0 = Release|Win32
37+
EndGlobalSection
38+
GlobalSection(SolutionProperties) = preSolution
39+
HideSolutionNode =FALSE
40+
EndGlobalSection
41+
EndGlobal
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ProjectDefaultTargets="Build"ToolsVersion="14.0"xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroupLabel="ProjectConfigurations">
4+
<ProjectConfigurationInclude="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfigurationInclude="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfigurationInclude="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfigurationInclude="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<ItemGroup>
22+
<ClCompileInclude="..\..\lib\sha1.c" />
23+
<ClCompileInclude="..\..\lib\ubc_check.c" />
24+
</ItemGroup>
25+
<ItemGroup>
26+
<ClIncludeInclude="..\..\lib\sha1.h" />
27+
<ClIncludeInclude="..\..\lib\ubc_check.h" />
28+
</ItemGroup>
29+
<PropertyGroupLabel="Globals">
30+
<ProjectGuid>{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}</ProjectGuid>
31+
<RootNamespace>sha1collisiondetection</RootNamespace>
32+
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
33+
</PropertyGroup>
34+
<ImportProject="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
35+
<PropertyGroupCondition="'$(Configuration)|$(Platform)'=='Debug|Win32'"Label="Configuration">
36+
<ConfigurationType>StaticLibrary</ConfigurationType>
37+
<UseDebugLibraries>true</UseDebugLibraries>
38+
<PlatformToolset>v140</PlatformToolset>
39+
<CharacterSet>NotSet</CharacterSet>
40+
</PropertyGroup>
41+
<PropertyGroupCondition="'$(Configuration)|$(Platform)'=='Release|Win32'"Label="Configuration">
42+
<ConfigurationType>StaticLibrary</ConfigurationType>
43+
<UseDebugLibraries>false</UseDebugLibraries>
44+
<PlatformToolset>v140</PlatformToolset>
45+
<WholeProgramOptimization>true</WholeProgramOptimization>
46+
<CharacterSet>NotSet</CharacterSet>
47+
</PropertyGroup>
48+
<PropertyGroupCondition="'$(Configuration)|$(Platform)'=='Debug|x64'"Label="Configuration">
49+
<ConfigurationType>StaticLibrary</ConfigurationType>
50+
<UseDebugLibraries>true</UseDebugLibraries>
51+
<PlatformToolset>v140</PlatformToolset>
52+
<CharacterSet>NotSet</CharacterSet>
53+
</PropertyGroup>
54+
<PropertyGroupCondition="'$(Configuration)|$(Platform)'=='Release|x64'"Label="Configuration">
55+
<ConfigurationType>StaticLibrary</ConfigurationType>
56+
<UseDebugLibraries>false</UseDebugLibraries>
57+
<PlatformToolset>v140</PlatformToolset>
58+
<WholeProgramOptimization>true</WholeProgramOptimization>
59+
<CharacterSet>NotSet</CharacterSet>
60+
</PropertyGroup>
61+
<ImportProject="$(VCTargetsPath)\Microsoft.Cpp.props" />
62+
<ImportGroupLabel="ExtensionSettings">
63+
</ImportGroup>
64+
<ImportGroupLabel="Shared">
65+
</ImportGroup>
66+
<ImportGroupLabel="PropertySheets"Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
67+
<ImportProject="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<ImportGroupLabel="PropertySheets"Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
70+
<ImportProject="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<ImportGroupLabel="PropertySheets"Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
73+
<ImportProject="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"Label="LocalAppDataPlatform" />
74+
</ImportGroup>
75+
<ImportGroupLabel="PropertySheets"Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
76+
<ImportProject="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"Label="LocalAppDataPlatform" />
77+
</ImportGroup>
78+
<PropertyGroupLabel="UserMacros" />
79+
<PropertyGroupCondition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
80+
<TargetExt>.lib</TargetExt>
81+
</PropertyGroup>
82+
<PropertyGroupCondition="'$(Configuration)|$(Platform)'=='Release|Win32'">
83+
<TargetExt>.lib</TargetExt>
84+
</PropertyGroup>
85+
<PropertyGroupCondition="'$(Configuration)|$(Platform)'=='Debug|x64'">
86+
<TargetExt>.lib</TargetExt>
87+
</PropertyGroup>
88+
<PropertyGroupCondition="'$(Configuration)|$(Platform)'=='Release|x64'">
89+
<TargetExt>.lib</TargetExt>
90+
</PropertyGroup>
91+
<ItemDefinitionGroupCondition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
92+
<ClCompile>
93+
<WarningLevel>Level3</WarningLevel>
94+
<Optimization>Disabled</Optimization>
95+
<SDLCheck>true</SDLCheck>
96+
</ClCompile>
97+
</ItemDefinitionGroup>
98+
<ItemDefinitionGroupCondition="'$(Configuration)|$(Platform)'=='Debug|x64'">
99+
<ClCompile>
100+
<WarningLevel>Level3</WarningLevel>
101+
<Optimization>Disabled</Optimization>
102+
<SDLCheck>true</SDLCheck>
103+
</ClCompile>
104+
</ItemDefinitionGroup>
105+
<ItemDefinitionGroupCondition="'$(Configuration)|$(Platform)'=='Release|Win32'">
106+
<ClCompile>
107+
<WarningLevel>Level3</WarningLevel>
108+
<Optimization>MaxSpeed</Optimization>
109+
<FunctionLevelLinking>true</FunctionLevelLinking>
110+
<IntrinsicFunctions>true</IntrinsicFunctions>
111+
<SDLCheck>true</SDLCheck>
112+
</ClCompile>
113+
<Link>
114+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
115+
<OptimizeReferences>true</OptimizeReferences>
116+
</Link>
117+
</ItemDefinitionGroup>
118+
<ItemDefinitionGroupCondition="'$(Configuration)|$(Platform)'=='Release|x64'">
119+
<ClCompile>
120+
<WarningLevel>Level3</WarningLevel>
121+
<Optimization>MaxSpeed</Optimization>
122+
<FunctionLevelLinking>true</FunctionLevelLinking>
123+
<IntrinsicFunctions>true</IntrinsicFunctions>
124+
<SDLCheck>true</SDLCheck>
125+
</ClCompile>
126+
<Link>
127+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
128+
<OptimizeReferences>true</OptimizeReferences>
129+
</Link>
130+
</ItemDefinitionGroup>
131+
<ImportProject="$(VCTargetsPath)\Microsoft.Cpp.targets" />
132+
<ImportGroupLabel="ExtensionTargets">
133+
</ImportGroup>
134+
</Project>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ProjectToolsVersion="4.0"xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<FilterInclude="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<FilterInclude="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<FilterInclude="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompileInclude="..\..\lib\sha1.c">
19+
<Filter>Source Files</Filter>
20+
</ClCompile>
21+
<ClCompileInclude="..\..\lib\ubc_check.c">
22+
<Filter>Source Files</Filter>
23+
</ClCompile>
24+
</ItemGroup>
25+
<ItemGroup>
26+
<ClIncludeInclude="..\..\lib\sha1.h">
27+
<Filter>Header Files</Filter>
28+
</ClInclude>
29+
<ClIncludeInclude="..\..\lib\ubc_check.h">
30+
<Filter>Header Files</Filter>
31+
</ClInclude>
32+
</ItemGroup>
33+
</Project>

0 commit comments

Comments
(0)