xpcom/base/moz.build
author Phil Ringnalda <philringnalda@gmail.com>
Tue, 03 Sep 2013 23:21:30 -0700
changeset 159247 28c308fbc854689e8d9a650de78bc10714875839
parent 159244 ae9f95fc113658570613ede2924602f81d38ed69
child 159250 3cf5058f6296272089460ffd710173a8d05abae4
permissions -rw-r--r--
Back out ce03cc2994aa:ae9f95fc1136 (bug 896797) for SpiderMonkey shell build bustage CLOSED TREE

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

XPIDL_SOURCES += [
    'nsIConsoleListener.idl',
    'nsIConsoleMessage.idl',
    'nsIConsoleService.idl',
    'nsICycleCollectorListener.idl',
    'nsIDebug.idl',
    'nsIDebug2.idl',
    'nsIErrorService.idl',
    'nsIException.idl',
    'nsIExceptionService.idl',
    'nsIGZFileWriter.idl',
    'nsIInterfaceRequestor.idl',
    'nsIMemory.idl',
    'nsIMemoryInfoDumper.idl',
    'nsIMemoryReporter.idl',
    'nsIMessageLoop.idl',
    'nsIMutable.idl',
    'nsIProgrammingLanguage.idl',
    'nsISecurityConsoleMessage.idl',
    'nsISupports.idl',
    'nsITraceRefcnt.idl',
    'nsIUUIDGenerator.idl',
    'nsIVersionComparator.idl',
    'nsIVisualEventTracer.idl',
    'nsIWeakReference.idl',
    'nsrootidl.idl',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    XPIDL_SOURCES += [
        'nsIMacUtils.idl',
    ]

XPIDL_MODULE = 'xpcom_base'

MODULE = 'xpcom'

EXPORTS += [
    'ErrorList.h',
    'ErrorListCDefines.h',
    'ErrorListCxxDefines.h',
    'nsAgg.h',
    'nsAutoPtr.h',
    'nsAutoRef.h',
    'nsCom.h',
    'nsCycleCollector.h',
    'nsDebugImpl.h',
    'nsError.h',
    'nsGZFileWriter.h',
    'nsIAllocator.h',
    'nsIID.h',
    'nsISizeOf.h',
    'nsISupportsBase.h',
    'nsISupportsObsolete.h',
    'nsInterfaceRequestorAgg.h',
    'nsObjCExceptions.h',
    'nsStackWalk.h',
    'nsTraceRefcntImpl.h',
    'nsWeakPtr.h',
    'nscore.h',
]

if CONFIG['MOZ_DEBUG']:
    EXPORTS += ['pure.h']

if CONFIG['OS_ARCH'] == 'WINNT':
    EXPORTS += [
        'nsWindowsHelpers.h',
    ]

EXPORTS.mozilla += [
    'AvailableMemoryTracker.h',
    'ClearOnShutdown.h',
    'CycleCollectedJSRuntime.h',
    'MapsMemoryReporter.h',
    'StackWalk.h',
    'StaticMutex.h',
    'StaticPtr.h',
    'VisualEventTracer.h',
    'nsMemoryInfoDumper.h',
]

CPP_SOURCES += [
    'AvailableMemoryTracker.cpp',
    'ClearOnShutdown.cpp',
    'CycleCollectedJSRuntime.cpp',
    'VisualEventTracer.cpp',
    'nsConsoleMessage.cpp',
    'nsConsoleService.cpp',
    'nsCycleCollector.cpp',
    'nsDebugImpl.cpp',
    'nsErrorAsserts.cpp',
    'nsErrorService.cpp',
    'nsExceptionService.cpp',
    'nsGZFileWriter.cpp',
    'nsInterfaceRequestorAgg.cpp',
    'nsMemoryImpl.cpp',
    'nsMemoryInfoDumper.cpp',
    'nsMemoryReporterManager.cpp',
    'nsMessageLoop.cpp',
    'nsSecurityConsoleMessage.cpp',
    'nsStackWalk.cpp',
    'nsSystemInfo.cpp',
    'nsTraceRefcntImpl.cpp',
    'nsUUIDGenerator.cpp',
    'nsVersionComparatorImpl.cpp',
]

if CONFIG['OS_ARCH'] == 'Linux':
    CPP_SOURCES += [
        'MapsMemoryReporter.cpp',
    ]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    CPP_SOURCES += [
        'nsMacUtilsImpl.cpp',
    ]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
    CPP_SOURCES += [
        'nsCrashOnException.cpp',
    ]

CSRCS += [
    'nsErrorAssertsC.c',
]


LIBXUL_LIBRARY = True

MSVC_ENABLE_PGO = True

LIBRARY_NAME = 'xpcombase_s'