Merge fx-team to m-c.
[gecko.git] / mfbt / common.mozbuild
blob2fa4e51d2b5e1cdb22500e1bee0fb6e57249ee6e
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 # This file defines the headers exported by and the sources build for mfbt.
8 # It is included by mfbt itself and by the JS engine, which, when built
9 # standalone, must install mfbt's exported headers and build mfbt sources
10 # itself. It expects that mfbt_root is set to the relative path to mfbt
11 # before this file in included.
13 mfbt_headers = [
14     'Alignment.h',
15     'AllocPolicy.h',
16     'Array.h',
17     'Assertions.h',
18     'Atomics.h',
19     'Attributes.h',
20     'BloomFilter.h',
21     'Casting.h',
22     'Char16.h',
23     'CheckedInt.h',
24     'Compiler.h',
25     'Compression.h',
26     'Constants.h',
27     'DebugOnly.h',
28     'decimal/Decimal.h',
29     'Endian.h',
30     'EnumSet.h',
31     'FloatingPoint.h',
32     'GuardObjects.h',
33     'HashFunctions.h',
34     'IntegerPrintfMacros.h',
35     'Likely.h',
36     'LinkedList.h',
37     'MathAlgorithms.h',
38     'Maybe.h',
39     'MemoryChecking.h',
40     'MemoryReporting.h',
41     'Move.h',
42     'MSIntTypes.h',
43     'NullPtr.h',
44     'NumericLimits.h',
45     'PodOperations.h',
46     'Poison.h',
47     'Range.h',
48     'RangedPtr.h',
49     'ReentrancyGuard.h',
50     'RefPtr.h',
51     'Scoped.h',
52     'SHA1.h',
53     'SplayTree.h',
54     'TemplateLib.h',
55     'ThreadLocal.h',
56     'TypedEnum.h',
57     'Types.h',
58     'TypeTraits.h',
59     'Util.h',
60     'Vector.h',
61     'WeakPtr.h',
64 mfbt_sources = [
65     'Compression.cpp',
66     'decimal/Decimal.cpp',
67     'double-conversion/bignum-dtoa.cc',
68     'double-conversion/bignum.cc',
69     'double-conversion/cached-powers.cc',
70     'double-conversion/diy-fp.cc',
71     'double-conversion/double-conversion.cc',
72     'double-conversion/fast-dtoa.cc',
73     'double-conversion/fixed-dtoa.cc',
74     'double-conversion/strtod.cc',
75     'FloatingPoint.cpp',
76     'HashFunctions.cpp',
77     'Poison.cpp',
78     'SHA1.cpp',
81 DEFINES['IMPL_MFBT'] = True
83 EXPORTS.mozilla += ['%s/%s' % (mfbt_root, header) for header in mfbt_headers]
84 SOURCES += ['%s/%s' % (mfbt_root, src) for src in mfbt_sources]