1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mfbt/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,106 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +TEST_DIRS += ['tests'] 1.11 + 1.12 +LIBRARY_NAME = 'mfbt' 1.13 + 1.14 +EXPORTS.mozilla = [ 1.15 + 'Alignment.h', 1.16 + 'AllocPolicy.h', 1.17 + 'Array.h', 1.18 + 'ArrayUtils.h', 1.19 + 'Assertions.h', 1.20 + 'Atomics.h', 1.21 + 'Attributes.h', 1.22 + 'BinarySearch.h', 1.23 + 'BloomFilter.h', 1.24 + 'Casting.h', 1.25 + 'ChaosMode.h', 1.26 + 'Char16.h', 1.27 + 'CheckedInt.h', 1.28 + 'Compiler.h', 1.29 + 'Compression.h', 1.30 + 'Constants.h', 1.31 + 'DebugOnly.h', 1.32 + 'decimal/Decimal.h', 1.33 + 'Endian.h', 1.34 + 'EnumeratedArray.h', 1.35 + 'EnumSet.h', 1.36 + 'FloatingPoint.h', 1.37 + 'GuardObjects.h', 1.38 + 'HashFunctions.h', 1.39 + 'IntegerPrintfMacros.h', 1.40 + 'IntegerTypeTraits.h', 1.41 + 'Likely.h', 1.42 + 'LinkedList.h', 1.43 + 'MacroArgs.h', 1.44 + 'MacroForEach.h', 1.45 + 'MathAlgorithms.h', 1.46 + 'Maybe.h', 1.47 + 'MemoryChecking.h', 1.48 + 'MemoryReporting.h', 1.49 + 'Move.h', 1.50 + 'MSIntTypes.h', 1.51 + 'NullPtr.h', 1.52 + 'NumericLimits.h', 1.53 + 'PodOperations.h', 1.54 + 'Poison.h', 1.55 + 'Range.h', 1.56 + 'RangedPtr.h', 1.57 + 'RefCountType.h', 1.58 + 'ReentrancyGuard.h', 1.59 + 'RefPtr.h', 1.60 + 'RollingMean.h', 1.61 + 'Scoped.h', 1.62 + 'SHA1.h', 1.63 + 'SplayTree.h', 1.64 + 'TemplateLib.h', 1.65 + 'ThreadLocal.h', 1.66 + 'TypedEnum.h', 1.67 + 'TypedEnumBits.h', 1.68 + 'TypedEnumInternal.h', 1.69 + 'Types.h', 1.70 + 'TypeTraits.h', 1.71 + 'Vector.h', 1.72 + 'WeakPtr.h', 1.73 +] 1.74 + 1.75 +if CONFIG['OS_ARCH'] == 'WINNT': 1.76 + EXPORTS.mozilla += [ 1.77 + 'WindowsVersion.h', 1.78 + ] 1.79 + 1.80 +UNIFIED_SOURCES = [ 1.81 + 'double-conversion/bignum-dtoa.cc', 1.82 + 'double-conversion/bignum.cc', 1.83 + 'double-conversion/cached-powers.cc', 1.84 + 'double-conversion/diy-fp.cc', 1.85 + 'double-conversion/double-conversion.cc', 1.86 + 'double-conversion/fast-dtoa.cc', 1.87 + 'double-conversion/fixed-dtoa.cc', 1.88 + 'double-conversion/strtod.cc', 1.89 + 'FloatingPoint.cpp', 1.90 + 'HashFunctions.cpp', 1.91 + 'Poison.cpp', 1.92 + 'SHA1.cpp', 1.93 +] 1.94 + 1.95 +DEFINES['IMPL_MFBT'] = True 1.96 + 1.97 +# Compression.cpp cannot be built in unified mode because it pulls in Windows system headers. 1.98 +# Decimal.cpp doesn't build in unified mode with gcc. 1.99 +SOURCES += [ 1.100 + 'Compression.cpp', 1.101 + 'decimal/Decimal.cpp', 1.102 +] 1.103 + 1.104 +DISABLE_STL_WRAPPING = True 1.105 + 1.106 +# Suppress warnings in third-party code. 1.107 +if CONFIG['GNU_CXX']: 1.108 + # TODO: Remove this LZ4 warning suppression after bug 993267 is fixed. 1.109 + SOURCES['Compression.cpp'].flags += ['-Wno-unused-function']