Bug 1286802 - Part 1: Add minidump_callback.{h|cpp} to Windows breakpad client. r?ted draft
authorCervantes Yu <cyu@mozilla.com>
Tue, 14 Mar 2017 19:34:32 +0800
changeset 580334 38ec1ae34e195f6e814ee13a34fd3d42cc44090b
parent 578175 3e166b6838931b3933ca274331f9e0e115af5cc0
child 580335 fafe58b23541df4d76494cfea60a168ac4fc4d3a
push id59519
push usercyu@mozilla.com
push dateThu, 18 May 2017 11:09:20 +0000
reviewersted
bugs1286802
milestone55.0a1
Bug 1286802 - Part 1: Add minidump_callback.{h|cpp} to Windows breakpad client. r?ted MozReview-Commit-ID: 5Vpk4jWC63v
toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc
toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h
toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild
toolkit/crashreporter/breakpad-windows-libxul/moz.build
toolkit/crashreporter/breakpad-windows-standalone/moz.build
new file mode 100644
--- /dev/null
+++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.cc
@@ -0,0 +1,8 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#include "minidump_callback.h"
+
new file mode 100644
--- /dev/null
+++ b/toolkit/crashreporter/breakpad-client/windows/common/minidump_callback.h
@@ -0,0 +1,9 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef MINIDUMP_CALLBACK_H__
+#define MINIDUMP_CALLBACK_H__
+#endif
new file mode 100644
--- /dev/null
+++ b/toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild
@@ -0,0 +1,14 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+lobjs_client_common = [
+    'minidump_callback.cc',
+]
+
+subdir = 'toolkit/crashreporter/breakpad-client/windows/common'
+objs_client_common = [
+    '/%s/%s' % (subdir, s) for s in lobjs_client_common
+]
--- a/toolkit/crashreporter/breakpad-windows-libxul/moz.build
+++ b/toolkit/crashreporter/breakpad-windows-libxul/moz.build
@@ -19,15 +19,17 @@ LOCAL_INCLUDES += [
     '/toolkit/crashreporter/breakpad-client',
     '/toolkit/crashreporter/google-breakpad/src',
 ]
 
 include('/toolkit/crashreporter/google-breakpad/src/common/windows/objs.mozbuild')
 include('/toolkit/crashreporter/breakpad-client/windows/handler/objs.mozbuild')
 include('/toolkit/crashreporter/breakpad-client/windows/sender/objs.mozbuild')
 include('/toolkit/crashreporter/breakpad-client/windows/crash_generation/objs.mozbuild')
+include('/toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild')
 
 SOURCES += objs_common
 SOURCES += objs_crash_generation
 SOURCES += objs_handler
 SOURCES += objs_sender
+SOURCES += objs_client_common
 
 DISABLE_STL_WRAPPING = True
--- a/toolkit/crashreporter/breakpad-windows-standalone/moz.build
+++ b/toolkit/crashreporter/breakpad-windows-standalone/moz.build
@@ -12,16 +12,18 @@ for var in ('UNICODE', 'UNICODE_', 'BREA
 LOCAL_INCLUDES += [
     '/toolkit/crashreporter/breakpad-client',
     '/toolkit/crashreporter/google-breakpad/src',
 ]
 
 include('/toolkit/crashreporter/google-breakpad/src/common/windows/objs.mozbuild')
 include('/toolkit/crashreporter/breakpad-client/windows/handler/objs.mozbuild')
 include('/toolkit/crashreporter/breakpad-client/windows/crash_generation/objs.mozbuild')
+include('/toolkit/crashreporter/breakpad-client/windows/common/objs.mozbuild')
 
 SOURCES += objs_common
 SOURCES += objs_crash_generation
 SOURCES += objs_handler
+SOURCES += objs_client_common
 
 USE_STATIC_LIBS = True
 
 DISABLE_STL_WRAPPING = True