mfbt/moz.build
author Ehsan Akhgari <ehsan@mozilla.com>
Sat, 21 Mar 2015 12:28:04 -0400
changeset 265233 ac4464790ec4896a5188fa50cfc69ae0ffeddc08
parent 256188 47aa743dcd1b0c0b41920571e7606b56d70e03d4
child 265652 f6850a11e3158d4235a538b609ac19b0b7b57287
permissions -rw-r--r--
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj This patch was automatically generated using the following script: function convert() { echo "Converting $1 to $2..." find . \ ! -wholename "*/.git*" \ ! -wholename "obj-ff-dbg*" \ -type f \ \( -iname "*.cpp" \ -o -iname "*.h" \ -o -iname "*.c" \ -o -iname "*.cc" \ -o -iname "*.idl" \ -o -iname "*.ipdl" \ -o -iname "*.ipdlh" \ -o -iname "*.mm" \) | \ xargs -n 1 sed -i -e "s/\b$1\b/$2/g" } convert MOZ_OVERRIDE override convert MOZ_FINAL final

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

TEST_DIRS += ['tests']

Library('mfbt')

EXPORTS.mozilla = [
    'Alignment.h',
    'AllocPolicy.h',
    'AlreadyAddRefed.h',
    'Array.h',
    'ArrayUtils.h',
    'Assertions.h',
    'Atomics.h',
    'Attributes.h',
    'BinarySearch.h',
    'BloomFilter.h',
    'Casting.h',
    'ChaosMode.h',
    'Char16.h',
    'CheckedInt.h',
    'Compiler.h',
    'Compression.h',
    'Constants.h',
    'DebugOnly.h',
    'decimal/Decimal.h',
    'double-conversion/double-conversion.h',
    'double-conversion/utils.h',
    'Endian.h',
    'EnumeratedArray.h',
    'EnumSet.h',
    'FloatingPoint.h',
    'GuardObjects.h',
    'HashFunctions.h',
    'IntegerPrintfMacros.h',
    'IntegerRange.h',
    'IntegerTypeTraits.h',
    'IteratorTraits.h',
    'JSONWriter.h',
    'Likely.h',
    'LinkedList.h',
    'MacroArgs.h',
    'MacroForEach.h',
    'MathAlgorithms.h',
    'Maybe.h',
    'MaybeOneOf.h',
    'MemoryChecking.h',
    'MemoryReporting.h',
    'Move.h',
    'NullPtr.h',
    'NumericLimits.h',
    'Pair.h',
    'PodOperations.h',
    'Poison.h',
    'Range.h',
    'RangedPtr.h',
    'RefCountType.h',
    'ReentrancyGuard.h',
    'RefPtr.h',
    'ReverseIterator.h',
    'RollingMean.h',
    'Scoped.h',
    'SegmentedVector.h',
    'SHA1.h',
    'SizePrintfMacros.h',
    'SplayTree.h',
    'TaggedAnonymousMemory.h',
    'TemplateLib.h',
    'ThreadLocal.h',
    'ToString.h',
    'TypedEnumBits.h',
    'Types.h',
    'TypeTraits.h',
    'UniquePtr.h',
    'Vector.h',
    'WeakPtr.h',
    'unused.h',
]

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

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

DEFINES['IMPL_MFBT'] = True

# Compression.cpp cannot be built in unified mode because it pulls in Windows system headers.
# Decimal.cpp doesn't build in unified mode with gcc.
SOURCES += [
    'Compression.cpp',
    'decimal/Decimal.cpp',
]

DISABLE_STL_WRAPPING = True

# Suppress warnings in third-party code.
if CONFIG['GNU_CXX']:
    # TODO: Remove this LZ4 warning suppression after bug 993267 is fixed.
    SOURCES['Compression.cpp'].flags += ['-Wno-unused-function']