From f140025664719fa6a11d97ae76a3e74eccc8fbf9 Mon Sep 17 00:00:00 2001 From: bryner Date: Thu, 28 Sep 2006 19:35:08 +0000 Subject: [PATCH] Add static-CRT build configurations. Get rid of the largely redundant README, moving the linkage comments to the corresponding headers. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@37 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/windows/README | 22 ---- src/client/windows/airbag_client.sln | 10 ++ .../windows/handler/exception_handler.h | 3 + .../windows/handler/exception_handler.vcproj | 124 ++++++++++++++++++ .../windows/sender/crash_report_sender.h | 3 + .../windows/sender/crash_report_sender.vcproj | 124 ++++++++++++++++++ 6 files changed, 264 insertions(+), 22 deletions(-) delete mode 100644 src/client/windows/README diff --git a/src/client/windows/README b/src/client/windows/README deleted file mode 100644 index 380324fd..00000000 --- a/src/client/windows/README +++ /dev/null @@ -1,22 +0,0 @@ -This directory contains client code for collecting and sending minidumps. -You can use them in your project as follows: - -exception_handler.lib: - -This library should be linked into the application from which you want -to collect crash reports. See the comments in exception_handler.h for -instructions on setting up the handler to write minidumps on crash. -You can also use ExceptionHandler to write non-crash minidumps. - -When linking with this static library, you will need to also link with -rpcrt4.lib and ole32.lib. - -crash_report_sender.lib: - -Typically, after catching a crash, you will launch an external application -to collect any additional information from the user, and upload the report to -the server. CrashReportSender is a utility class that can be used when the -data is ready to upload. - -When linking with this static library, you will need to also link with -wininet.lib. diff --git a/src/client/windows/airbag_client.sln b/src/client/windows/airbag_client.sln index 502143bc..990fa546 100644 --- a/src/client/windows/airbag_client.sln +++ b/src/client/windows/airbag_client.sln @@ -8,17 +8,27 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 + DebugStaticCRT|Win32 = DebugStaticCRT|Win32 Release|Win32 = Release|Win32 + ReleaseStaticCRT|Win32 = ReleaseStaticCRT|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {B55CA863-B374-4BAF-95AC-539E4FA4C90C}.Debug|Win32.ActiveCfg = Debug|Win32 {B55CA863-B374-4BAF-95AC-539E4FA4C90C}.Debug|Win32.Build.0 = Debug|Win32 + {B55CA863-B374-4BAF-95AC-539E4FA4C90C}.DebugStaticCRT|Win32.ActiveCfg = DebugStaticCRT|Win32 + {B55CA863-B374-4BAF-95AC-539E4FA4C90C}.DebugStaticCRT|Win32.Build.0 = DebugStaticCRT|Win32 {B55CA863-B374-4BAF-95AC-539E4FA4C90C}.Release|Win32.ActiveCfg = Release|Win32 {B55CA863-B374-4BAF-95AC-539E4FA4C90C}.Release|Win32.Build.0 = Release|Win32 + {B55CA863-B374-4BAF-95AC-539E4FA4C90C}.ReleaseStaticCRT|Win32.ActiveCfg = ReleaseStaticCRT|Win32 + {B55CA863-B374-4BAF-95AC-539E4FA4C90C}.ReleaseStaticCRT|Win32.Build.0 = ReleaseStaticCRT|Win32 {9946A048-043B-4F8F-9E07-9297B204714C}.Debug|Win32.ActiveCfg = Debug|Win32 {9946A048-043B-4F8F-9E07-9297B204714C}.Debug|Win32.Build.0 = Debug|Win32 + {9946A048-043B-4F8F-9E07-9297B204714C}.DebugStaticCRT|Win32.ActiveCfg = DebugStaticCRT|Win32 + {9946A048-043B-4F8F-9E07-9297B204714C}.DebugStaticCRT|Win32.Build.0 = DebugStaticCRT|Win32 {9946A048-043B-4F8F-9E07-9297B204714C}.Release|Win32.ActiveCfg = Release|Win32 {9946A048-043B-4F8F-9E07-9297B204714C}.Release|Win32.Build.0 = Release|Win32 + {9946A048-043B-4F8F-9E07-9297B204714C}.ReleaseStaticCRT|Win32.ActiveCfg = ReleaseStaticCRT|Win32 + {9946A048-043B-4F8F-9E07-9297B204714C}.ReleaseStaticCRT|Win32.Build.0 = ReleaseStaticCRT|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/client/windows/handler/exception_handler.h b/src/client/windows/handler/exception_handler.h index 7acb5853..534a1d7f 100644 --- a/src/client/windows/handler/exception_handler.h +++ b/src/client/windows/handler/exception_handler.h @@ -52,6 +52,9 @@ // ExceptionHandler *f = new ExceptionHandler(...); // delete e; // This will put the exception filter stack into an inconsistent state. +// +// To use this library in your project, you will need to link against +// rpcrt4.lib and ole32.lib. #ifndef CLIENT_WINDOWS_HANDLER_EXCEPTION_HANDLER_H__ #define CLIENT_WINDOWS_HANDLER_EXCEPTION_HANDLER_H__ diff --git a/src/client/windows/handler/exception_handler.vcproj b/src/client/windows/handler/exception_handler.vcproj index 5dce6273..1f9bdb17 100644 --- a/src/client/windows/handler/exception_handler.vcproj +++ b/src/client/windows/handler/exception_handler.vcproj @@ -139,6 +139,130 @@ Name="VCPostBuildEventTool" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/client/windows/sender/crash_report_sender.h b/src/client/windows/sender/crash_report_sender.h index accd7b46..52bec788 100644 --- a/src/client/windows/sender/crash_report_sender.h +++ b/src/client/windows/sender/crash_report_sender.h @@ -34,6 +34,9 @@ // crash reports via HTTP. A crash report is formatted as a multipart POST // request, which contains a set of caller-supplied string key/value pairs, // and a minidump file to upload. +// +// To use this library in your project, you will need to link against +// wininet.lib. #include #include diff --git a/src/client/windows/sender/crash_report_sender.vcproj b/src/client/windows/sender/crash_report_sender.vcproj index 8784501e..eabb76ce 100644 --- a/src/client/windows/sender/crash_report_sender.vcproj +++ b/src/client/windows/sender/crash_report_sender.vcproj @@ -139,6 +139,130 @@ Name="VCPostBuildEventTool" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +