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",
73 "SynchronizedEventQueue.h",
80 "ThrottledEventQueue.h",
85 "IdlePeriodState.cpp",
92 "BlockingResourceBase.cpp",
93 "CPUUsageWatcher.cpp",
94 "DelayedRunnable.cpp",
96 "InputTaskManager.cpp",
98 "MainThreadIdlePeriod.cpp",
100 "nsMemoryPressure.cpp",
101 "nsProcessCommon.cpp",
102 "nsProxyRelease.cpp",
104 "nsThreadManager.cpp",
108 "RecursiveMutex.cpp",
110 "SchedulerGroup.cpp",
111 "SharedThreadPool.cpp",
112 "SynchronizedEventQueue.cpp",
113 "TaskController.cpp",
115 "ThreadEventQueue.cpp",
116 "ThreadEventTarget.cpp",
117 "ThreadLocalVariables.cpp",
118 "ThrottledEventQueue.cpp",
120 "VsyncTaskManager.cpp",
123 if CONFIG["OS_ARCH"] == "WINNT":
124 EXPORTS.mozilla += ["WinHandleWatcher.h"]
125 UNIFIED_SOURCES += ["WinHandleWatcher.cpp"]
127 # Should match the conditions in toolkit/components/backgroundhangmonitor/moz.build
129 CONFIG["NIGHTLY_BUILD"]
130 and not CONFIG["MOZ_DEBUG"]
131 and not CONFIG["MOZ_TSAN"]
132 and not CONFIG["MOZ_ASAN"]
134 DEFINES["MOZ_ENABLE_BACKGROUND_HANG_MONITOR"] = 1
142 FINAL_LIBRARY = "xul"
144 include("/ipc/chromium/chromium-config.mozbuild")