xpcom/ds/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 XPIDL_SOURCES += [
michael@0 8 'nsIArray.idl',
michael@0 9 'nsIAtom.idl',
michael@0 10 'nsIAtomService.idl',
michael@0 11 'nsICollection.idl',
michael@0 12 'nsIEnumerator.idl',
michael@0 13 'nsIHashable.idl',
michael@0 14 'nsIINIParser.idl',
michael@0 15 'nsIMutableArray.idl',
michael@0 16 'nsIObserver.idl',
michael@0 17 'nsIObserverService.idl',
michael@0 18 'nsIPersistentProperties2.idl',
michael@0 19 'nsIProperties.idl',
michael@0 20 'nsIProperty.idl',
michael@0 21 'nsIPropertyBag.idl',
michael@0 22 'nsIPropertyBag2.idl',
michael@0 23 'nsISerializable.idl',
michael@0 24 'nsISimpleEnumerator.idl',
michael@0 25 'nsIStringEnumerator.idl',
michael@0 26 'nsISupportsArray.idl',
michael@0 27 'nsISupportsIterators.idl',
michael@0 28 'nsISupportsPrimitives.idl',
michael@0 29 'nsIVariant.idl',
michael@0 30 'nsIWritablePropertyBag.idl',
michael@0 31 'nsIWritablePropertyBag2.idl',
michael@0 32 ]
michael@0 33
michael@0 34 if CONFIG['OS_ARCH'] == 'WINNT':
michael@0 35 XPIDL_SOURCES += [
michael@0 36 'nsIWindowsRegKey.idl',
michael@0 37 ]
michael@0 38 EXPORTS += ['nsWindowsRegKey.h']
michael@0 39 EXPORTS.mozilla += ['TimeStamp_windows.h']
michael@0 40 SOURCES += [
michael@0 41 'nsWindowsRegKey.cpp'
michael@0 42 ]
michael@0 43
michael@0 44 XPIDL_MODULE = 'xpcom_ds'
michael@0 45
michael@0 46 EXPORTS += [
michael@0 47 'nsArray.h',
michael@0 48 'nsAtomService.h',
michael@0 49 'nsCharSeparatedTokenizer.h',
michael@0 50 'nsCheapSets.h',
michael@0 51 'nsCRT.h',
michael@0 52 'nsExpirationTracker.h',
michael@0 53 'nsHashPropertyBag.h',
michael@0 54 'nsHashtable.h',
michael@0 55 'nsMathUtils.h',
michael@0 56 'nsStaticAtom.h',
michael@0 57 'nsStaticNameTable.h',
michael@0 58 'nsStringEnumerator.h',
michael@0 59 'nsSupportsArray.h',
michael@0 60 'nsSupportsPrimitives.h',
michael@0 61 'nsVariant.h',
michael@0 62 'nsWhitespaceTokenizer.h',
michael@0 63 ]
michael@0 64
michael@0 65 EXPORTS.mozilla += [
michael@0 66 'CharTokenizer.h',
michael@0 67 'StringBuilder.h',
michael@0 68 'TimeStamp.h',
michael@0 69 ]
michael@0 70
michael@0 71 UNIFIED_SOURCES += [
michael@0 72 'nsArray.cpp',
michael@0 73 'nsAtomService.cpp',
michael@0 74 'nsAtomTable.cpp',
michael@0 75 'nsCRT.cpp',
michael@0 76 'nsHashPropertyBag.cpp',
michael@0 77 'nsHashtable.cpp',
michael@0 78 'nsINIParserImpl.cpp',
michael@0 79 'nsObserverList.cpp',
michael@0 80 'nsObserverService.cpp',
michael@0 81 'nsProperties.cpp',
michael@0 82 'nsStringEnumerator.cpp',
michael@0 83 'nsSupportsArray.cpp',
michael@0 84 'nsSupportsArrayEnumerator.cpp',
michael@0 85 'nsSupportsPrimitives.cpp',
michael@0 86 'nsVariant.cpp',
michael@0 87 'TimeStamp.cpp',
michael@0 88 ]
michael@0 89
michael@0 90 # These two files cannot be built in unified mode because they use the
michael@0 91 # PL_ARENA_CONST_ALIGN_MASK macro with plarena.h.
michael@0 92 SOURCES += [
michael@0 93 'nsPersistentProperties.cpp',
michael@0 94 'nsStaticNameTable.cpp',
michael@0 95 ]
michael@0 96
michael@0 97 if CONFIG['OS_ARCH'] == 'WINNT':
michael@0 98 SOURCES += [
michael@0 99 'TimeStamp_windows.cpp',
michael@0 100 ]
michael@0 101 elif CONFIG['HAVE_CLOCK_MONOTONIC']:
michael@0 102 SOURCES += [
michael@0 103 'TimeStamp_posix.cpp',
michael@0 104 ]
michael@0 105 elif CONFIG['OS_ARCH'] == 'Darwin':
michael@0 106 SOURCES += [
michael@0 107 'TimeStamp_darwin.cpp',
michael@0 108 ]
michael@0 109 elif CONFIG['COMPILE_ENVIRONMENT']:
michael@0 110 error('No TimeStamp implementation on this platform. Build will not succeed')
michael@0 111
michael@0 112 EXTRA_COMPONENTS += [
michael@0 113 'nsINIProcessor.js',
michael@0 114 'nsINIProcessor.manifest',
michael@0 115 ]
michael@0 116
michael@0 117 FAIL_ON_WARNINGS = True
michael@0 118
michael@0 119 MSVC_ENABLE_PGO = True
michael@0 120
michael@0 121 LOCAL_INCLUDES += [
michael@0 122 '../io',
michael@0 123 ]
michael@0 124
michael@0 125 FINAL_LIBRARY = 'xpcom_core'

mercurial