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