1 # -*- Mode: python; 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/.
8 BUG_COMPONENT = ("Core", "MFBT")
13 "../third_party/rust/encoding_c_mem/include/encoding_rs_mem.h",
49 "FastBernoulliTrial.h",
53 "FunctionTypeTraits.h",
59 "IntegerTypeTraits.h",
73 "NonDereferenceable.h",
76 "OperatorNewExtensions.h",
100 "SmallPointerArray.h",
104 "StaticAnalysisFunctions.h",
105 "TaggedAnonymousMemory.h",
110 "ThreadSafeWeakPtr.h",
117 "UniquePtrExtensions.h",
123 "WrappingOperations.h",
124 "XorShift128PlusRNG.h",
127 EXPORTS["double-conversion"] = [
128 "double-conversion/double-conversion/double-conversion.h",
129 "double-conversion/double-conversion/double-to-string.h",
130 "double-conversion/double-conversion/string-to-double.h",
131 "double-conversion/double-conversion/utils.h",
135 "/mfbt/double-conversion",
138 if CONFIG["OS_ARCH"] == "WINNT":
143 if CONFIG["OS_ARCH"] == "WASI":
148 if CONFIG["MOZ_TSAN"]:
157 "double-conversion/double-conversion/bignum-dtoa.cc",
158 "double-conversion/double-conversion/bignum.cc",
159 "double-conversion/double-conversion/cached-powers.cc",
160 "double-conversion/double-conversion/double-to-string.cc",
161 "double-conversion/double-conversion/fast-dtoa.cc",
162 "double-conversion/double-conversion/fixed-dtoa.cc",
163 "double-conversion/double-conversion/string-to-double.cc",
164 "double-conversion/double-conversion/strtod.cc",
171 "TaggedAnonymousMemory.cpp",
172 "UniquePtrExtensions.cpp",
177 if CONFIG["MOZ_BUILD_APP"] not in (
179 "tools/update-programs",
181 # Building MFBT tests adds a large overhead when building.
182 TEST_DIRS += ["tests"]
184 DEFINES["IMPL_MFBT"] = True
193 SOURCES["lz4/xxhash.c"].flags += ["-Wno-unused-function"]
197 if CONFIG["MOZ_NEEDS_LIBATOMIC"]:
198 OS_LIBS += ["atomic"]
200 DEFINES["LZ4LIB_VISIBILITY"] = ""