DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (31ec81b5d7bb)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
# -*- 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/.

# This file defines the headers exported by and the sources build for mfbt.
# It is included by mfbt itself and by the JS engine, which, when built
# standalone, must install mfbt's exported headers and build mfbt sources
# itself. It expects that mfbt_root is set to the relative path to mfbt
# before this file in included.

mfbt_headers = [
    'Alignment.h',
    'AllocPolicy.h',
    'Array.h',
    'ArrayUtils.h',
    'Assertions.h',
    'Atomics.h',
    'Attributes.h',
    'BloomFilter.h',
    'Casting.h',
    'Char16.h',
    'CheckedInt.h',
    'Compiler.h',
    'Compression.h',
    'Constants.h',
    'DebugOnly.h',
    'decimal/Decimal.h',
    'Endian.h',
    'EnumSet.h',
    'FloatingPoint.h',
    'GuardObjects.h',
    'HashFunctions.h',
    'IntegerPrintfMacros.h',
    'Likely.h',
    'LinkedList.h',
    'MathAlgorithms.h',
    'Maybe.h',
    'MemoryChecking.h',
    'MemoryReporting.h',
    'Move.h',
    'MSIntTypes.h',
    'NullPtr.h',
    'NumericLimits.h',
    'PodOperations.h',
    'Poison.h',
    'Range.h',
    'RangedPtr.h',
    'ReentrancyGuard.h',
    'RefPtr.h',
    'RollingMean.h',
    'Scoped.h',
    'SHA1.h',
    'SplayTree.h',
    'TemplateLib.h',
    'ThreadLocal.h',
    'TypedEnum.h',
    'Types.h',
    'TypeTraits.h',
    'Vector.h',
    'WeakPtr.h',
]

mfbt_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',
    'Poison.cpp',
    'SHA1.cpp',
]

DEFINES['IMPL_MFBT'] = True

EXPORTS.mozilla += ['%s/%s' % (mfbt_root, header) for header in mfbt_headers]
UNIFIED_SOURCES += ['%s/%s' % (mfbt_root, src) for src in mfbt_sources]

# 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 += [
    mfbt_root + '/Compression.cpp',
    mfbt_root + '/decimal/Decimal.cpp',
]