2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:17 +04:00
|
|
|
# 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']
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2013-06-17 23:21:01 +04:00
|
|
|
LIBRARY_NAME = 'mfbt'
|
|
|
|
|
2014-01-20 04:11:45 +04:00
|
|
|
EXPORTS.mozilla = [
|
|
|
|
'Alignment.h',
|
|
|
|
'AllocPolicy.h',
|
|
|
|
'Array.h',
|
|
|
|
'ArrayUtils.h',
|
|
|
|
'Assertions.h',
|
|
|
|
'Atomics.h',
|
|
|
|
'Attributes.h',
|
2014-04-16 06:30:26 +04:00
|
|
|
'BinarySearch.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'BloomFilter.h',
|
|
|
|
'Casting.h',
|
2014-03-03 09:12:17 +04:00
|
|
|
'ChaosMode.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Char16.h',
|
|
|
|
'CheckedInt.h',
|
|
|
|
'Compiler.h',
|
|
|
|
'Compression.h',
|
|
|
|
'Constants.h',
|
|
|
|
'DebugOnly.h',
|
|
|
|
'decimal/Decimal.h',
|
|
|
|
'Endian.h',
|
2014-04-26 06:34:03 +04:00
|
|
|
'EnumeratedArray.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'EnumSet.h',
|
|
|
|
'FloatingPoint.h',
|
|
|
|
'GuardObjects.h',
|
|
|
|
'HashFunctions.h',
|
|
|
|
'IntegerPrintfMacros.h',
|
2014-04-01 17:38:42 +04:00
|
|
|
'IntegerTypeTraits.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Likely.h',
|
|
|
|
'LinkedList.h',
|
2014-04-24 12:48:00 +04:00
|
|
|
'MacroArgs.h',
|
2014-04-24 12:49:00 +04:00
|
|
|
'MacroForEach.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'MathAlgorithms.h',
|
|
|
|
'Maybe.h',
|
|
|
|
'MemoryChecking.h',
|
|
|
|
'MemoryReporting.h',
|
|
|
|
'Move.h',
|
|
|
|
'MSIntTypes.h',
|
|
|
|
'NullPtr.h',
|
|
|
|
'NumericLimits.h',
|
|
|
|
'PodOperations.h',
|
|
|
|
'Poison.h',
|
|
|
|
'Range.h',
|
|
|
|
'RangedPtr.h',
|
2014-02-21 23:45:50 +04:00
|
|
|
'RefCountType.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'ReentrancyGuard.h',
|
|
|
|
'RefPtr.h',
|
|
|
|
'RollingMean.h',
|
|
|
|
'Scoped.h',
|
|
|
|
'SHA1.h',
|
|
|
|
'SplayTree.h',
|
|
|
|
'TemplateLib.h',
|
|
|
|
'ThreadLocal.h',
|
|
|
|
'TypedEnum.h',
|
2014-04-26 06:34:04 +04:00
|
|
|
'TypedEnumBits.h',
|
|
|
|
'TypedEnumInternal.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Types.h',
|
|
|
|
'TypeTraits.h',
|
|
|
|
'Vector.h',
|
|
|
|
'WeakPtr.h',
|
|
|
|
]
|
2013-11-19 06:47:14 +04:00
|
|
|
|
2014-02-28 02:58:47 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'WindowsVersion.h',
|
|
|
|
]
|
|
|
|
|
2014-01-20 04:11:45 +04:00
|
|
|
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',
|
|
|
|
]
|
2014-03-05 04:39:06 +04:00
|
|
|
|
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-03-16 10:23:28 +04:00
|
|
|
|
|
|
|
# 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']
|