2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:20:02 +00: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 17:17:46 +00:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIEnvironment.idl',
|
|
|
|
'nsIEventTarget.idl',
|
2016-08-24 14:18:06 +00:00
|
|
|
'nsIIdlePeriod.idl',
|
2013-03-12 17:17:46 +00:00
|
|
|
'nsIProcess.idl',
|
|
|
|
'nsIRunnable.idl',
|
|
|
|
'nsISupportsPriority.idl',
|
|
|
|
'nsIThread.idl',
|
|
|
|
'nsIThreadInternal.idl',
|
|
|
|
'nsIThreadManager.idl',
|
|
|
|
'nsIThreadPool.idl',
|
|
|
|
'nsITimer.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 05:00:00 +00:00
|
|
|
XPIDL_MODULE = 'xpcom_threads'
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsEventQueue.h',
|
2016-04-11 18:40:06 +00:00
|
|
|
'nsICancelableRunnable.h',
|
2016-08-24 14:18:06 +00:00
|
|
|
'nsIIncrementalRunnable.h',
|
2013-07-09 02:15:34 +00:00
|
|
|
'nsMemoryPressure.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsProcess.h',
|
|
|
|
'nsThread.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2015-08-04 23:32:11 +00:00
|
|
|
'AbstractThread.h',
|
2013-11-22 19:17:29 +00:00
|
|
|
'BackgroundHangMonitor.h',
|
2015-03-10 01:41:24 +00:00
|
|
|
'HangAnnotations.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'HangMonitor.h',
|
|
|
|
'LazyIdleThread.h',
|
2016-08-24 14:18:06 +00:00
|
|
|
'MainThreadIdlePeriod.h',
|
2015-08-14 18:31:34 +00:00
|
|
|
'MozPromise.h',
|
2015-08-03 21:37:23 +00:00
|
|
|
'SharedThreadPool.h',
|
2015-08-18 17:31:16 +00:00
|
|
|
'StateMirroring.h',
|
|
|
|
'StateWatching.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'SyncRunnable.h',
|
2015-08-04 23:32:11 +00:00
|
|
|
'TaskDispatcher.h',
|
2015-08-08 00:03:47 +00:00
|
|
|
'TaskQueue.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
2013-11-19 02:34:00 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2015-08-04 23:32:11 +00:00
|
|
|
'AbstractThread.cpp',
|
2013-11-22 19:17:29 +00:00
|
|
|
'BackgroundHangMonitor.cpp',
|
2015-03-10 01:41:24 +00:00
|
|
|
'HangAnnotations.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'HangMonitor.cpp',
|
|
|
|
'LazyIdleThread.cpp',
|
2016-08-24 14:18:06 +00:00
|
|
|
'MainThreadIdlePeriod.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsEnvironment.cpp',
|
|
|
|
'nsEventQueue.cpp',
|
2013-07-09 02:15:34 +00:00
|
|
|
'nsMemoryPressure.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsProcessCommon.cpp',
|
|
|
|
'nsThread.cpp',
|
|
|
|
'nsThreadManager.cpp',
|
|
|
|
'nsThreadPool.cpp',
|
|
|
|
'nsTimerImpl.cpp',
|
2015-08-03 21:37:23 +00:00
|
|
|
'SharedThreadPool.cpp',
|
2015-08-08 00:03:47 +00:00
|
|
|
'TaskQueue.cpp',
|
2013-11-22 19:17:30 +00:00
|
|
|
'ThreadStackHelper.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'TimerThread.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2013-09-12 12:15:51 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../build',
|
2014-07-15 18:12:59 +00:00
|
|
|
'/caps',
|
2014-07-28 17:30:21 +00:00
|
|
|
'/tools/profiler',
|
2013-09-12 12:15:51 +00:00
|
|
|
]
|
2013-11-19 02:47:14 +00:00
|
|
|
|
2015-03-09 08:58:00 +00:00
|
|
|
# BHR disabled for Release builds because of bug 965392.
|
|
|
|
# BHR disabled for debug builds because of bug 979069.
|
2015-07-06 01:30:51 +00:00
|
|
|
# BHR disabled on gonk because of bug 1180533
|
2015-08-04 04:27:59 +00: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 08:58:00 +00:00
|
|
|
DEFINES['MOZ_ENABLE_BACKGROUND_HANG_MONITOR'] = 1
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-10-23 12:01:24 +00:00
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|