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 += [
|
|
|
|
'nsIConsoleListener.idl',
|
|
|
|
'nsIConsoleMessage.idl',
|
|
|
|
'nsIConsoleService.idl',
|
|
|
|
'nsICycleCollectorListener.idl',
|
|
|
|
'nsIDebug.idl',
|
|
|
|
'nsIDebug2.idl',
|
|
|
|
'nsIErrorService.idl',
|
|
|
|
'nsIException.idl',
|
|
|
|
'nsIGZFileWriter.idl',
|
|
|
|
'nsIInterfaceRequestor.idl',
|
|
|
|
'nsIMemory.idl',
|
|
|
|
'nsIMemoryInfoDumper.idl',
|
|
|
|
'nsIMemoryReporter.idl',
|
|
|
|
'nsIMessageLoop.idl',
|
|
|
|
'nsIMutable.idl',
|
|
|
|
'nsIProgrammingLanguage.idl',
|
2013-07-26 08:37:02 -07:00
|
|
|
'nsISecurityConsoleMessage.idl',
|
2014-03-19 19:52:11 -07:00
|
|
|
'nsIStatusReporter.idl',
|
2013-03-12 10:17:46 -07:00
|
|
|
'nsISupports.idl',
|
|
|
|
'nsIUUIDGenerator.idl',
|
|
|
|
'nsIVersionComparator.idl',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsIVisualEventTracer.idl',
|
2013-03-12 10:17:46 -07:00
|
|
|
'nsIWeakReference.idl',
|
|
|
|
'nsrootidl.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 10:20:41 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIMacUtils.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-11 22:00:00 -07:00
|
|
|
XPIDL_MODULE = 'xpcom_base'
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2014-07-31 16:39:25 -07:00
|
|
|
'CodeAddressService.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'ErrorList.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsAgg.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsAutoPtr.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsAutoRef.h',
|
|
|
|
'nsCom.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nscore.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsCycleCollector.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsDebugImpl.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsError.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsGZFileWriter.h',
|
|
|
|
'nsIID.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsInterfaceRequestorAgg.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsISizeOf.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsISupportsBase.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsISupportsObsolete.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsObjCExceptions.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsStackWalk.h',
|
2014-02-26 13:36:36 -08:00
|
|
|
'nsTraceRefcnt.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsWeakPtr.h',
|
|
|
|
]
|
|
|
|
|
2013-07-01 14:24:53 -07:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS += [
|
|
|
|
'nsWindowsHelpers.h',
|
|
|
|
]
|
2013-10-31 18:30:45 -07:00
|
|
|
if CONFIG['MOZ_DEBUG']:
|
|
|
|
EXPORTS += ['pure.h']
|
|
|
|
SOURCES += ['pure_api.c']
|
2013-07-01 14:24:53 -07:00
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'AvailableMemoryTracker.h',
|
|
|
|
'ClearOnShutdown.h',
|
2014-08-25 12:34:00 -07:00
|
|
|
'CountingAllocatorBase.h',
|
2013-06-18 12:02:07 -07:00
|
|
|
'CycleCollectedJSRuntime.h',
|
2013-11-05 06:16:25 -08:00
|
|
|
'Debug.h',
|
2014-08-22 16:35:29 -07:00
|
|
|
'LinuxUtils.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsMemoryInfoDumper.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'StackWalk.h',
|
2013-05-24 10:10:47 -07:00
|
|
|
'StaticMutex.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'StaticPtr.h',
|
2013-12-04 19:32:50 -08:00
|
|
|
'SystemMemoryReporter.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'VisualEventTracer.h',
|
|
|
|
]
|
|
|
|
|
2013-12-10 09:26:53 -08:00
|
|
|
# nsDebugImpl isn't unified because we disable PGO so that NS_ABORT_OOM isn't
|
|
|
|
# optimized away oddly.
|
|
|
|
SOURCES += [
|
|
|
|
'nsDebugImpl.cpp',
|
|
|
|
]
|
2013-12-08 20:39:26 -08:00
|
|
|
SOURCES['nsDebugImpl.cpp'].no_pgo = True
|
2013-12-10 09:26:53 -08:00
|
|
|
|
2013-11-18 18:34:00 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'AvailableMemoryTracker.cpp',
|
|
|
|
'ClearOnShutdown.cpp',
|
2013-06-18 12:02:07 -07:00
|
|
|
'CycleCollectedJSRuntime.cpp',
|
2013-11-05 06:16:25 -08:00
|
|
|
'Debug.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsConsoleMessage.cpp',
|
|
|
|
'nsConsoleService.cpp',
|
|
|
|
'nsCycleCollector.cpp',
|
2014-03-20 00:29:51 -07:00
|
|
|
'nsDumpUtils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsErrorService.cpp',
|
|
|
|
'nsGZFileWriter.cpp',
|
|
|
|
'nsInterfaceRequestorAgg.cpp',
|
|
|
|
'nsMemoryImpl.cpp',
|
|
|
|
'nsMemoryInfoDumper.cpp',
|
|
|
|
'nsMemoryReporterManager.cpp',
|
|
|
|
'nsMessageLoop.cpp',
|
2013-07-26 08:37:02 -07:00
|
|
|
'nsSecurityConsoleMessage.cpp',
|
2014-03-19 19:52:11 -07:00
|
|
|
'nsStatusReporterManager.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsSystemInfo.cpp',
|
2014-02-26 13:36:36 -08:00
|
|
|
'nsTraceRefcnt.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsUUIDGenerator.cpp',
|
|
|
|
'nsVersionComparatorImpl.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'VisualEventTracer.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-12-18 12:03:11 -08:00
|
|
|
# On Windows, NS_StackWalk will only work correctly if we have frame pointers available.
|
|
|
|
# That will only be true for non-optimized builds, and for optimized builds with
|
|
|
|
# --enable-profiling in the .mozconfig (which is turned on in Nightly by default.)
|
|
|
|
# We exclude this file from other build configurations so that if somebody adds a
|
|
|
|
# new usage of NS_StackWalk it will cause a link error, which is better than having
|
|
|
|
# NS_StackWalk silently return garbage at runtime.
|
|
|
|
if CONFIG['OS_TARGET'] != 'WINNT' or \
|
|
|
|
(not CONFIG['MOZ_OPTIMIZE'] or CONFIG['MOZ_PROFILING'] or CONFIG['MOZ_DEBUG']):
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsStackWalk.cpp',
|
|
|
|
]
|
|
|
|
|
2013-12-04 19:32:50 -08:00
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
SOURCES += [
|
2014-08-22 16:35:29 -07:00
|
|
|
'LinuxUtils.cpp',
|
2013-12-04 19:32:50 -08:00
|
|
|
'SystemMemoryReporter.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsMacUtilsImpl.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsCrashOnException.cpp',
|
|
|
|
]
|
2013-08-21 23:56:01 -07:00
|
|
|
|
2013-11-18 18:34:00 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-08-21 23:56:02 -07:00
|
|
|
'nsErrorAssertsC.c',
|
|
|
|
]
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-12-18 12:03:11 -08:00
|
|
|
|
2013-12-31 01:06:11 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../build',
|
|
|
|
'/xpcom/ds',
|
|
|
|
]
|
|
|
|
|
2013-12-18 12:03:11 -08:00
|
|
|
if CONFIG['MOZ_OPTIMIZE']:
|
|
|
|
DEFINES['MOZ_OPTIMIZE'] = True
|
2014-07-24 08:55:33 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_GTK']:
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|