Backed out changeset f594e6f00208 (bug 1940883) for causing crashes in bug 1941164.
[gecko.git] / toolkit / components / processtools / moz.build
blobee9d07cd6dec8102b968fac32a797e355836d56a
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/.
7 with Files("**"):
8     BUG_COMPONENT = ("Toolkit", "Performance Monitoring")
10 XPIDL_MODULE = "toolkit_processtools"
12 XPCOM_MANIFESTS += [
13     "components.conf",
16 XPIDL_SOURCES += [
17     "nsIProcessToolsService.idl",
20 EXPORTS.mozilla += [
21     "ProcInfo.h",
22     "ProcInfo_linux.h",
25 EXPORTS += [
26     "ProcessToolsService.h",
29 UNIFIED_SOURCES += [
30     "ProcessToolsService.cpp",
31     "ProcInfo_common.cpp",
34 FINAL_LIBRARY = "xul"
36 XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell/xpcshell.toml"]
37 BROWSER_CHROME_MANIFESTS += ["tests/browser/browser.toml"]
39 # Platform-specific implementations of `ProcInfo`.
40 toolkit = CONFIG["MOZ_WIDGET_TOOLKIT"]
41 if toolkit == "gtk" or toolkit == "android":
42     if CONFIG["OS_TARGET"] == "OpenBSD":
43         UNIFIED_SOURCES += ["ProcInfo_bsd.cpp"]
44     elif CONFIG["OS_TARGET"] == "SunOS":
45         UNIFIED_SOURCES += ["ProcInfo_solaris.cpp"]
46     else:
47         UNIFIED_SOURCES += ["ProcInfo_linux.cpp"]
48 elif toolkit == "windows":
49     UNIFIED_SOURCES += ["ProcInfo_win.cpp"]
50 elif toolkit in ("cocoa", "uikit"):
51     UNIFIED_SOURCES += ["ProcInfo.mm"]
53 include("/ipc/chromium/chromium-config.mozbuild")