mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
fd813ddaf4
--HG-- extra : rebase_source : e892a951a3d3951e70e00f0b51046b744140eeee
95 lines
2.1 KiB
Python
95 lines
2.1 KiB
Python
# -*- 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_NAME = 'mfbt'
|
|
|
|
EXPORTS.mozilla = [
|
|
'Alignment.h',
|
|
'AllocPolicy.h',
|
|
'Array.h',
|
|
'ArrayUtils.h',
|
|
'Assertions.h',
|
|
'Atomics.h',
|
|
'Attributes.h',
|
|
'BloomFilter.h',
|
|
'Casting.h',
|
|
'ChaosMode.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',
|
|
'RefCountType.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',
|
|
]
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
EXPORTS.mozilla += [
|
|
'WindowsVersion.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',
|
|
'Poison.cpp',
|
|
'SHA1.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
|