2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:17 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-10-26 11:53:23 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "MFBT")
|
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
Library('mfbt')
|
2013-06-17 23:21:01 +04:00
|
|
|
|
2019-09-18 11:26:34 +03:00
|
|
|
EXPORTS += [
|
|
|
|
'../third_party/rust/encoding_c_mem/include/encoding_rs_mem.h',
|
|
|
|
]
|
|
|
|
|
2014-01-20 04:11:45 +04:00
|
|
|
EXPORTS.mozilla = [
|
2018-03-27 18:01:08 +03:00
|
|
|
'Algorithm.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Alignment.h',
|
|
|
|
'AllocPolicy.h',
|
2014-12-31 19:42:05 +03:00
|
|
|
'AlreadyAddRefed.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Array.h',
|
|
|
|
'ArrayUtils.h',
|
|
|
|
'Assertions.h',
|
|
|
|
'Atomics.h',
|
|
|
|
'Attributes.h',
|
2014-04-16 06:30:26 +04:00
|
|
|
'BinarySearch.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'BloomFilter.h',
|
2018-12-07 11:28:08 +03:00
|
|
|
'Buffer.h',
|
2016-05-12 04:02:06 +03:00
|
|
|
'BufferList.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Casting.h',
|
2014-03-03 09:12:17 +04:00
|
|
|
'ChaosMode.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Char16.h',
|
|
|
|
'CheckedInt.h',
|
2020-03-17 15:42:12 +03:00
|
|
|
'CompactPair.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Compiler.h',
|
|
|
|
'Compression.h',
|
2019-03-30 07:25:13 +03:00
|
|
|
'DbgMacro.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'DebugOnly.h',
|
2017-07-01 02:58:11 +03:00
|
|
|
'DefineEnum.h',
|
2016-06-02 19:18:40 +03:00
|
|
|
'DoublyLinkedList.h',
|
2016-05-22 23:31:11 +03:00
|
|
|
'EndianUtils.h',
|
2014-04-26 06:34:03 +04:00
|
|
|
'EnumeratedArray.h',
|
2015-03-23 22:06:00 +03:00
|
|
|
'EnumeratedRange.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'EnumSet.h',
|
2016-09-07 05:20:16 +03:00
|
|
|
'EnumTypeTraits.h',
|
2019-07-10 04:51:15 +03:00
|
|
|
'fallible.h',
|
2015-10-08 23:05:31 +03:00
|
|
|
'FastBernoulliTrial.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'FloatingPoint.h',
|
2018-01-07 12:31:31 +03:00
|
|
|
'FStream.h',
|
2020-03-24 03:12:41 +03:00
|
|
|
'FunctionRef.h',
|
2018-08-15 13:27:45 +03:00
|
|
|
'FunctionTypeTraits.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'GuardObjects.h',
|
|
|
|
'HashFunctions.h',
|
2018-07-26 13:15:49 +03:00
|
|
|
'HashTable.h',
|
2019-09-04 05:40:32 +03:00
|
|
|
'HelperMacros.h',
|
2020-03-05 20:26:26 +03:00
|
|
|
'InitializedOnce.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'IntegerPrintfMacros.h',
|
2015-02-04 11:07:32 +03:00
|
|
|
'IntegerRange.h',
|
2014-04-01 17:38:42 +04:00
|
|
|
'IntegerTypeTraits.h',
|
2014-09-15 10:36:18 +04:00
|
|
|
'JSONWriter.h',
|
2019-09-18 11:26:34 +03:00
|
|
|
'JsRust.h',
|
|
|
|
'Latin1.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Likely.h',
|
|
|
|
'LinkedList.h',
|
2014-04-24 12:48:00 +04:00
|
|
|
'MacroArgs.h',
|
2014-04-24 12:49:00 +04:00
|
|
|
'MacroForEach.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'MathAlgorithms.h',
|
|
|
|
'Maybe.h',
|
2014-06-13 16:26:01 +04:00
|
|
|
'MaybeOneOf.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'MemoryChecking.h',
|
|
|
|
'MemoryReporting.h',
|
2018-03-28 09:48:53 +03:00
|
|
|
'NonDereferenceable.h',
|
2016-05-12 07:21:16 +03:00
|
|
|
'NotNull.h',
|
2016-03-09 11:37:20 +03:00
|
|
|
'Opaque.h',
|
2016-08-13 05:43:49 +03:00
|
|
|
'OperatorNewExtensions.h',
|
2017-12-27 21:03:35 +03:00
|
|
|
'Path.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'PodOperations.h',
|
|
|
|
'Poison.h',
|
2018-10-25 21:00:15 +03:00
|
|
|
'RandomNum.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Range.h',
|
2015-05-23 05:50:44 +03:00
|
|
|
'RangedArray.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'RangedPtr.h',
|
2015-12-01 11:52:26 +03:00
|
|
|
'ReentrancyGuard.h',
|
2015-09-23 04:27:34 +03:00
|
|
|
'RefCounted.h',
|
2014-02-21 23:45:50 +04:00
|
|
|
'RefCountType.h',
|
2015-10-18 08:24:48 +03:00
|
|
|
'RefPtr.h',
|
2016-11-21 14:52:03 +03:00
|
|
|
'Result.h',
|
2017-08-30 07:28:22 +03:00
|
|
|
'ResultExtensions.h',
|
2015-02-04 11:07:32 +03:00
|
|
|
'ReverseIterator.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'RollingMean.h',
|
2016-02-04 14:35:12 +03:00
|
|
|
'Saturate.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Scoped.h',
|
2015-07-04 00:20:55 +03:00
|
|
|
'ScopeExit.h',
|
2014-12-09 01:45:13 +03:00
|
|
|
'SegmentedVector.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'SHA1.h',
|
2018-04-23 18:31:53 +03:00
|
|
|
'SharedLibrary.h',
|
2017-05-10 06:07:37 +03:00
|
|
|
'SmallPointerArray.h',
|
2017-02-16 12:43:50 +03:00
|
|
|
'Span.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'SplayTree.h',
|
2016-08-15 09:43:21 +03:00
|
|
|
'Sprintf.h',
|
2018-04-13 18:14:05 +03:00
|
|
|
'SPSCQueue.h',
|
2016-07-25 16:57:30 +03:00
|
|
|
'StaticAnalysisFunctions.h',
|
2014-06-17 19:54:00 +04:00
|
|
|
'TaggedAnonymousMemory.h',
|
2020-01-24 01:19:32 +03:00
|
|
|
'Tainting.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'TemplateLib.h',
|
2018-04-09 22:02:43 +03:00
|
|
|
'TextUtils.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'ThreadLocal.h',
|
2017-10-18 21:21:23 +03:00
|
|
|
'ThreadSafeWeakPtr.h',
|
2014-05-07 22:54:45 +04:00
|
|
|
'ToString.h',
|
2015-05-22 05:33:49 +03:00
|
|
|
'Tuple.h',
|
2014-04-26 06:34:04 +04:00
|
|
|
'TypedEnumBits.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Types.h',
|
|
|
|
'TypeTraits.h',
|
2013-12-30 23:34:15 +04:00
|
|
|
'UniquePtr.h',
|
2015-11-06 00:24:24 +03:00
|
|
|
'UniquePtrExtensions.h',
|
2016-08-23 07:09:32 +03:00
|
|
|
'Unused.h',
|
2018-01-11 21:29:53 +03:00
|
|
|
'Utf8.h',
|
2015-06-30 20:01:00 +03:00
|
|
|
'Variant.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
'Vector.h',
|
|
|
|
'WeakPtr.h',
|
2018-02-16 04:36:50 +03:00
|
|
|
'WrappingOperations.h',
|
2015-09-23 23:59:28 +03:00
|
|
|
'XorShift128PlusRNG.h',
|
2014-01-20 04:11:45 +04:00
|
|
|
]
|
2013-11-19 06:47:14 +04:00
|
|
|
|
2017-10-10 08:15:37 +03:00
|
|
|
EXPORTS["double-conversion"] = [
|
|
|
|
'double-conversion/double-conversion/double-conversion.h',
|
2019-10-11 05:46:45 +03:00
|
|
|
'double-conversion/double-conversion/double-to-string.h',
|
|
|
|
'double-conversion/double-conversion/string-to-double.h',
|
2017-10-10 08:15:37 +03:00
|
|
|
'double-conversion/double-conversion/utils.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/mfbt/double-conversion',
|
|
|
|
]
|
|
|
|
|
2014-02-28 02:58:47 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'WindowsVersion.h',
|
|
|
|
]
|
|
|
|
|
2020-03-27 00:19:24 +03:00
|
|
|
if CONFIG['MOZ_TSAN']:
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'TsanOptions.h',
|
|
|
|
]
|
|
|
|
|
2017-11-14 09:55:53 +03:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'Assertions.cpp',
|
|
|
|
'ChaosMode.cpp',
|
|
|
|
'double-conversion/double-conversion/bignum-dtoa.cc',
|
|
|
|
'double-conversion/double-conversion/bignum.cc',
|
|
|
|
'double-conversion/double-conversion/cached-powers.cc',
|
2019-10-11 05:46:45 +03:00
|
|
|
'double-conversion/double-conversion/double-to-string.cc',
|
2017-11-14 09:55:53 +03:00
|
|
|
'double-conversion/double-conversion/fast-dtoa.cc',
|
|
|
|
'double-conversion/double-conversion/fixed-dtoa.cc',
|
2019-10-11 05:46:45 +03:00
|
|
|
'double-conversion/double-conversion/string-to-double.cc',
|
2017-11-14 09:55:53 +03:00
|
|
|
'double-conversion/double-conversion/strtod.cc',
|
|
|
|
'FloatingPoint.cpp',
|
|
|
|
'HashFunctions.cpp',
|
|
|
|
'JSONWriter.cpp',
|
|
|
|
'Poison.cpp',
|
2018-10-25 21:00:15 +03:00
|
|
|
'RandomNum.cpp',
|
2017-11-14 09:55:53 +03:00
|
|
|
'SHA1.cpp',
|
|
|
|
'TaggedAnonymousMemory.cpp',
|
2019-06-28 22:46:58 +03:00
|
|
|
'UniquePtrExtensions.cpp',
|
2017-11-14 09:55:53 +03:00
|
|
|
'Unused.cpp',
|
2018-01-11 21:29:53 +03:00
|
|
|
'Utf8.cpp',
|
2017-11-14 09:55:53 +03:00
|
|
|
]
|
2014-01-20 04:11:45 +04:00
|
|
|
|
2020-07-09 02:03:21 +03:00
|
|
|
if CONFIG['MOZ_BUILD_APP'] not in (
|
|
|
|
'memory',
|
|
|
|
'tools/crashreporter',
|
|
|
|
'tools/update-packaging',
|
|
|
|
'tools/update-programs',
|
|
|
|
):
|
|
|
|
# Building MFBT tests adds a large overhead when building.
|
2019-01-11 19:01:15 +03:00
|
|
|
TEST_DIRS += ['tests']
|
|
|
|
|
2014-01-20 04:11:45 +04:00
|
|
|
DEFINES['IMPL_MFBT'] = True
|
|
|
|
|
2017-11-14 09:55:53 +03:00
|
|
|
SOURCES += [
|
|
|
|
'Compression.cpp',
|
2019-10-04 23:44:08 +03:00
|
|
|
'lz4/lz4.c',
|
|
|
|
'lz4/lz4frame.c',
|
|
|
|
'lz4/lz4hc.c',
|
|
|
|
'lz4/xxhash.c',
|
2017-11-14 09:55:53 +03:00
|
|
|
]
|
2014-03-05 04:39:06 +04:00
|
|
|
|
2017-09-11 21:33:26 +03:00
|
|
|
DisableStlWrapping()
|
2014-03-16 10:23:28 +04:00
|
|
|
|
2015-12-01 05:56:42 +03:00
|
|
|
if CONFIG['MOZ_NEEDS_LIBATOMIC']:
|
|
|
|
OS_LIBS += ['atomic']
|
2017-11-15 06:51:01 +03:00
|
|
|
|
|
|
|
DEFINES['LZ4LIB_VISIBILITY'] = ''
|