mfbt/moz.build
author L10n Bumper Bot <release+l10nbumper@mozilla.com>
Thu, 08 Nov 2018 03:00:11 -0800
changeset 501100 1cd4f2d571554c4dc89cf1be1d98683c0d14f797
parent 489390 85f7b7200eea172cc5cc1d4eb853cb5062a35baa
child 501874 b283e9a224e0450ff9880af7b7366f9e73661ac5
permissions -rw-r--r--
no bug - Bumping Fennec l10n changesets r=release a=l10n-bump DONTBUILD an -> 336e061995b9 ar -> f6834a7d7374 as -> d2c76e616a66 ast -> fcb8f3455237 az -> c4caf3b07cf2 be -> 697eb1022498 bg -> 7bf1f448f743 bn-BD -> 5f7a87adee06 bn-IN -> 49ce3195c4c2 br -> 41cf35b7c5b5 bs -> 4a14aee27904 ca -> 9373e8ce86d4 cak -> a40d767541ba cs -> 4b99defb0525 cy -> 4c948fed2584 de -> 017a7e7a267a dsb -> aadebeccf5ba el -> 2d28a78dcef5 en-CA -> 55ad9171a9f0 en-GB -> 296422b495e9 en-ZA -> c1b5d2128914 eo -> c68e87667d9f es-AR -> bff0a788c711 es-CL -> 1d3efd2532ea es-ES -> 4d1feb70b0e2 es-MX -> fceda607d0f4 et -> 58a8262a0cc7 eu -> 7cebfd46208b fa -> cbc040d58476 ff -> 46f5aec275ea fi -> 235ab13d261e fr -> 8ee417b64f99

# -*- 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/.

with Files("**"):
    BUG_COMPONENT = ("Core", "MFBT")

TEST_DIRS += ['tests']

Library('mfbt')

EXPORTS.mozilla = [
    'Algorithm.h',
    'Alignment.h',
    'AllocPolicy.h',
    'AlreadyAddRefed.h',
    'Array.h',
    'ArrayUtils.h',
    'Assertions.h',
    'Atomics.h',
    'Attributes.h',
    'BinarySearch.h',
    'BloomFilter.h',
    'BufferList.h',
    'Casting.h',
    'ChaosMode.h',
    'Char16.h',
    'CheckedInt.h',
    'Compiler.h',
    'Compression.h',
    'DebugOnly.h',
    'decimal/Decimal.h',
    'DefineEnum.h',
    'DoublyLinkedList.h',
    'EndianUtils.h',
    'EnumeratedArray.h',
    'EnumeratedRange.h',
    'EnumSet.h',
    'EnumTypeTraits.h',
    'FastBernoulliTrial.h',
    'FloatingPoint.h',
    'FStream.h',
    'FunctionTypeTraits.h',
    'GuardObjects.h',
    'HashFunctions.h',
    'HashTable.h',
    'IntegerPrintfMacros.h',
    'IntegerRange.h',
    'IntegerTypeTraits.h',
    'JSONWriter.h',
    'Likely.h',
    'LinkedList.h',
    'MacroArgs.h',
    'MacroForEach.h',
    'MathAlgorithms.h',
    'Maybe.h',
    'MaybeOneOf.h',
    'MemoryChecking.h',
    'MemoryReporting.h',
    'Move.h',
    'NonDereferenceable.h',
    'NotNull.h',
    'NullPtr.h',
    'Opaque.h',
    'OperatorNewExtensions.h',
    'Pair.h',
    'Path.h',
    'PodOperations.h',
    'Poison.h',
    'Range.h',
    'RangedArray.h',
    'RangedPtr.h',
    'RecordReplay.h',
    'ReentrancyGuard.h',
    'RefCounted.h',
    'RefCountType.h',
    'RefPtr.h',
    'Result.h',
    'ResultExtensions.h',
    'ReverseIterator.h',
    'RollingMean.h',
    'Saturate.h',
    'Scoped.h',
    'ScopeExit.h',
    'SegmentedVector.h',
    'SHA1.h',
    'SharedLibrary.h',
    'SmallPointerArray.h',
    'Span.h',
    'SplayTree.h',
    'Sprintf.h',
    'SPSCQueue.h',
    'StaticAnalysisFunctions.h',
    'TaggedAnonymousMemory.h',
    'TemplateLib.h',
    'TextUtils.h',
    'ThreadLocal.h',
    'ThreadSafeWeakPtr.h',
    'ToString.h',
    'Tuple.h',
    'TypedEnumBits.h',
    'Types.h',
    'TypeTraits.h',
    'UniquePtr.h',
    'UniquePtrExtensions.h',
    'Unused.h',
    'Utf8.h',
    'Variant.h',
    'Vector.h',
    'WeakPtr.h',
    'WrappingOperations.h',
    'XorShift128PlusRNG.h',
]

EXPORTS["double-conversion"] = [
    'double-conversion/double-conversion/double-conversion.h',
    'double-conversion/double-conversion/utils.h',
]

LOCAL_INCLUDES += [
    '/mfbt/double-conversion',
]

if CONFIG['OS_ARCH'] == 'WINNT':
    EXPORTS.mozilla += [
        'WindowsVersion.h',
    ]
elif CONFIG['OS_ARCH'] == 'Linux':
    EXPORTS.mozilla += [
        'LinuxSignal.h',
    ]

UNIFIED_SOURCES += [
    'Assertions.cpp',
    'ChaosMode.cpp',
    'double-conversion/double-conversion/bignum-dtoa.cc',
    'double-conversion/double-conversion/bignum.cc',
    'double-conversion/double-conversion/cached-powers.cc',
    'double-conversion/double-conversion/diy-fp.cc',
    'double-conversion/double-conversion/double-conversion.cc',
    'double-conversion/double-conversion/fast-dtoa.cc',
    'double-conversion/double-conversion/fixed-dtoa.cc',
    'double-conversion/double-conversion/strtod.cc',
    'FloatingPoint.cpp',
    'HashFunctions.cpp',
    'JSONWriter.cpp',
    'Poison.cpp',
    'RecordReplay.cpp',
    'SHA1.cpp',
    'TaggedAnonymousMemory.cpp',
    'Unused.cpp',
    'Utf8.cpp',
]

DEFINES['IMPL_MFBT'] = True

SOURCES += [
    'Compression.cpp',
    'decimal/Decimal.cpp',
    'lz4.c',
]

DisableStlWrapping()

if CONFIG['CC_TYPE'] == 'clang':
    # Suppress warnings from third-party V8 Decimal code.
    SOURCES['decimal/Decimal.cpp'].flags += ['-Wno-implicit-fallthrough']

if CONFIG['MOZ_NEEDS_LIBATOMIC']:
    OS_LIBS += ['atomic']

DEFINES['LZ4LIB_VISIBILITY'] = ''