From 2ca590773a1ea66bf5f2f01e1dac6846632e8e60 Mon Sep 17 00:00:00 2001 From: Dan Shumow Date: Wed, 29 Mar 2017 15:36:55 -0700 Subject: Add visual studio 2015 solution/project files. --- src/main.c | 22 +++ vs2015/sha1collisiondetection.vs2015.sln | 41 +++++ .../sha1collisiondetection.vcxproj | 134 +++++++++++++++++ .../sha1collisiondetection.vcxproj.filters | 33 ++++ vs2015/sha1dcsum/sha1dcsum.vcxproj | 166 +++++++++++++++++++++ vs2015/sha1dcsum/sha1dcsum.vcxproj.filters | 22 +++ 6 files changed, 418 insertions(+) create mode 100644 vs2015/sha1collisiondetection.vs2015.sln create mode 100644 vs2015/sha1collisiondetection/sha1collisiondetection.vcxproj create mode 100644 vs2015/sha1collisiondetection/sha1collisiondetection.vcxproj.filters create mode 100644 vs2015/sha1dcsum/sha1dcsum.vcxproj create mode 100644 vs2015/sha1dcsum/sha1dcsum.vcxproj.filters diff --git a/src/main.c b/src/main.c index c671e8b..cdf0fa5 100644 --- a/src/main.c +++ b/src/main.c @@ -8,10 +8,32 @@ #include #include #include +#ifndef _WIN32 #include +#endif #include "sha1.h" +#ifdef _WIN32 +char* basename(char* path) +{ + char *base = NULL, *cur = NULL; + + base = path; + cur = path; + while (0 != *cur) + { + if ('\\' == *cur) + { + base = cur + 1; + } + cur++; + } + + return base; +} +#endif + int main(int argc, char** argv) { FILE* fd; diff --git a/vs2015/sha1collisiondetection.vs2015.sln b/vs2015/sha1collisiondetection.vs2015.sln new file mode 100644 index 0000000..5269f65 --- /dev/null +++ b/vs2015/sha1collisiondetection.vs2015.sln @@ -0,0 +1,41 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.24720.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sha1collisiondetection", "sha1collisiondetection\sha1collisiondetection.vcxproj", "{9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sha1dcsum", "sha1dcsum\sha1dcsum.vcxproj", "{100B9E3C-A787-4FF4-8C4F-65A5618D928E}" + ProjectSection(ProjectDependencies) = postProject + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735} = {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Debug|x64.ActiveCfg = Debug|x64 + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Debug|x64.Build.0 = Debug|x64 + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Debug|x86.ActiveCfg = Debug|Win32 + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Debug|x86.Build.0 = Debug|Win32 + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Release|x64.ActiveCfg = Release|x64 + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Release|x64.Build.0 = Release|x64 + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Release|x86.ActiveCfg = Release|Win32 + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735}.Release|x86.Build.0 = Release|Win32 + {100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Debug|x64.ActiveCfg = Debug|x64 + {100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Debug|x64.Build.0 = Debug|x64 + {100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Debug|x86.ActiveCfg = Debug|Win32 + {100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Debug|x86.Build.0 = Debug|Win32 + {100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Release|x64.ActiveCfg = Release|x64 + {100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Release|x64.Build.0 = Release|x64 + {100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Release|x86.ActiveCfg = Release|Win32 + {100B9E3C-A787-4FF4-8C4F-65A5618D928E}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/vs2015/sha1collisiondetection/sha1collisiondetection.vcxproj b/vs2015/sha1collisiondetection/sha1collisiondetection.vcxproj new file mode 100644 index 0000000..5c5bffe --- /dev/null +++ b/vs2015/sha1collisiondetection/sha1collisiondetection.vcxproj @@ -0,0 +1,134 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + + + + + + {9F5DD75D-8369-49F8-9D7C-F6C21D1EA735} + sha1collisiondetection + 8.1 + + + + StaticLibrary + true + v140 + NotSet + + + StaticLibrary + false + v140 + true + NotSet + + + StaticLibrary + true + v140 + NotSet + + + StaticLibrary + false + v140 + true + NotSet + + + + + + + + + + + + + + + + + + + + + .lib + + + .lib + + + .lib + + + .lib + + + + Level3 + Disabled + true + + + + + Level3 + Disabled + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + + \ No newline at end of file diff --git a/vs2015/sha1collisiondetection/sha1collisiondetection.vcxproj.filters b/vs2015/sha1collisiondetection/sha1collisiondetection.vcxproj.filters new file mode 100644 index 0000000..0b1e03f --- /dev/null +++ b/vs2015/sha1collisiondetection/sha1collisiondetection.vcxproj.filters @@ -0,0 +1,33 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + \ No newline at end of file diff --git a/vs2015/sha1dcsum/sha1dcsum.vcxproj b/vs2015/sha1dcsum/sha1dcsum.vcxproj new file mode 100644 index 0000000..8c19aca --- /dev/null +++ b/vs2015/sha1dcsum/sha1dcsum.vcxproj @@ -0,0 +1,166 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + {100B9E3C-A787-4FF4-8C4F-65A5618D928E} + sha1dcsum + 8.1 + + + + Application + true + v140 + NotSet + + + Application + false + v140 + true + NotSet + + + Application + true + v140 + NotSet + + + Application + false + v140 + true + NotSet + + + + + + + + + + + + + + + + + + + + + + + Level3 + Disabled + true + $(SolutionDir)..\lib\;%(AdditionalIncludeDirectories) + _CRT_SECURE_NO_WARNINGS; + + + sha1collisiondetection.lib;%(AdditionalDependencies) + $(OutDir);%(AdditionalLibraryDirectories) + + + copy /y $(TargetPath) $(OutDir)$(TargetName)_partial$(TargetExt) +copy /y $(OutDir)$(TargetName).pdb $(OutDir)$(TargetName)_partial.pdb + + + Copy collision detection program to partial detection version. + + + + + Level3 + Disabled + true + $(SolutionDir)..\lib\;%(AdditionalIncludeDirectories) + _CRT_SECURE_NO_WARNINGS; + + + sha1collisiondetection.lib;%(AdditionalDependencies) + $(OutDir);%(AdditionalLibraryDirectories) + + + copy /y $(TargetPath) $(OutDir)$(TargetName)_partial$(TargetExt) +copy /y $(OutDir)$(TargetName).pdb $(OutDir)$(TargetName)_partial.pdb + + + Copy collision detection program to partial detection version. + + + + + Level3 + MaxSpeed + true + true + true + $(SolutionDir)..\lib\;%(AdditionalIncludeDirectories) + _CRT_SECURE_NO_WARNINGS; + + + true + true + sha1collisiondetection.lib;%(AdditionalDependencies) + $(OutDir);%(AdditionalLibraryDirectories) + + + copy /y $(TargetPath) $(OutDir)$(TargetName)_partial$(TargetExt) +copy /y $(OutDir)$(TargetName).pdb $(OutDir)$(TargetName)_partial.pdb + + + Copy collision detection program to partial detection version. + + + + + Level3 + MaxSpeed + true + true + true + $(SolutionDir)..\lib\;%(AdditionalIncludeDirectories) + _CRT_SECURE_NO_WARNINGS; + + + true + true + sha1collisiondetection.lib;%(AdditionalDependencies) + $(OutDir);%(AdditionalLibraryDirectories) + + + copy /y $(TargetPath) $(OutDir)$(TargetName)_partial$(TargetExt) +copy /y $(OutDir)$(TargetName).pdb $(OutDir)$(TargetName)_partial.pdb + + + Copy collision detection program to partial detection version. + + + + + + \ No newline at end of file diff --git a/vs2015/sha1dcsum/sha1dcsum.vcxproj.filters b/vs2015/sha1dcsum/sha1dcsum.vcxproj.filters new file mode 100644 index 0000000..ce31430 --- /dev/null +++ b/vs2015/sha1dcsum/sha1dcsum.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + \ No newline at end of file -- cgit v1.2.3