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 "nsIDirectTaskDispatcher.idl",
15 "nsISerialEventTarget.idl",
16 "nsISupportsPriority.idl",
18 "nsIThreadInternal.idl",
19 "nsIThreadManager.idl",
21 "nsIThreadShutdown.idl",
25 XPIDL_MODULE = "xpcom_threads"
33 "nsICancelableRunnable.h",
34 "nsIDiscardableRunnable.h",
36 "nsITargetShutdownTask.h",
48 "BlockingResourceBase.h",
55 "EventTargetCapability.h",
60 "MainThreadIdlePeriod.h",
70 "SpinEventLoopUntil.h",
74 "SynchronizedEventQueue.h",
81 "ThrottledEventQueue.h",
86 "IdlePeriodState.cpp",
93 "BlockingResourceBase.cpp",
94 "CPUUsageWatcher.cpp",
95 "DelayedRunnable.cpp",
97 "InputTaskManager.cpp",
99 "MainThreadIdlePeriod.cpp",
101 "nsMemoryPressure.cpp",
102 "nsProcessCommon.cpp",
103 "nsProxyRelease.cpp",
105 "nsThreadManager.cpp",
109 "RecursiveMutex.cpp",
111 "SchedulerGroup.cpp",
112 "SharedThreadPool.cpp",
113 "SynchronizedEventQueue.cpp",
114 "TaskController.cpp",
116 "ThreadEventQueue.cpp",
117 "ThreadEventTarget.cpp",
118 "ThreadLocalVariables.cpp",
119 "ThrottledEventQueue.cpp",
121 "VsyncTaskManager.cpp",
124 if CONFIG["OS_ARCH"] == "WINNT":
125 EXPORTS.mozilla += ["WinHandleWatcher.h"]
126 UNIFIED_SOURCES += ["WinHandleWatcher.cpp"]
128 # Should match the conditions in toolkit/components/backgroundhangmonitor/moz.build
130 CONFIG["NIGHTLY_BUILD"]
131 and not CONFIG["MOZ_DEBUG"]
132 and not CONFIG["MOZ_TSAN"]
133 and not CONFIG["MOZ_ASAN"]
135 DEFINES["MOZ_ENABLE_BACKGROUND_HANG_MONITOR"] = 1
143 FINAL_LIBRARY = "xul"
145 include("/ipc/chromium/chromium-config.mozbuild")