OSDN Git Service

Add gitdll and git test to solution file
authorFrank Li <lznuaa@gmail.com>
Sat, 5 Sep 2009 05:42:06 +0000 (13:42 +0800)
committerFrank Li <lznuaa@gmail.com>
Sat, 5 Sep 2009 05:42:06 +0000 (13:42 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
16 files changed:
.gitignore
ext/gitdll/ReadMe.txt [new file with mode: 0644]
ext/gitdll/dllmain.c [new file with mode: 0644]
ext/gitdll/gitdll.c [new file with mode: 0644]
ext/gitdll/gitdll.h [new file with mode: 0644]
ext/gitdll/gitdll.vcproj [new file with mode: 0644]
ext/gitdll/stdafx.cpp [new file with mode: 0644]
ext/gitdll/stdafx.h [new file with mode: 0644]
ext/gitdll/targetver.h [new file with mode: 0644]
ext/gitdlltest/ReadMe.txt [new file with mode: 0644]
ext/gitdlltest/gitdlltest.cpp [new file with mode: 0644]
ext/gitdlltest/gitdlltest.vcproj [new file with mode: 0644]
ext/gitdlltest/stdafx.cpp [new file with mode: 0644]
ext/gitdlltest/stdafx.h [new file with mode: 0644]
ext/gitdlltest/targetver.h [new file with mode: 0644]
src/TortoiseGit.sln

index 25ca0d0..ac1397f 100644 (file)
@@ -20,4 +20,8 @@ IBugTraqProvider_?.?
 /ext/build/x64/\r
 Thumbs.db\r
 *.cache\r
-/doc/xsl/db_*.xsl
\ No newline at end of file
+/doc/xsl/db_*.xsl\r
+Debug\r
+Release\r
+Debug64\r
+Release64
\ No newline at end of file
diff --git a/ext/gitdll/ReadMe.txt b/ext/gitdll/ReadMe.txt
new file mode 100644 (file)
index 0000000..a985068
--- /dev/null
@@ -0,0 +1,33 @@
+========================================================================\r
+    DYNAMIC LINK LIBRARY : gitdll Project Overview\r
+========================================================================\r
+\r
+AppWizard has created this gitdll DLL for you.\r
+\r
+This file contains a summary of what you will find in each of the files that\r
+make up your gitdll application.\r
+\r
+\r
+gitdll.vcproj\r
+    This is the main project file for VC++ projects generated using an Application Wizard.\r
+    It contains information about the version of Visual C++ that generated the file, and\r
+    information about the platforms, configurations, and project features selected with the\r
+    Application Wizard.\r
+\r
+gitdll.cpp\r
+    This is the main DLL source file.\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+Other standard files:\r
+\r
+StdAfx.h, StdAfx.cpp\r
+    These files are used to build a precompiled header (PCH) file\r
+    named gitdll.pch and a precompiled types file named StdAfx.obj.\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+Other notes:\r
+\r
+AppWizard uses "TODO:" comments to indicate parts of the source code you\r
+should add to or customize.\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
diff --git a/ext/gitdll/dllmain.c b/ext/gitdll/dllmain.c
new file mode 100644 (file)
index 0000000..b6a141d
--- /dev/null
@@ -0,0 +1,21 @@
+// dllmain.cpp : Defines the entry point for the DLL application.\r
+#include "stdafx.h"\r
+\r
+BOOL APIENTRY DllMain( HMODULE hModule,\r
+                       DWORD  ul_reason_for_call,\r
+                       LPVOID lpReserved\r
+                                        )\r
+{\r
+       switch (ul_reason_for_call)\r
+       {\r
+       case DLL_PROCESS_ATTACH:\r
+       case DLL_THREAD_ATTACH:\r
+               dll_entry();\r
+               break;\r
+       case DLL_THREAD_DETACH:\r
+       case DLL_PROCESS_DETACH:\r
+               break;\r
+       }\r
+       return TRUE;\r
+}\r
+\r
diff --git a/ext/gitdll/gitdll.c b/ext/gitdll/gitdll.c
new file mode 100644 (file)
index 0000000..af92ef0
--- /dev/null
@@ -0,0 +1,48 @@
+// gitdll.cpp : Defines the exported functions for the DLL application.\r
+//\r
+\r
+#include "stdafx.h"\r
+#include "gitdll.h"\r
+\r
+#if 0\r
+\r
+// This is an example of an exported variable\r
+GITDLL_API int ngitdll=0;\r
+\r
+// This is an example of an exported function.\r
+GITDLL_API int fngitdll(void)\r
+{\r
+       return 42;\r
+}\r
+\r
+// This is the constructor of a class that has been exported.\r
+// see gitdll.h for the class definition\r
+Cgitdll::Cgitdll()\r
+{\r
+       return;\r
+}\r
+#endif\r
+\r
+#define MAX_ERROR_STR_SIZE 512\r
+char g_last_error[MAX_ERROR_STR_SIZE]={0};\r
+\r
+char * get_git_last_error()\r
+{\r
+       return g_last_error;\r
+}\r
+\r
+static void die_dll(const char *err, va_list params)\r
+{\r
+       memset(g_last_error,0,MAX_ERROR_STR_SIZE);\r
+       vsnprintf(g_last_error, MAX_ERROR_STR_SIZE-1, err, params);     \r
+}\r
+\r
+void dll_entry()\r
+{\r
+       set_die_routine(die_dll);\r
+}\r
+\r
+int git_get_sha1(const char *name, unsigned char *sha1)\r
+{\r
+       return get_sha1(name,sha1);\r
+}
\ No newline at end of file
diff --git a/ext/gitdll/gitdll.h b/ext/gitdll/gitdll.h
new file mode 100644 (file)
index 0000000..2b83be8
--- /dev/null
@@ -0,0 +1,33 @@
+// The following ifdef block is the standard way of creating macros which make exporting \r
+// from a DLL simpler. All files within this DLL are compiled with the GITDLL_EXPORTS\r
+// symbol defined on the command line. this symbol should not be defined on any project\r
+// that uses this DLL. This way any other project whose source files include this file see \r
+// GITDLL_API functions as being imported from a DLL, whereas this DLL sees symbols\r
+// defined with this macro as being exported.\r
+#ifdef __cplusplus\r
+#define EXTERN extern "C"\r
+#else\r
+#define EXTERN\r
+#endif\r
+\r
+#ifdef GITDLL_EXPORTS\r
+#define GITDLL_API __declspec(dllexport) EXTERN\r
+#else\r
+#define GITDLL_API __declspec(dllimport) EXTERN\r
+#endif\r
+\r
+#if 0\r
+// This class is exported from the gitdll.dll\r
+class GITDLL_API Cgitdll {\r
+public:\r
+       Cgitdll(void);\r
+       // TODO: add your methods here.\r
+};\r
+#endif\r
+\r
+GITDLL_API int ngitdll;\r
+\r
+GITDLL_API int fngitdll(void);\r
+\r
+GITDLL_API char * get_git_last_error();\r
+GITDLL_API int git_get_sha1(const char *name, unsigned char *sha1);
\ No newline at end of file
diff --git a/ext/gitdll/gitdll.vcproj b/ext/gitdll/gitdll.vcproj
new file mode 100644 (file)
index 0000000..f587e2d
--- /dev/null
@@ -0,0 +1,233 @@
+<?xml version="1.0" encoding="gb2312"?>\r
+<VisualStudioProject\r
+       ProjectType="Visual C++"\r
+       Version="9.00"\r
+       Name="gitdll"\r
+       ProjectGUID="{4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}"\r
+       RootNamespace="gitdll"\r
+       Keyword="Win32Proj"\r
+       TargetFrameworkVersion="196613"\r
+       >\r
+       <Platforms>\r
+               <Platform\r
+                       Name="Win32"\r
+               />\r
+       </Platforms>\r
+       <ToolFiles>\r
+       </ToolFiles>\r
+       <Configurations>\r
+               <Configuration\r
+                       Name="Debug|Win32"\r
+                       OutputDirectory="$(SolutionDir)..\$(ConfigurationName)\bin"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="2"\r
+                       CharacterSet="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="0"\r
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;GITDLL_EXPORTS"\r
+                               MinimalRebuild="true"\r
+                               BasicRuntimeChecks="3"\r
+                               RuntimeLibrary="3"\r
+                               UsePrecompiledHeader="0"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="4"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               AdditionalDependencies="wininet.lib ws2_32.lib "\r
+                               LinkIncremental="2"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
+                       Name="Release|Win32"\r
+                       OutputDirectory="$(SolutionDir)..\$(ConfigurationName)\bin"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="2"\r
+                       CharacterSet="1"\r
+                       WholeProgramOptimization="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="2"\r
+                               EnableIntrinsicFunctions="true"\r
+                               PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GITDLL_EXPORTS"\r
+                               RuntimeLibrary="2"\r
+                               EnableFunctionLevelLinking="true"\r
+                               UsePrecompiledHeader="0"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="3"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               AdditionalDependencies="wininet.lib ws2_32.lib "\r
+                               LinkIncremental="1"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="2"\r
+                               OptimizeReferences="2"\r
+                               EnableCOMDATFolding="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+       </Configurations>\r
+       <References>\r
+       </References>\r
+       <Files>\r
+               <Filter\r
+                       Name="Source Files"\r
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\dllmain.c"\r
+                               >\r
+                               <FileConfiguration\r
+                                       Name="Debug|Win32"\r
+                                       >\r
+                                       <Tool\r
+                                               Name="VCCLCompilerTool"\r
+                                               UsePrecompiledHeader="0"\r
+                                               CompileAsManaged="0"\r
+                                       />\r
+                               </FileConfiguration>\r
+                               <FileConfiguration\r
+                                       Name="Release|Win32"\r
+                                       >\r
+                                       <Tool\r
+                                               Name="VCCLCompilerTool"\r
+                                               UsePrecompiledHeader="0"\r
+                                               CompileAsManaged="0"\r
+                                       />\r
+                               </FileConfiguration>\r
+                       </File>\r
+                       <File\r
+                               RelativePath=".\gitdll.c"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Header Files"\r
+                       Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
+                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\gitdll.h"\r
+                               >\r
+                       </File>\r
+                       <File\r
+                               RelativePath=".\stdafx.h"\r
+                               >\r
+                       </File>\r
+                       <File\r
+                               RelativePath=".\targetver.h"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Resource Files"\r
+                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"\r
+                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
+                       >\r
+               </Filter>\r
+               <File\r
+                       RelativePath=".\ReadMe.txt"\r
+                       >\r
+               </File>\r
+       </Files>\r
+       <Globals>\r
+       </Globals>\r
+</VisualStudioProject>\r
diff --git a/ext/gitdll/stdafx.cpp b/ext/gitdll/stdafx.cpp
new file mode 100644 (file)
index 0000000..5c6db1d
--- /dev/null
@@ -0,0 +1,8 @@
+// stdafx.cpp : source file that includes just the standard includes\r
+// gitdll.pch will be the pre-compiled header\r
+// stdafx.obj will contain the pre-compiled type information\r
+\r
+#include "stdafx.h"\r
+\r
+// TODO: reference any additional headers you need in STDAFX.H\r
+// and not in this file\r
diff --git a/ext/gitdll/stdafx.h b/ext/gitdll/stdafx.h
new file mode 100644 (file)
index 0000000..677e68a
--- /dev/null
@@ -0,0 +1,16 @@
+// stdafx.h : include file for standard system include files,\r
+// or project specific include files that are used frequently, but\r
+// are changed infrequently\r
+//\r
+\r
+#pragma once\r
+\r
+#include "targetver.h"\r
+\r
+#define WIN32_LEAN_AND_MEAN             // Exclude rarely-used stuff from Windows headers\r
+// Windows Header Files:\r
+#include <windows.h>\r
+\r
+\r
+\r
+// TODO: reference additional headers your program requires here\r
diff --git a/ext/gitdll/targetver.h b/ext/gitdll/targetver.h
new file mode 100644 (file)
index 0000000..f583181
--- /dev/null
@@ -0,0 +1,24 @@
+#pragma once\r
+\r
+// The following macros define the minimum required platform.  The minimum required platform\r
+// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run \r
+// your application.  The macros work by enabling all features available on platform versions up to and \r
+// including the version specified.\r
+\r
+// Modify the following defines if you have to target a platform prior to the ones specified below.\r
+// Refer to MSDN for the latest info on corresponding values for different platforms.\r
+#ifndef WINVER                          // Specifies that the minimum required platform is Windows Vista.\r
+#define WINVER 0x0600           // Change this to the appropriate value to target other versions of Windows.\r
+#endif\r
+\r
+#ifndef _WIN32_WINNT            // Specifies that the minimum required platform is Windows Vista.\r
+#define _WIN32_WINNT 0x0600     // Change this to the appropriate value to target other versions of Windows.\r
+#endif\r
+\r
+#ifndef _WIN32_WINDOWS          // Specifies that the minimum required platform is Windows 98.\r
+#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.\r
+#endif\r
+\r
+#ifndef _WIN32_IE                       // Specifies that the minimum required platform is Internet Explorer 7.0.\r
+#define _WIN32_IE 0x0700        // Change this to the appropriate value to target other versions of IE.\r
+#endif\r
diff --git a/ext/gitdlltest/ReadMe.txt b/ext/gitdlltest/ReadMe.txt
new file mode 100644 (file)
index 0000000..2b10c2e
--- /dev/null
@@ -0,0 +1,33 @@
+========================================================================\r
+    CONSOLE APPLICATION : gitdlltest Project Overview\r
+========================================================================\r
+\r
+AppWizard has created this gitdlltest application for you.\r
+\r
+This file contains a summary of what you will find in each of the files that\r
+make up your gitdlltest application.\r
+\r
+\r
+gitdlltest.vcproj\r
+    This is the main project file for VC++ projects generated using an Application Wizard.\r
+    It contains information about the version of Visual C++ that generated the file, and\r
+    information about the platforms, configurations, and project features selected with the\r
+    Application Wizard.\r
+\r
+gitdlltest.cpp\r
+    This is the main application source file.\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+Other standard files:\r
+\r
+StdAfx.h, StdAfx.cpp\r
+    These files are used to build a precompiled header (PCH) file\r
+    named gitdlltest.pch and a precompiled types file named StdAfx.obj.\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+Other notes:\r
+\r
+AppWizard uses "TODO:" comments to indicate parts of the source code you\r
+should add to or customize.\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
diff --git a/ext/gitdlltest/gitdlltest.cpp b/ext/gitdlltest/gitdlltest.cpp
new file mode 100644 (file)
index 0000000..6b0b39c
--- /dev/null
@@ -0,0 +1,14 @@
+// gitdlltest.cpp : Defines the entry point for the console application.\r
+//\r
+\r
+#include "stdafx.h"\r
+#include "gitdll.h"\r
+\r
+int _tmain(int argc, _TCHAR* argv[])\r
+{\r
+       unsigned char hash[20];\r
+       int ret;\r
+       ret=git_get_sha1("master",hash);\r
+       return ret;\r
+}\r
+\r
diff --git a/ext/gitdlltest/gitdlltest.vcproj b/ext/gitdlltest/gitdlltest.vcproj
new file mode 100644 (file)
index 0000000..3f26d22
--- /dev/null
@@ -0,0 +1,227 @@
+<?xml version="1.0" encoding="gb2312"?>\r
+<VisualStudioProject\r
+       ProjectType="Visual C++"\r
+       Version="9.00"\r
+       Name="gitdlltest"\r
+       ProjectGUID="{603B8D8B-240E-4B18-A750-CC3F7E301C76}"\r
+       RootNamespace="gitdlltest"\r
+       Keyword="Win32Proj"\r
+       TargetFrameworkVersion="196613"\r
+       >\r
+       <Platforms>\r
+               <Platform\r
+                       Name="Win32"\r
+               />\r
+       </Platforms>\r
+       <ToolFiles>\r
+       </ToolFiles>\r
+       <Configurations>\r
+               <Configuration\r
+                       Name="Debug|Win32"\r
+                       OutputDirectory="$(SolutionDir)..\$(ConfigurationName)\bin"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="0"\r
+                               AdditionalIncludeDirectories="..\gitdll"\r
+                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"\r
+                               MinimalRebuild="true"\r
+                               BasicRuntimeChecks="3"\r
+                               RuntimeLibrary="3"\r
+                               UsePrecompiledHeader="2"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="4"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               LinkIncremental="2"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
+                       Name="Release|Win32"\r
+                       OutputDirectory="$(SolutionDir)..\$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="1"\r
+                       WholeProgramOptimization="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="2"\r
+                               EnableIntrinsicFunctions="true"\r
+                               AdditionalIncludeDirectories="..\gitdll"\r
+                               PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"\r
+                               RuntimeLibrary="2"\r
+                               EnableFunctionLevelLinking="true"\r
+                               UsePrecompiledHeader="2"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="3"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               LinkIncremental="1"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               OptimizeReferences="2"\r
+                               EnableCOMDATFolding="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+       </Configurations>\r
+       <References>\r
+       </References>\r
+       <Files>\r
+               <Filter\r
+                       Name="Source Files"\r
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\gitdlltest.cpp"\r
+                               >\r
+                       </File>\r
+                       <File\r
+                               RelativePath=".\stdafx.cpp"\r
+                               >\r
+                               <FileConfiguration\r
+                                       Name="Debug|Win32"\r
+                                       >\r
+                                       <Tool\r
+                                               Name="VCCLCompilerTool"\r
+                                               UsePrecompiledHeader="1"\r
+                                       />\r
+                               </FileConfiguration>\r
+                               <FileConfiguration\r
+                                       Name="Release|Win32"\r
+                                       >\r
+                                       <Tool\r
+                                               Name="VCCLCompilerTool"\r
+                                               UsePrecompiledHeader="1"\r
+                                       />\r
+                               </FileConfiguration>\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Header Files"\r
+                       Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
+                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\stdafx.h"\r
+                               >\r
+                       </File>\r
+                       <File\r
+                               RelativePath=".\targetver.h"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Resource Files"\r
+                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"\r
+                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
+                       >\r
+               </Filter>\r
+               <File\r
+                       RelativePath=".\ReadMe.txt"\r
+                       >\r
+               </File>\r
+       </Files>\r
+       <Globals>\r
+       </Globals>\r
+</VisualStudioProject>\r
diff --git a/ext/gitdlltest/stdafx.cpp b/ext/gitdlltest/stdafx.cpp
new file mode 100644 (file)
index 0000000..74d72a0
--- /dev/null
@@ -0,0 +1,8 @@
+// stdafx.cpp : source file that includes just the standard includes\r
+// gitdlltest.pch will be the pre-compiled header\r
+// stdafx.obj will contain the pre-compiled type information\r
+\r
+#include "stdafx.h"\r
+\r
+// TODO: reference any additional headers you need in STDAFX.H\r
+// and not in this file\r
diff --git a/ext/gitdlltest/stdafx.h b/ext/gitdlltest/stdafx.h
new file mode 100644 (file)
index 0000000..47a0d02
--- /dev/null
@@ -0,0 +1,15 @@
+// stdafx.h : include file for standard system include files,\r
+// or project specific include files that are used frequently, but\r
+// are changed infrequently\r
+//\r
+\r
+#pragma once\r
+\r
+#include "targetver.h"\r
+\r
+#include <stdio.h>\r
+#include <tchar.h>\r
+\r
+\r
+\r
+// TODO: reference additional headers your program requires here\r
diff --git a/ext/gitdlltest/targetver.h b/ext/gitdlltest/targetver.h
new file mode 100644 (file)
index 0000000..a38195a
--- /dev/null
@@ -0,0 +1,13 @@
+#pragma once\r
+\r
+// The following macros define the minimum required platform.  The minimum required platform\r
+// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run \r
+// your application.  The macros work by enabling all features available on platform versions up to and \r
+// including the version specified.\r
+\r
+// Modify the following defines if you have to target a platform prior to the ones specified below.\r
+// Refer to MSDN for the latest info on corresponding values for different platforms.\r
+#ifndef _WIN32_WINNT            // Specifies that the minimum required platform is Windows Vista.\r
+#define _WIN32_WINNT 0x0600     // Change this to the appropriate value to target other versions of Windows.\r
+#endif\r
+\r
index cdb818a..c5a8f8a 100644 (file)
@@ -120,6 +120,18 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "git", "..\ext\tgit\compat\v
 EndProject\r
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libgit", "..\ext\tgit\compat\vcbuild\libgit\libgit.vcproj", "{F6DEC8C3-B803-4A86-8848-430F08B499E3}"\r
 EndProject\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gitdll", "..\ext\gitdll\gitdll.vcproj", "{4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}"\r
+       ProjectSection(ProjectDependencies) = postProject\r
+               {AD0E960B-5DE9-4AC3-8AE0-8ED0FB5F1396} = {AD0E960B-5DE9-4AC3-8AE0-8ED0FB5F1396}\r
+               {5C6B6A95-2053-4593-9617-C4F176736D5A} = {5C6B6A95-2053-4593-9617-C4F176736D5A}\r
+               {F6DEC8C3-B803-4A86-8848-430F08B499E3} = {F6DEC8C3-B803-4A86-8848-430F08B499E3}\r
+       EndProjectSection\r
+EndProject\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gitdlltest", "..\ext\gitdlltest\gitdlltest.vcproj", "{603B8D8B-240E-4B18-A750-CC3F7E301C76}"\r
+       ProjectSection(ProjectDependencies) = postProject\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F} = {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}\r
+       EndProjectSection\r
+EndProject\r
 Global\r
        GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
                debug_static|Win32 = debug_static|Win32\r
@@ -1417,6 +1429,78 @@ Global
                {F6DEC8C3-B803-4A86-8848-430F08B499E3}.Release|Win32.Build.0 = Release|Win32\r
                {F6DEC8C3-B803-4A86-8848-430F08B499E3}.Release|x64.ActiveCfg = Release|x64\r
                {F6DEC8C3-B803-4A86-8848-430F08B499E3}.Release|x64.Build.0 = Release|x64\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.debug_static|Win32.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.debug_static|Win32.Build.0 = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.debug_static|x64.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.Debug|Win32.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.Debug|Win32.Build.0 = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.Debug|x64.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL ASM Debug|Win32.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL ASM Debug|Win32.Build.0 = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL ASM Debug|x64.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL ASM Release|Win32.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL ASM Release|Win32.Build.0 = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL ASM Release|x64.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL Debug|Win32.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL Debug|Win32.Build.0 = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL Debug|x64.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL Release|Win32.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL Release|Win32.Build.0 = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.DLL Release|x64.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB ASM Debug|Win32.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB ASM Debug|Win32.Build.0 = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB ASM Debug|x64.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB ASM Release|Win32.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB ASM Release|Win32.Build.0 = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB ASM Release|x64.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB Debug|Win32.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB Debug|Win32.Build.0 = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB Debug|x64.ActiveCfg = Debug|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB Release|Win32.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB Release|Win32.Build.0 = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.LIB Release|x64.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.release_static|Win32.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.release_static|Win32.Build.0 = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.release_static|x64.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.Release|Win32.ActiveCfg = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.Release|Win32.Build.0 = Release|Win32\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F}.Release|x64.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.debug_static|Win32.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.debug_static|Win32.Build.0 = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.debug_static|x64.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.Debug|Win32.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.Debug|Win32.Build.0 = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.Debug|x64.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL ASM Debug|Win32.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL ASM Debug|Win32.Build.0 = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL ASM Debug|x64.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL ASM Release|Win32.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL ASM Release|Win32.Build.0 = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL ASM Release|x64.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL Debug|Win32.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL Debug|Win32.Build.0 = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL Debug|x64.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL Release|Win32.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL Release|Win32.Build.0 = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.DLL Release|x64.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB ASM Debug|Win32.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB ASM Debug|Win32.Build.0 = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB ASM Debug|x64.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB ASM Release|Win32.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB ASM Release|Win32.Build.0 = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB ASM Release|x64.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB Debug|Win32.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB Debug|Win32.Build.0 = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB Debug|x64.ActiveCfg = Debug|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB Release|Win32.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB Release|Win32.Build.0 = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.LIB Release|x64.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.release_static|Win32.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.release_static|Win32.Build.0 = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.release_static|x64.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.Release|Win32.ActiveCfg = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.Release|Win32.Build.0 = Release|Win32\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76}.Release|x64.ActiveCfg = Release|Win32\r
        EndGlobalSection\r
        GlobalSection(SolutionProperties) = preSolution\r
                HideSolutionNode = FALSE\r
@@ -1426,5 +1510,7 @@ Global
                {AD0E960B-5DE9-4AC3-8AE0-8ED0FB5F1396} = {2CB340C3-B2ED-46F4-981E-847747E0A3BF}\r
                {E3E30E51-C5AD-407B-AB43-985E4111474A} = {2CB340C3-B2ED-46F4-981E-847747E0A3BF}\r
                {F6DEC8C3-B803-4A86-8848-430F08B499E3} = {2CB340C3-B2ED-46F4-981E-847747E0A3BF}\r
+               {4F0A55DE-DAFD-4A0B-A03D-2C14CB77E08F} = {2CB340C3-B2ED-46F4-981E-847747E0A3BF}\r
+               {603B8D8B-240E-4B18-A750-CC3F7E301C76} = {2CB340C3-B2ED-46F4-981E-847747E0A3BF}\r
        EndGlobalSection\r
 EndGlobal\r