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",
75 "NonDereferenceable.h",
78 "OperatorNewExtensions.h",
102 "SmallPointerArray.h",
106 "StaticAnalysisFunctions.h",
107 "TaggedAnonymousMemory.h",
113 "ThreadSafeWeakPtr.h",
120 "UniquePtrExtensions.h",
126 "WrappingOperations.h",
127 "XorShift128PlusRNG.h",
130 EXPORTS["double-conversion"] = [
131 "double-conversion/double-conversion/double-conversion.h",
132 "double-conversion/double-conversion/double-to-string.h",
133 "double-conversion/double-conversion/string-to-double.h",
134 "double-conversion/double-conversion/utils.h",
137 EXPORTS.function2 += [
138 "/third_party/function2/include/function2/function2.hpp",
142 "/mfbt/double-conversion",
145 if CONFIG["OS_ARCH"] == "WINNT":
150 if CONFIG["OS_ARCH"] == "WASI":
155 if CONFIG["MOZ_TSAN"]:
164 "double-conversion/double-conversion/bignum-dtoa.cc",
165 "double-conversion/double-conversion/bignum.cc",
166 "double-conversion/double-conversion/cached-powers.cc",
167 "double-conversion/double-conversion/double-to-string.cc",
168 "double-conversion/double-conversion/fast-dtoa.cc",
169 "double-conversion/double-conversion/fixed-dtoa.cc",
170 "double-conversion/double-conversion/string-to-double.cc",
171 "double-conversion/double-conversion/strtod.cc",
178 "TaggedAnonymousMemory.cpp",
179 "UniquePtrExtensions.cpp",
184 if CONFIG["MOZ_BUILD_APP"] not in (
186 "tools/update-programs",
188 # Building MFBT tests adds a large overhead when building.
189 TEST_DIRS += ["tests"]
191 DEFINES["IMPL_MFBT"] = True
201 SOURCES["lz4/xxhash.c"].flags += ["-Wno-unused-function"]
205 if CONFIG["MOZ_NEEDS_LIBATOMIC"]:
206 OS_LIBS += ["atomic"]
208 DEFINES["LZ4LIB_VISIBILITY"] = ""
210 REQUIRES_UNIFIED_BUILD = True