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",
60 "IntegerTypeTraits.h",
74 "NonDereferenceable.h",
77 "OperatorNewExtensions.h",
101 "SmallPointerArray.h",
105 "StaticAnalysisFunctions.h",
106 "TaggedAnonymousMemory.h",
112 "ThreadSafeWeakPtr.h",
119 "UniquePtrExtensions.h",
125 "WrappingOperations.h",
126 "XorShift128PlusRNG.h",
129 EXPORTS["double-conversion"] = [
130 "double-conversion/double-conversion/double-conversion.h",
131 "double-conversion/double-conversion/double-to-string.h",
132 "double-conversion/double-conversion/string-to-double.h",
133 "double-conversion/double-conversion/utils.h",
137 "/mfbt/double-conversion",
140 if CONFIG["OS_ARCH"] == "WINNT":
145 if CONFIG["OS_ARCH"] == "WASI":
150 if CONFIG["MOZ_TSAN"]:
159 "double-conversion/double-conversion/bignum-dtoa.cc",
160 "double-conversion/double-conversion/bignum.cc",
161 "double-conversion/double-conversion/cached-powers.cc",
162 "double-conversion/double-conversion/double-to-string.cc",
163 "double-conversion/double-conversion/fast-dtoa.cc",
164 "double-conversion/double-conversion/fixed-dtoa.cc",
165 "double-conversion/double-conversion/string-to-double.cc",
166 "double-conversion/double-conversion/strtod.cc",
173 "TaggedAnonymousMemory.cpp",
174 "UniquePtrExtensions.cpp",
179 if CONFIG["MOZ_BUILD_APP"] not in (
181 "tools/update-programs",
183 # Building MFBT tests adds a large overhead when building.
184 TEST_DIRS += ["tests"]
186 DEFINES["IMPL_MFBT"] = True
195 SOURCES["lz4/xxhash.c"].flags += ["-Wno-unused-function"]
199 if CONFIG["MOZ_NEEDS_LIBATOMIC"]:
200 OS_LIBS += ["atomic"]
202 DEFINES["LZ4LIB_VISIBILITY"] = ""
204 REQUIRES_UNIFIED_BUILD = True