Backed out changeset 440770be9e5e (bug 1870687) for causing bc failures on browser_se...
[gecko.git] / toolkit / crashreporter / test / moz.build
blob254d232e0e341f3e1f0f1a6e54c59771401dc751
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"]
9 if CONFIG["MOZ_PHC"]:
10     XPCSHELL_TESTS_MANIFESTS += ["unit/xpcshell-phc.toml", "unit_ipc/xpcshell-phc.toml"]
12 TEST_DIRS += [
13     "gtest",
16 BROWSER_CHROME_MANIFESTS += ["browser/browser.toml"]
18 UNIFIED_SOURCES += [
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",
27     "dumputils.cpp",
28     "nsTestCrasher.cpp",
31 SOURCES += [
32     "ExceptionThrower.cpp",
35 if CONFIG["OS_TARGET"] == "WINNT" and CONFIG["TARGET_CPU"] == "x86_64":
36     if CONFIG["CC_TYPE"] not in ("gcc", "clang"):
37         SOURCES += [
38             "win64UnwindInfoTests.asm",
39         ]
41 if CONFIG["CC_TYPE"] == "clang-cl":
42     SOURCES["ExceptionThrower.cpp"].flags += [
43         "-Xclang",
44         "-fcxx-exceptions",
45     ]
46 else:
47     SOURCES["ExceptionThrower.cpp"].flags += [
48         "-fexceptions",
49     ]
51 if CONFIG["MOZ_PHC"]:
52     DEFINES["MOZ_PHC"] = True
54 GeckoSharedLibrary("testcrasher")
56 DEFINES["SHARED_LIBRARY"] = "%s%s%s" % (
57     CONFIG["DLL_PREFIX"],
58     LIBRARY_NAME,
59     CONFIG["DLL_SUFFIX"],
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")
71 NO_PGO = True