Bug 1867190 - Initialise the PHC allocate delay later r=glandium
[gecko.git] / xpcom / threads / moz.build
blob06d10ad33112e4ecd6afc2401e5a7d53720c885c
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 XPIDL_SOURCES += [
8     "nsIDirectTaskDispatcher.idl",
9     "nsIEnvironment.idl",
10     "nsIEventTarget.idl",
11     "nsIIdlePeriod.idl",
12     "nsINamed.idl",
13     "nsIProcess.idl",
14     "nsIRunnable.idl",
15     "nsISerialEventTarget.idl",
16     "nsISupportsPriority.idl",
17     "nsIThread.idl",
18     "nsIThreadInternal.idl",
19     "nsIThreadManager.idl",
20     "nsIThreadPool.idl",
21     "nsIThreadShutdown.idl",
22     "nsITimer.idl",
25 XPIDL_MODULE = "xpcom_threads"
27 XPCOM_MANIFESTS += [
28     "components.conf",
31 EXPORTS += [
32     "MainThreadUtils.h",
33     "nsICancelableRunnable.h",
34     "nsIDiscardableRunnable.h",
35     "nsIIdleRunnable.h",
36     "nsITargetShutdownTask.h",
37     "nsMemoryPressure.h",
38     "nsProcess.h",
39     "nsProxyRelease.h",
40     "nsThread.h",
41     "nsThreadManager.h",
42     "nsThreadPool.h",
43     "nsThreadUtils.h",
46 EXPORTS.mozilla += [
47     "AbstractThread.h",
48     "BlockingResourceBase.h",
49     "CondVar.h",
50     "CPUUsageWatcher.h",
51     "DataMutex.h",
52     "DeadlockDetector.h",
53     "DelayedRunnable.h",
54     "EventQueue.h",
55     "EventTargetCapability.h",
56     "IdlePeriodState.h",
57     "IdleTaskRunner.h",
58     "InputTaskManager.h",
59     "LazyIdleThread.h",
60     "MainThreadIdlePeriod.h",
61     "Monitor.h",
62     "MozPromise.h",
63     "Mutex.h",
64     "Queue.h",
65     "RecursiveMutex.h",
66     "ReentrantMonitor.h",
67     "RWLock.h",
68     "SchedulerGroup.h",
69     "SharedThreadPool.h",
70     "SpinEventLoopUntil.h",
71     "StateMirroring.h",
72     "StateWatching.h",
73     "SynchronizedEventQueue.h",
74     "SyncRunnable.h",
75     "TaskController.h",
76     "TaskDispatcher.h",
77     "TaskQueue.h",
78     "ThreadBound.h",
79     "ThreadEventQueue.h",
80     "ThrottledEventQueue.h",
81     "VsyncTaskManager.h",
84 SOURCES += [
85     "IdlePeriodState.cpp",
86     "IdleTaskRunner.cpp",
87     "ThreadDelay.cpp",
90 UNIFIED_SOURCES += [
91     "AbstractThread.cpp",
92     "BlockingResourceBase.cpp",
93     "CPUUsageWatcher.cpp",
94     "DelayedRunnable.cpp",
95     "EventQueue.cpp",
96     "InputTaskManager.cpp",
97     "LazyIdleThread.cpp",
98     "MainThreadIdlePeriod.cpp",
99     "nsEnvironment.cpp",
100     "nsMemoryPressure.cpp",
101     "nsProcessCommon.cpp",
102     "nsProxyRelease.cpp",
103     "nsThread.cpp",
104     "nsThreadManager.cpp",
105     "nsThreadPool.cpp",
106     "nsThreadUtils.cpp",
107     "nsTimerImpl.cpp",
108     "RecursiveMutex.cpp",
109     "RWLock.cpp",
110     "SchedulerGroup.cpp",
111     "SharedThreadPool.cpp",
112     "SynchronizedEventQueue.cpp",
113     "TaskController.cpp",
114     "TaskQueue.cpp",
115     "ThreadEventQueue.cpp",
116     "ThreadEventTarget.cpp",
117     "ThreadLocalVariables.cpp",
118     "ThrottledEventQueue.cpp",
119     "TimerThread.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
128 if (
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
136 LOCAL_INCLUDES += [
137     "../build",
138     "/caps",
139     "/tools/profiler",
142 FINAL_LIBRARY = "xul"
144 include("/ipc/chromium/chromium-config.mozbuild")