Bumping manifests a=b2g-bump
[gecko.git] / mfbt / moz.build
blob90ef1aae5405593dc607670d1e44f432a3413290
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 TEST_DIRS += ['tests']
9 LIBRARY_NAME = 'mfbt'
11 EXPORTS.mozilla = [
12     'Alignment.h',
13     'AllocPolicy.h',
14     'Array.h',
15     'ArrayUtils.h',
16     'Assertions.h',
17     'Atomics.h',
18     'Attributes.h',
19     'BinarySearch.h',
20     'BloomFilter.h',
21     'Casting.h',
22     'ChaosMode.h',
23     'Char16.h',
24     'CheckedInt.h',
25     'Compiler.h',
26     'Compression.h',
27     'Constants.h',
28     'DebugOnly.h',
29     'decimal/Decimal.h',
30     'Endian.h',
31     'EnumeratedArray.h',
32     'EnumSet.h',
33     'FloatingPoint.h',
34     'GuardObjects.h',
35     'HashFunctions.h',
36     'IntegerPrintfMacros.h',
37     'IntegerTypeTraits.h',
38     'Likely.h',
39     'LinkedList.h',
40     'MacroArgs.h',
41     'MacroForEach.h',
42     'MathAlgorithms.h',
43     'Maybe.h',
44     'MaybeOneOf.h',
45     'MemoryChecking.h',
46     'MemoryReporting.h',
47     'Move.h',
48     'MSIntTypes.h',
49     'NullPtr.h',
50     'NumericLimits.h',
51     'Pair.h',
52     'PodOperations.h',
53     'Poison.h',
54     'Range.h',
55     'RangedPtr.h',
56     'RefCountType.h',
57     'ReentrancyGuard.h',
58     'RefPtr.h',
59     'RollingMean.h',
60     'Scoped.h',
61     'SHA1.h',
62     'SplayTree.h',
63     'TaggedAnonymousMemory.h',
64     'TemplateLib.h',
65     'ThreadLocal.h',
66     'ToString.h',
67     'TypedEnum.h',
68     'TypedEnumBits.h',
69     'TypedEnumInternal.h',
70     'Types.h',
71     'TypeTraits.h',
72     'UniquePtr.h',
73     'Vector.h',
74     'WeakPtr.h',
77 if CONFIG['OS_ARCH'] == 'WINNT':
78     EXPORTS.mozilla += [
79         'WindowsVersion.h',
80     ]
81 elif CONFIG['OS_ARCH'] == 'Linux':
82     EXPORTS.mozilla += [
83         'LinuxSignal.h',
84     ]
86 UNIFIED_SOURCES = [
87     'double-conversion/bignum-dtoa.cc',
88     'double-conversion/bignum.cc',
89     'double-conversion/cached-powers.cc',
90     'double-conversion/diy-fp.cc',
91     'double-conversion/double-conversion.cc',
92     'double-conversion/fast-dtoa.cc',
93     'double-conversion/fixed-dtoa.cc',
94     'double-conversion/strtod.cc',
95     'FloatingPoint.cpp',
96     'HashFunctions.cpp',
97     'Poison.cpp',
98     'SHA1.cpp',
99     'TaggedAnonymousMemory.cpp',
102 DEFINES['IMPL_MFBT'] = True
104 # Compression.cpp cannot be built in unified mode because it pulls in Windows system headers.
105 # Decimal.cpp doesn't build in unified mode with gcc.
106 SOURCES += [
107     'Compression.cpp',
108     'decimal/Decimal.cpp',
111 DISABLE_STL_WRAPPING = True
113 # Suppress warnings in third-party code.
114 if CONFIG['GNU_CXX']:
115     # TODO: Remove this LZ4 warning suppression after bug 993267 is fixed.
116     SOURCES['Compression.cpp'].flags += ['-Wno-unused-function']