1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 FINAL_TARGET = "_tests/xpcshell/toolkit/crashreporter/test"
8 XPCSHELL_TESTS_MANIFESTS += ["unit/xpcshell.toml", "unit_ipc/xpcshell.toml"]
10 XPCSHELL_TESTS_MANIFESTS += ["unit/xpcshell-phc.toml", "unit_ipc/xpcshell-phc.toml"]
16 BROWSER_CHROME_MANIFESTS += ["browser/browser.toml"]
19 "../google-breakpad/src/processor/basic_code_modules.cc",
20 "../google-breakpad/src/processor/convert_old_arm64_context.cc",
21 "../google-breakpad/src/processor/dump_context.cc",
22 "../google-breakpad/src/processor/dump_object.cc",
23 "../google-breakpad/src/processor/logging.cc",
24 "../google-breakpad/src/processor/minidump.cc",
25 "../google-breakpad/src/processor/pathname_stripper.cc",
26 "../google-breakpad/src/processor/proc_maps_linux.cc",
32 "ExceptionThrower.cpp",
35 if CONFIG["OS_TARGET"] == "WINNT" and CONFIG["TARGET_CPU"] == "x86_64":
36 if CONFIG["CC_TYPE"] not in ("gcc", "clang"):
38 "win64UnwindInfoTests.asm",
41 if CONFIG["CC_TYPE"] == "clang-cl":
42 SOURCES["ExceptionThrower.cpp"].flags += [
47 SOURCES["ExceptionThrower.cpp"].flags += [
52 DEFINES["MOZ_PHC"] = True
54 GeckoSharedLibrary("testcrasher")
56 DEFINES["SHARED_LIBRARY"] = "%s%s%s" % (
62 TEST_HARNESS_FILES.xpcshell.toolkit.crashreporter.test.unit += [
63 "CrashTestUtils.sys.mjs"
65 TEST_HARNESS_FILES.xpcshell.toolkit.crashreporter.test.unit_ipc += [
66 "CrashTestUtils.sys.mjs"
69 include("/toolkit/crashreporter/crashreporter.mozbuild")