xpcom/ds/moz.build
author Eric Rahm <erahm@mozilla.com>
Thu, 30 Mar 2017 16:46:58 -0700
changeset 398778 a2c7254cb8293082c7caa0d9419a71eacf5f85d2
parent 398777 b7e322f24106a81673135d9e1dd839609de35688
child 422083 aee8226f7f98d19e00267e923faf7a2a1e7df641
permissions -rw-r--r--
Bug 1351732 - Part 2: Replace use of PLArena with ArenaAllocator in xpcom. r=froydnj This swaps xpcom's plarena usage to ArenaAllocator. The new ArenaStrdup extensions are used as well. MozReview-Commit-ID: DHDfl6IkGJL

# -*- Mode: python; 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 += [
    'nsIArray.idl',
    'nsIArrayExtensions.idl',
    'nsIAtom.idl',
    'nsIAtomService.idl',
    'nsIHashable.idl',
    'nsIINIParser.idl',
    'nsIMutableArray.idl',
    'nsIObserver.idl',
    'nsIObserverService.idl',
    'nsIPersistentProperties2.idl',
    'nsIProperties.idl',
    'nsIProperty.idl',
    'nsIPropertyBag.idl',
    'nsIPropertyBag2.idl',
    'nsISerializable.idl',
    'nsISimpleEnumerator.idl',
    'nsIStringEnumerator.idl',
    'nsISupportsIterators.idl',
    'nsISupportsPrimitives.idl',
    'nsIVariant.idl',
    'nsIWritablePropertyBag.idl',
    'nsIWritablePropertyBag2.idl',
]

if CONFIG['OS_ARCH'] == 'WINNT':
    XPIDL_SOURCES += [
        'nsIWindowsRegKey.idl',
    ]
    EXPORTS += ['nsWindowsRegKey.h']
    SOURCES += [
        'nsWindowsRegKey.cpp'
    ]

XPIDL_MODULE = 'xpcom_ds'

EXPORTS += [
    'nsArray.h',
    'nsArrayEnumerator.h',
    'nsArrayUtils.h',
    'nsAtomService.h',
    'nsBaseHashtable.h',
    'nsCharSeparatedTokenizer.h',
    'nsCheapSets.h',
    'nsClassHashtable.h',
    'nsCOMArray.h',
    'nsCRT.h',
    'nsDataHashtable.h',
    'nsDeque.h',
    'nsEnumeratorUtils.h',
    'nsExpirationTracker.h',
    'nsHashKeys.h',
    'nsHashPropertyBag.h',
    'nsInterfaceHashtable.h',
    'nsJSThingHashtable.h',
    'nsMathUtils.h',
    'nsPointerHashKeys.h',
    'nsQuickSort.h',
    'nsRefPtrHashtable.h',
    'nsStaticAtom.h',
    'nsStaticNameTable.h',
    'nsStringEnumerator.h',
    'nsSupportsPrimitives.h',
    'nsTArray-inl.h',
    'nsTArray.h',
    'nsTArrayForwardDeclare.h',
    'nsTHashtable.h',
    'nsTObserverArray.h',
    'nsTPriorityQueue.h',
    'nsVariant.h',
    'nsWhitespaceTokenizer.h',
    'PLDHashTable.h',
]

EXPORTS.mozilla += [
    'ArenaAllocator.h',
    'ArenaAllocatorExtensions.h',
    'ArrayIterator.h',
    'IncrementalTokenizer.h',
    'Observer.h',
    'StickyTimeDuration.h',
    'Tokenizer.h',
]

UNIFIED_SOURCES += [
    'IncrementalTokenizer.cpp',
    'nsArray.cpp',
    'nsArrayEnumerator.cpp',
    'nsArrayUtils.cpp',
    'nsAtomService.cpp',
    'nsAtomTable.cpp',
    'nsCOMArray.cpp',
    'nsCRT.cpp',
    'nsDeque.cpp',
    'nsEnumeratorUtils.cpp',
    'nsHashPropertyBag.cpp',
    'nsINIParserImpl.cpp',
    'nsObserverList.cpp',
    'nsObserverService.cpp',
    'nsPersistentProperties.cpp',
    'nsProperties.cpp',
    'nsQuickSort.cpp',
    'nsStaticNameTable.cpp',
    'nsStringEnumerator.cpp',
    'nsSupportsPrimitives.cpp',
    'nsTArray.cpp',
    'nsTObserverArray.cpp',
    'nsVariant.cpp',
    'PLDHashTable.cpp',
    'Tokenizer.cpp',
]

EXTRA_COMPONENTS += [
    'nsINIProcessor.js',
    'nsINIProcessor.manifest',
]

LOCAL_INCLUDES += [
    '../io',
]

FINAL_LIBRARY = 'xul'