2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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 += [
|
|
|
|
'nsIConsoleListener.idl',
|
|
|
|
'nsIConsoleMessage.idl',
|
|
|
|
'nsIConsoleService.idl',
|
|
|
|
'nsICycleCollectorListener.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 15:37:02 +00:00
|
|
|
'nsISecurityConsoleMessage.idl',
|
2014-03-20 02:52:11 +00:00
|
|
|
'nsIStatusReporter.idl',
|
2013-03-12 17:17:46 +00:00
|
|
|
'nsISupports.idl',
|
|
|
|
'nsIUUIDGenerator.idl',
|
|
|
|
'nsIVersionComparator.idl',
|
|
|
|
'nsIWeakReference.idl',
|
|
|
|
'nsrootidl.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 17:20:41 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIMacUtils.idl',
|
|
|
|
]
|
2015-07-28 22:45:34 +00:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'MacHelpers.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'MacHelpers.mm',
|
|
|
|
]
|
2013-03-12 17:20:41 +00:00
|
|
|
|
2013-03-12 05:00:00 +00:00
|
|
|
XPIDL_MODULE = 'xpcom_base'
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
2014-07-31 23:39:25 +00:00
|
|
|
'CodeAddressService.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'ErrorList.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsAgg.h',
|
2015-03-10 23:41:38 +00:00
|
|
|
'nsAlgorithm.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsAutoPtr.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsAutoRef.h',
|
|
|
|
'nsCom.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nscore.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsCycleCollector.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsDebugImpl.h',
|
2015-06-04 06:47:09 +00:00
|
|
|
'nsDumpUtils.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsError.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsGZFileWriter.h',
|
|
|
|
'nsIID.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsInterfaceRequestorAgg.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsISizeOf.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsISupportsBase.h',
|
|
|
|
'nsObjCExceptions.h',
|
2015-04-15 16:47:03 +00:00
|
|
|
'nsQueryObject.h',
|
2014-02-26 21:36:36 +00:00
|
|
|
'nsTraceRefcnt.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsWeakPtr.h',
|
|
|
|
]
|
|
|
|
|
2013-07-01 21:24:53 +00:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS += [
|
|
|
|
'nsWindowsHelpers.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'AvailableMemoryTracker.h',
|
|
|
|
'ClearOnShutdown.h',
|
2014-08-25 19:34:00 +00:00
|
|
|
'CountingAllocatorBase.h',
|
2013-06-18 19:02:07 +00:00
|
|
|
'CycleCollectedJSRuntime.h',
|
2013-11-05 14:16:25 +00:00
|
|
|
'Debug.h',
|
2015-04-22 16:43:02 +00:00
|
|
|
'DebuggerOnGCRunnable.h',
|
2015-03-18 18:36:03 +00:00
|
|
|
'DeferredFinalize.h',
|
2014-10-20 11:09:00 +00:00
|
|
|
'ErrorNames.h',
|
2015-03-10 23:41:38 +00:00
|
|
|
'HoldDropJSObjects.h',
|
2015-07-21 18:31:44 +00:00
|
|
|
'JSObjectHolder.h',
|
2014-08-22 23:35:29 +00:00
|
|
|
'LinuxUtils.h',
|
2015-10-19 19:22:11 +00:00
|
|
|
'Logging.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsMemoryInfoDumper.h',
|
2015-08-05 12:28:27 +00:00
|
|
|
'OwningNonNull.h',
|
2013-05-24 17:10:47 +00:00
|
|
|
'StaticMutex.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'StaticPtr.h',
|
2013-12-05 03:32:50 +00:00
|
|
|
'SystemMemoryReporter.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
2013-12-10 17:26:53 +00:00
|
|
|
# nsDebugImpl isn't unified because we disable PGO so that NS_ABORT_OOM isn't
|
|
|
|
# optimized away oddly.
|
|
|
|
SOURCES += [
|
|
|
|
'nsDebugImpl.cpp',
|
|
|
|
]
|
2013-12-09 04:39:26 +00:00
|
|
|
SOURCES['nsDebugImpl.cpp'].no_pgo = True
|
2013-12-10 17:26:53 +00:00
|
|
|
|
2013-11-19 02:34:00 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'AvailableMemoryTracker.cpp',
|
|
|
|
'ClearOnShutdown.cpp',
|
2013-06-18 19:02:07 +00:00
|
|
|
'CycleCollectedJSRuntime.cpp',
|
2013-11-05 14:16:25 +00:00
|
|
|
'Debug.cpp',
|
2015-04-22 16:43:02 +00:00
|
|
|
'DebuggerOnGCRunnable.cpp',
|
2015-03-18 18:36:03 +00:00
|
|
|
'DeferredFinalize.cpp',
|
2014-10-20 11:09:00 +00:00
|
|
|
'ErrorNames.cpp',
|
2015-03-10 23:41:38 +00:00
|
|
|
'HoldDropJSObjects.cpp',
|
2015-07-21 18:31:44 +00:00
|
|
|
'JSObjectHolder.cpp',
|
2015-10-19 19:22:11 +00:00
|
|
|
'Logging.cpp',
|
2015-12-22 23:09:41 +00:00
|
|
|
'LogModulePrefWatcher.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsConsoleMessage.cpp',
|
|
|
|
'nsConsoleService.cpp',
|
|
|
|
'nsCycleCollector.cpp',
|
2015-12-18 22:22:01 +00:00
|
|
|
'nsCycleCollectorTraceJSHelpers.cpp',
|
2014-03-20 07:29:51 +00:00
|
|
|
'nsDumpUtils.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsErrorService.cpp',
|
|
|
|
'nsGZFileWriter.cpp',
|
|
|
|
'nsInterfaceRequestorAgg.cpp',
|
|
|
|
'nsMemoryImpl.cpp',
|
|
|
|
'nsMemoryInfoDumper.cpp',
|
|
|
|
'nsMemoryReporterManager.cpp',
|
|
|
|
'nsMessageLoop.cpp',
|
2015-12-22 01:10:26 +00:00
|
|
|
'NSPRLogModulesParser.cpp',
|
2013-07-26 15:37:02 +00:00
|
|
|
'nsSecurityConsoleMessage.cpp',
|
2014-03-20 02:52:11 +00:00
|
|
|
'nsStatusReporterManager.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsSystemInfo.cpp',
|
2014-02-26 21:36:36 +00:00
|
|
|
'nsTraceRefcnt.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsUUIDGenerator.cpp',
|
|
|
|
'nsVersionComparatorImpl.cpp',
|
|
|
|
]
|
|
|
|
|
2013-12-05 03:32:50 +00:00
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
SOURCES += [
|
2014-08-22 23:35:29 +00:00
|
|
|
'LinuxUtils.cpp',
|
2013-12-05 03:32:50 +00:00
|
|
|
'SystemMemoryReporter.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-23 21:54:15 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsMacUtilsImpl.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsCrashOnException.cpp',
|
|
|
|
]
|
2013-08-22 06:56:01 +00:00
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-12-18 20:03:11 +00:00
|
|
|
|
2013-12-31 09:06:11 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../build',
|
|
|
|
'/xpcom/ds',
|
|
|
|
]
|
|
|
|
|
2016-03-16 05:06:26 +00:00
|
|
|
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
2014-07-24 15:55:33 +00:00
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
2015-09-08 06:56:16 +00:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wshadow']
|