2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:02 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-03-12 21:17:46 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIEnvironment.idl',
|
|
|
|
'nsIEventTarget.idl',
|
2016-08-24 17:18:06 +03:00
|
|
|
'nsIIdlePeriod.idl',
|
2016-11-23 03:18:52 +03:00
|
|
|
'nsINamed.idl',
|
2013-03-12 21:17:46 +04:00
|
|
|
'nsIProcess.idl',
|
|
|
|
'nsIRunnable.idl',
|
|
|
|
'nsISupportsPriority.idl',
|
|
|
|
'nsIThread.idl',
|
|
|
|
'nsIThreadInternal.idl',
|
|
|
|
'nsIThreadManager.idl',
|
|
|
|
'nsIThreadPool.idl',
|
|
|
|
'nsITimer.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'xpcom_threads'
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
2017-01-20 22:13:57 +03:00
|
|
|
'MainThreadUtils.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsEventQueue.h',
|
2016-04-11 21:40:06 +03:00
|
|
|
'nsICancelableRunnable.h',
|
2016-08-24 17:18:06 +03:00
|
|
|
'nsIIncrementalRunnable.h',
|
2013-07-09 06:15:34 +04:00
|
|
|
'nsMemoryPressure.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsProcess.h',
|
2017-01-20 22:13:57 +03:00
|
|
|
'nsProxyRelease.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsThread.h',
|
2017-01-20 22:13:57 +03:00
|
|
|
'nsThreadUtils.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2015-08-05 02:32:11 +03:00
|
|
|
'AbstractThread.h',
|
2013-11-22 23:17:29 +04:00
|
|
|
'BackgroundHangMonitor.h',
|
2017-01-20 22:13:57 +03:00
|
|
|
'BlockingResourceBase.h',
|
|
|
|
'CondVar.h',
|
|
|
|
'DeadlockDetector.h',
|
2015-03-10 04:41:24 +03:00
|
|
|
'HangAnnotations.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'HangMonitor.h',
|
|
|
|
'LazyIdleThread.h',
|
2016-08-24 17:18:06 +03:00
|
|
|
'MainThreadIdlePeriod.h',
|
2017-01-20 22:13:57 +03:00
|
|
|
'Monitor.h',
|
2015-08-14 21:31:34 +03:00
|
|
|
'MozPromise.h',
|
2017-01-20 22:13:57 +03:00
|
|
|
'Mutex.h',
|
|
|
|
'ReentrantMonitor.h',
|
2015-08-04 00:37:23 +03:00
|
|
|
'SharedThreadPool.h',
|
2015-08-18 20:31:16 +03:00
|
|
|
'StateMirroring.h',
|
|
|
|
'StateWatching.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'SyncRunnable.h',
|
2017-01-19 07:26:17 +03:00
|
|
|
'TaskCategory.h',
|
2015-08-05 02:32:11 +03:00
|
|
|
'TaskDispatcher.h',
|
2015-08-08 03:03:47 +03:00
|
|
|
'TaskQueue.h',
|
2016-11-07 23:30:17 +03:00
|
|
|
'ThrottledEventQueue.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-11-19 06:34:00 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2015-08-05 02:32:11 +03:00
|
|
|
'AbstractThread.cpp',
|
2013-11-22 23:17:29 +04:00
|
|
|
'BackgroundHangMonitor.cpp',
|
2017-01-20 22:13:57 +03:00
|
|
|
'BlockingResourceBase.cpp',
|
2015-03-10 04:41:24 +03:00
|
|
|
'HangAnnotations.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'HangMonitor.cpp',
|
|
|
|
'LazyIdleThread.cpp',
|
2016-08-24 17:18:06 +03:00
|
|
|
'MainThreadIdlePeriod.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsEnvironment.cpp',
|
|
|
|
'nsEventQueue.cpp',
|
2013-07-09 06:15:34 +04:00
|
|
|
'nsMemoryPressure.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsProcessCommon.cpp',
|
2017-01-20 22:13:57 +03:00
|
|
|
'nsProxyRelease.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsThread.cpp',
|
|
|
|
'nsThreadManager.cpp',
|
|
|
|
'nsThreadPool.cpp',
|
2017-01-20 22:13:57 +03:00
|
|
|
'nsThreadUtils.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsTimerImpl.cpp',
|
2015-08-04 00:37:23 +03:00
|
|
|
'SharedThreadPool.cpp',
|
2015-08-08 03:03:47 +03:00
|
|
|
'TaskQueue.cpp',
|
2013-11-22 23:17:30 +04:00
|
|
|
'ThreadStackHelper.cpp',
|
2016-11-07 23:30:17 +03:00
|
|
|
'ThrottledEventQueue.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'TimerThread.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-09-12 16:15:51 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../build',
|
2014-07-15 22:12:59 +04:00
|
|
|
'/caps',
|
2014-07-28 21:30:21 +04:00
|
|
|
'/tools/profiler',
|
2013-09-12 16:15:51 +04:00
|
|
|
]
|
2013-11-19 06:47:14 +04:00
|
|
|
|
2015-03-09 11:58:00 +03:00
|
|
|
# BHR disabled for Release builds because of bug 965392.
|
|
|
|
# BHR disabled for debug builds because of bug 979069.
|
2015-07-06 04:30:51 +03:00
|
|
|
# BHR disabled on gonk because of bug 1180533
|
2015-08-04 07:27:59 +03:00
|
|
|
# BHR disabled for TSan builds because of bug 1121216.
|
|
|
|
if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('release') and \
|
|
|
|
not CONFIG['MOZ_DEBUG'] and \
|
|
|
|
not CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and \
|
|
|
|
not CONFIG['MOZ_TSAN']:
|
2015-03-09 11:58:00 +03:00
|
|
|
DEFINES['MOZ_ENABLE_BACKGROUND_HANG_MONITOR'] = 1
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-10-23 16:01:24 +04:00
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|