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/.
8 BUG_COMPONENT = ("Toolkit", "Performance Monitoring")
10 XPIDL_MODULE = "toolkit_processtools"
17 "nsIProcessToolsService.idl",
26 "ProcessToolsService.h",
30 "ProcessToolsService.cpp",
31 "ProcInfo_common.cpp",
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"]
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")