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",
111 "ThreadSafeWeakPtr.h",
118 "UniquePtrExtensions.h",
124 "WrappingOperations.h",
125 "XorShift128PlusRNG.h",
128 EXPORTS["double-conversion"] = [
129 "double-conversion/double-conversion/double-conversion.h",
130 "double-conversion/double-conversion/double-to-string.h",
131 "double-conversion/double-conversion/string-to-double.h",
132 "double-conversion/double-conversion/utils.h",
136 "/mfbt/double-conversion",
139 if CONFIG["OS_ARCH"] == "WINNT":
144 if CONFIG["OS_ARCH"] == "WASI":
149 if CONFIG["MOZ_TSAN"]:
158 "double-conversion/double-conversion/bignum-dtoa.cc",
159 "double-conversion/double-conversion/bignum.cc",
160 "double-conversion/double-conversion/cached-powers.cc",
161 "double-conversion/double-conversion/double-to-string.cc",
162 "double-conversion/double-conversion/fast-dtoa.cc",
163 "double-conversion/double-conversion/fixed-dtoa.cc",
164 "double-conversion/double-conversion/string-to-double.cc",
165 "double-conversion/double-conversion/strtod.cc",
172 "TaggedAnonymousMemory.cpp",
173 "UniquePtrExtensions.cpp",
178 if CONFIG["MOZ_BUILD_APP"] not in (
180 "tools/update-programs",
182 # Building MFBT tests adds a large overhead when building.
183 TEST_DIRS += ["tests"]
185 DEFINES["IMPL_MFBT"] = True
194 SOURCES["lz4/xxhash.c"].flags += ["-Wno-unused-function"]
198 if CONFIG["MOZ_NEEDS_LIBATOMIC"]:
199 OS_LIBS += ["atomic"]
201 DEFINES["LZ4LIB_VISIBILITY"] = ""
203 REQUIRES_UNIFIED_BUILD = True