Move breakpad include munging to moz.build
Unfortunately this also needs to be kept in Makefile.in to handle
HOST_SOURCES while we transition them.
MozReview-Commit-ID: 9OYlu6Jv1XZ
--- a/python/mozbuild/mozbuild/compilation/database.py
+++ b/python/mozbuild/mozbuild/compilation/database.py
@@ -49,18 +49,17 @@ class CompileDBBackend(CommonBackend):
self._gyp_dirs = set()
def consume_object(self, obj):
# Those are difficult directories, that will be handled later.
if obj.relativedir in (
'build/unix/elfhack',
'build/unix/elfhack/inject',
'build/clang-plugin',
- 'build/clang-plugin/tests',
- 'toolkit/crashreporter/google-breakpad/src/common'):
+ 'build/clang-plugin/tests'):
return True
consumed = CommonBackend.consume_object(self, obj)
if consumed:
return True
if isinstance(obj, DirectoryTraversal):
--- a/toolkit/crashreporter/google-breakpad/src/common/moz.build
+++ b/toolkit/crashreporter/google-breakpad/src/common/moz.build
@@ -59,14 +59,18 @@ if CONFIG['OS_TARGET'] == 'Android':
'android/breakpad_getcontext.S',
]
LOCAL_INCLUDES += [
'/toolkit/crashreporter/google-breakpad/src/common/android/include',
]
Library('breakpad_common_s')
+# memory.h in this dir breaks things if -I$(srcdir) gets added, since memory.h
+# is also a system header and the copy here winds up getting included instead.
+COMPILE_FLAGS['BASE_INCLUDES'] = []
+
# We allow warnings for third-party code that can be updated from upstream.
ALLOW_COMPILER_WARNINGS = True
FINAL_LIBRARY = 'xul'
include('/toolkit/crashreporter/crashreporter.mozbuild')