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",
58 "IntegerPrintfMacros.h",
60 "IntegerTypeTraits.h",
73 "NonDereferenceable.h",
76 "OperatorNewExtensions.h",
100 "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["MOZ_TSAN"]:
153 "double-conversion/double-conversion/bignum-dtoa.cc",
154 "double-conversion/double-conversion/bignum.cc",
155 "double-conversion/double-conversion/cached-powers.cc",
156 "double-conversion/double-conversion/double-to-string.cc",
157 "double-conversion/double-conversion/fast-dtoa.cc",
158 "double-conversion/double-conversion/fixed-dtoa.cc",
159 "double-conversion/double-conversion/string-to-double.cc",
160 "double-conversion/double-conversion/strtod.cc",
167 "TaggedAnonymousMemory.cpp",
168 "UniquePtrExtensions.cpp",
173 if CONFIG["MOZ_BUILD_APP"] not in (
175 "tools/update-programs",
177 # Building MFBT tests adds a large overhead when building.
178 TEST_DIRS += ["tests"]
180 DEFINES["IMPL_MFBT"] = True
189 SOURCES["lz4/xxhash.c"].flags += ["-Wno-unused-function"]
193 if CONFIG["MOZ_NEEDS_LIBATOMIC"]:
194 OS_LIBS += ["atomic"]
196 DEFINES["LZ4LIB_VISIBILITY"] = ""