xpcom/ds/moz.build
author Kris Maglione <maglione.k@gmail.com>
Thu, 10 May 2018 10:36:53 -0700
changeset 473641 1becc594554c1a273535ed175895e801667735e9
parent 463461 51793742d8289c192dc2b90d5f64c4ec26928822
child 486701 46f8319bee824fe669df21ee6023c9ea55349ac3
permissions -rw-r--r--
Bug 1460600: Remove unsupported --enable-system-hunspell flag. r=glandium Our bundled Hunspell now significantly differs from upstream Hunspell. Most importantly, it supports loading dictionaries from jar: URIs, which is now a requirement for loading bundled and extension dictionaries. This means that system Hunspell libraries are no longer compatible with our spell checker code. We should remove the option to use them so that users don't fall into the trap of trying to use them. MozReview-Commit-ID: 2ihJe6YOnGf

# -*- 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',
    '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',
    'nsAtom.h',
    'nsBaseHashtable.h',
    'nsCharSeparatedTokenizer.h',
    'nsCheapSets.h',
    'nsClassHashtable.h',
    'nsCOMArray.h',
    'nsCRT.h',
    'nsDataHashtable.h',
    'nsDeque.h',
    'nsEnumeratorUtils.h',
    'nsExpirationTracker.h',
    'nsGkAtomList.h',
    'nsGkAtoms.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',
    'AtomArray.h',
    'Dafsa.h',
    'IncrementalTokenizer.h',
    'Observer.h',
    'StickyTimeDuration.h',
    'Tokenizer.h',
]

UNIFIED_SOURCES += [
    'Dafsa.cpp',
    'IncrementalTokenizer.cpp',
    'nsArray.cpp',
    'nsArrayEnumerator.cpp',
    'nsArrayUtils.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',
]

SOURCES += [
    'nsGkAtoms.cpp',
]
if CONFIG['CC_TYPE'] == 'msvc':
    # Needed for gGkAtoms.
    SOURCES['nsGkAtoms.cpp'].flags += [
        '-constexpr:steps300000',
        '-Zc:externConstexpr',
    ]

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

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

FINAL_LIBRARY = 'xul'