2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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 += [
|
|
|
|
'nsICancelableRunnable.idl',
|
|
|
|
'nsIEnvironment.idl',
|
|
|
|
'nsIEventTarget.idl',
|
|
|
|
'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 += [
|
|
|
|
'nsEventQueue.h',
|
2013-07-09 06:15:34 +04:00
|
|
|
'nsMemoryPressure.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsProcess.h',
|
|
|
|
'nsThread.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2015-08-05 02:32:11 +03:00
|
|
|
'AbstractThread.h',
|
2013-11-22 23:17:29 +04:00
|
|
|
'BackgroundHangMonitor.h',
|
2015-03-10 04:41:24 +03:00
|
|
|
'HangAnnotations.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'HangMonitor.h',
|
|
|
|
'LazyIdleThread.h',
|
2015-08-14 21:31:34 +03:00
|
|
|
'MozPromise.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',
|
2015-08-05 02:32:11 +03:00
|
|
|
'TaskDispatcher.h',
|
2015-08-08 03:03:47 +03:00
|
|
|
'TaskQueue.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',
|
2015-03-10 04:41:24 +03:00
|
|
|
'HangAnnotations.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'HangMonitor.cpp',
|
|
|
|
'LazyIdleThread.cpp',
|
|
|
|
'nsEnvironment.cpp',
|
|
|
|
'nsEventQueue.cpp',
|
2013-07-09 06:15:34 +04:00
|
|
|
'nsMemoryPressure.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsProcessCommon.cpp',
|
|
|
|
'nsThread.cpp',
|
|
|
|
'nsThreadManager.cpp',
|
|
|
|
'nsThreadPool.cpp',
|
|
|
|
'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',
|
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
|
|
|
|
2016-01-27 17:39:53 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
# Gonk's bionic doesn't have ucontext.h
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/toolkit/crashreporter/gonk-include',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
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')
|
2015-09-22 08:41:52 +03:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wshadow']
|