2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; 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 += [
|
|
|
|
'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',
|
2013-07-26 19:37:02 +04:00
|
|
|
'nsISecurityConsoleMessage.idl',
|
2014-03-20 06:52:11 +04:00
|
|
|
'nsIStatusReporter.idl',
|
2013-03-12 21:17:46 +04:00
|
|
|
'nsISupports.idl',
|
|
|
|
'nsIUUIDGenerator.idl',
|
|
|
|
'nsIVersionComparator.idl',
|
|
|
|
'nsIWeakReference.idl',
|
|
|
|
'nsrootidl.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 21:20:41 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIMacUtils.idl',
|
|
|
|
]
|
2015-07-29 01:45:34 +03:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'MacHelpers.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'MacHelpers.mm',
|
|
|
|
]
|
2013-03-12 21:20:41 +04:00
|
|
|
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'xpcom_base'
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
2017-03-30 21:13:01 +03:00
|
|
|
'!ErrorList.h',
|
|
|
|
'!ErrorNamesInternal.h',
|
2014-08-01 03:39:25 +04:00
|
|
|
'CodeAddressService.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsAgg.h',
|
2015-03-11 02:41:38 +03:00
|
|
|
'nsAlgorithm.h',
|
2013-07-02 01:24:53 +04:00
|
|
|
'nsAutoPtr.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsAutoRef.h',
|
|
|
|
'nsCom.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsCOMPtr.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nscore.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsCRTGlue.h',
|
|
|
|
'nsCycleCollectionNoteChild.h',
|
|
|
|
'nsCycleCollectionNoteRootCallback.h',
|
|
|
|
'nsCycleCollectionParticipant.h',
|
|
|
|
'nsCycleCollectionTraversalCallback.h',
|
2013-07-02 01:24:53 +04:00
|
|
|
'nsCycleCollector.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsDebug.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsDebugImpl.h',
|
2015-06-04 09:47:09 +03:00
|
|
|
'nsDumpUtils.h',
|
2013-07-02 01:24:53 +04:00
|
|
|
'nsError.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsGZFileWriter.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsIClassInfoImpl.h',
|
|
|
|
'nsID.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsIID.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsIInterfaceRequestorUtils.h',
|
|
|
|
'nsINIParser.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsInterfaceRequestorAgg.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsISizeOf.h',
|
2013-07-02 01:24:53 +04:00
|
|
|
'nsISupportsBase.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsISupportsImpl.h',
|
|
|
|
'nsISupportsUtils.h',
|
|
|
|
'nsIWeakReferenceUtils.h',
|
|
|
|
'nsMemory.h',
|
2013-07-02 01:24:53 +04:00
|
|
|
'nsObjCExceptions.h',
|
2015-04-15 19:47:03 +03:00
|
|
|
'nsQueryObject.h',
|
2014-02-27 01:36:36 +04:00
|
|
|
'nsTraceRefcnt.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsTWeakRef.h',
|
|
|
|
'nsVersionComparator.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsWeakPtr.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsWeakReference.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-07-02 01:24:53 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS += [
|
|
|
|
'nsWindowsHelpers.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla += [
|
2017-01-23 17:24:01 +03:00
|
|
|
'AutoRestore.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'AvailableMemoryTracker.h',
|
|
|
|
'ClearOnShutdown.h',
|
2014-08-25 23:34:00 +04:00
|
|
|
'CountingAllocatorBase.h',
|
2016-09-14 16:47:32 +03:00
|
|
|
'CycleCollectedJSContext.h',
|
2017-02-24 00:23:45 +03:00
|
|
|
'CycleCollectedJSRuntime.h',
|
2013-11-05 18:16:25 +04:00
|
|
|
'Debug.h',
|
2015-04-22 19:43:02 +03:00
|
|
|
'DebuggerOnGCRunnable.h',
|
2015-03-18 21:36:03 +03:00
|
|
|
'DeferredFinalize.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'EnumeratedArrayCycleCollection.h',
|
2014-10-20 15:09:00 +04:00
|
|
|
'ErrorNames.h',
|
2015-03-11 02:41:38 +03:00
|
|
|
'HoldDropJSObjects.h',
|
2017-01-23 17:24:01 +03:00
|
|
|
'IntentionalCrash.h',
|
2015-07-21 21:31:44 +03:00
|
|
|
'JSObjectHolder.h',
|
2014-08-23 03:35:29 +04:00
|
|
|
'LinuxUtils.h',
|
2015-10-19 22:22:11 +03:00
|
|
|
'Logging.h',
|
2017-01-27 03:35:54 +03:00
|
|
|
'MemoryReportingProcess.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsMemoryInfoDumper.h',
|
2017-03-06 19:42:31 +03:00
|
|
|
'NSPRLogModulesParser.h',
|
2015-08-05 15:28:27 +03:00
|
|
|
'OwningNonNull.h',
|
2017-07-28 13:10:04 +03:00
|
|
|
'SizeOfState.h',
|
2013-05-24 21:10:47 +04:00
|
|
|
'StaticMutex.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'StaticPtr.h',
|
2013-12-05 07:32:50 +04:00
|
|
|
'SystemMemoryReporter.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-12-10 21:26:53 +04: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 08:39:26 +04:00
|
|
|
SOURCES['nsDebugImpl.cpp'].no_pgo = True
|
2013-12-10 21:26:53 +04:00
|
|
|
|
2013-11-19 06:34:00 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'AvailableMemoryTracker.cpp',
|
|
|
|
'ClearOnShutdown.cpp',
|
2016-09-14 16:47:32 +03:00
|
|
|
'CycleCollectedJSContext.cpp',
|
2017-02-24 00:23:45 +03:00
|
|
|
'CycleCollectedJSRuntime.cpp',
|
2013-11-05 18:16:25 +04:00
|
|
|
'Debug.cpp',
|
2015-04-22 19:43:02 +03:00
|
|
|
'DebuggerOnGCRunnable.cpp',
|
2015-03-18 21:36:03 +03:00
|
|
|
'DeferredFinalize.cpp',
|
2014-10-20 15:09:00 +04:00
|
|
|
'ErrorNames.cpp',
|
2015-03-11 02:41:38 +03:00
|
|
|
'HoldDropJSObjects.cpp',
|
2015-07-21 21:31:44 +03:00
|
|
|
'JSObjectHolder.cpp',
|
2015-10-19 22:22:11 +03:00
|
|
|
'Logging.cpp',
|
2015-12-23 02:09:41 +03:00
|
|
|
'LogModulePrefWatcher.cpp',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsClassInfoImpl.cpp',
|
|
|
|
'nsCOMPtr.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsConsoleMessage.cpp',
|
|
|
|
'nsConsoleService.cpp',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsCRTGlue.cpp',
|
|
|
|
'nsCycleCollectionParticipant.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsCycleCollector.cpp',
|
2015-12-19 01:22:01 +03:00
|
|
|
'nsCycleCollectorTraceJSHelpers.cpp',
|
2014-03-20 11:29:51 +04:00
|
|
|
'nsDumpUtils.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsErrorService.cpp',
|
|
|
|
'nsGZFileWriter.cpp',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsID.cpp',
|
|
|
|
'nsIInterfaceRequestorUtils.cpp',
|
|
|
|
'nsINIParser.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsInterfaceRequestorAgg.cpp',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsISupportsImpl.cpp',
|
|
|
|
'nsMemory.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsMemoryImpl.cpp',
|
|
|
|
'nsMemoryInfoDumper.cpp',
|
|
|
|
'nsMemoryReporterManager.cpp',
|
|
|
|
'nsMessageLoop.cpp',
|
2015-12-22 04:10:26 +03:00
|
|
|
'NSPRLogModulesParser.cpp',
|
2013-07-26 19:37:02 +04:00
|
|
|
'nsSecurityConsoleMessage.cpp',
|
2014-03-20 06:52:11 +04:00
|
|
|
'nsStatusReporterManager.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsSystemInfo.cpp',
|
2014-02-27 01:36:36 +04:00
|
|
|
'nsTraceRefcnt.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsUUIDGenerator.cpp',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsVersionComparator.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsVersionComparatorImpl.cpp',
|
2017-01-23 17:24:01 +03:00
|
|
|
'nsWeakReference.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2017-03-30 21:13:01 +03:00
|
|
|
GENERATED_FILES += [
|
2017-03-31 21:20:09 +03:00
|
|
|
"error_list.rs",
|
2017-03-30 21:13:01 +03:00
|
|
|
"ErrorList.h",
|
2017-03-31 21:20:09 +03:00
|
|
|
"ErrorNamesInternal.h",
|
2017-03-30 21:13:01 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
GENERATED_FILES["ErrorList.h"].script = "ErrorList.py:error_list_h"
|
|
|
|
GENERATED_FILES["ErrorNamesInternal.h"].script = "ErrorList.py:error_names_internal_h"
|
2017-03-31 21:20:09 +03:00
|
|
|
GENERATED_FILES["error_list.rs"].script = "ErrorList.py:error_list_rs"
|
2017-03-30 21:13:01 +03:00
|
|
|
|
2013-12-05 07:32:50 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
SOURCES += [
|
2014-08-23 03:35:29 +04:00
|
|
|
'LinuxUtils.cpp',
|
2013-12-05 07:32:50 +04:00
|
|
|
'SystemMemoryReporter.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsMacUtilsImpl.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsCrashOnException.cpp',
|
|
|
|
]
|
2013-08-22 10:56:01 +04:00
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-12-19 00:03:11 +04:00
|
|
|
|
2013-12-31 13:06:11 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../build',
|
|
|
|
'/xpcom/ds',
|
|
|
|
]
|
|
|
|
|
2016-03-16 08:06:26 +03:00
|
|
|
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
2014-07-24 19:55:33 +04:00
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|