summaryrefslogtreecommitdiffstats
path: root/toolkit/components/backgroundhangmonitor/moz.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /toolkit/components/backgroundhangmonitor/moz.build
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/backgroundhangmonitor/moz.build')
-rw-r--r--toolkit/components/backgroundhangmonitor/moz.build68
1 files changed, 68 insertions, 0 deletions
diff --git a/toolkit/components/backgroundhangmonitor/moz.build b/toolkit/components/backgroundhangmonitor/moz.build
new file mode 100644
index 0000000000..78cc8065b6
--- /dev/null
+++ b/toolkit/components/backgroundhangmonitor/moz.build
@@ -0,0 +1,68 @@
+# -*- 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/.
+
+# NOTE: These config options must match the ones in both android/'s and
+# browser/'s package-manifest.in.
+
+# BHR disabled outside of Nightly builds due to expected high ping frequency.
+# BHR disabled for Release builds because of bug 965392.
+# BHR disabled for debug builds because of bug 979069.
+# BHR disabled for TSan builds because of bug 1121216.
+# BHR disabled for ASan builds because of bug 1445441.
+# When changing these conditions, please also change the matching conditions in
+# tools/profiler/public/ProfilerLabels.h and xpcom/threads/moz.build.
+if (
+ CONFIG["NIGHTLY_BUILD"]
+ and not CONFIG["MOZ_DEBUG"]
+ and not CONFIG["MOZ_TSAN"]
+ and not CONFIG["MOZ_ASAN"]
+):
+ DEFINES["MOZ_ENABLE_BACKGROUND_HANG_MONITOR"] = 1
+
+ EXTRA_JS_MODULES += [
+ "BHRTelemetryService.sys.mjs",
+ ]
+
+ XPCOM_MANIFESTS += [
+ "components.conf",
+ ]
+
+ XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell.toml"]
+
+XPIDL_SOURCES += [
+ "nsIHangDetails.idl",
+]
+
+XPIDL_MODULE = "backgroundhangmonitor"
+
+EXPORTS.mozilla += [
+ "BackgroundHangMonitor.h",
+ "HangAnnotations.h",
+ "HangDetails.h",
+]
+
+UNIFIED_SOURCES += [
+ "BackgroundHangMonitor.cpp",
+ "HangAnnotations.cpp",
+ "HangDetails.cpp",
+]
+
+IPDL_SOURCES += [
+ "HangTypes.ipdlh",
+]
+
+if CONFIG["MOZ_GECKO_PROFILER"]:
+ UNIFIED_SOURCES += [
+ "ThreadStackHelper.cpp",
+ ]
+
+LOCAL_INCLUDES += [
+ "/caps", # For nsScriptSecurityManager.h
+]
+
+FINAL_LIBRARY = "xul"
+
+include("/ipc/chromium/chromium-config.mozbuild")