зеркало из https://github.com/mozilla/gecko-dev.git
117 строки
2.6 KiB
Python
117 строки
2.6 KiB
Python
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# 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/.
|
|
|
|
TEST_DIRS += ['tests']
|
|
|
|
# On win we build two mfbt libs - mfbt linked to crt dlls here and in
|
|
# staticruntime we build a statically linked mfbt lib.
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
DIRS += ['staticruntime']
|
|
|
|
Library('mfbt')
|
|
|
|
EXPORTS.mozilla = [
|
|
'Alignment.h',
|
|
'AllocPolicy.h',
|
|
'AlreadyAddRefed.h',
|
|
'Array.h',
|
|
'ArrayUtils.h',
|
|
'Assertions.h',
|
|
'Atomics.h',
|
|
'Attributes.h',
|
|
'BinarySearch.h',
|
|
'BloomFilter.h',
|
|
'Casting.h',
|
|
'ChaosMode.h',
|
|
'Char16.h',
|
|
'CheckedInt.h',
|
|
'Compiler.h',
|
|
'Compression.h',
|
|
'Constants.h',
|
|
'DebugOnly.h',
|
|
'decimal/Decimal.h',
|
|
'double-conversion/double-conversion.h',
|
|
'double-conversion/utils.h',
|
|
'Endian.h',
|
|
'EnumeratedArray.h',
|
|
'EnumeratedRange.h',
|
|
'EnumSet.h',
|
|
'FloatingPoint.h',
|
|
'GuardObjects.h',
|
|
'HashFunctions.h',
|
|
'IndexSequence.h',
|
|
'IntegerPrintfMacros.h',
|
|
'IntegerRange.h',
|
|
'IntegerTypeTraits.h',
|
|
'JSONWriter.h',
|
|
'Likely.h',
|
|
'LinkedList.h',
|
|
'MacroArgs.h',
|
|
'MacroForEach.h',
|
|
'MathAlgorithms.h',
|
|
'Maybe.h',
|
|
'MaybeOneOf.h',
|
|
'MemoryChecking.h',
|
|
'MemoryReporting.h',
|
|
'Move.h',
|
|
'NullPtr.h',
|
|
'NumericLimits.h',
|
|
'Pair.h',
|
|
'PodOperations.h',
|
|
'Poison.h',
|
|
'Range.h',
|
|
'RangedArray.h',
|
|
'RangedPtr.h',
|
|
'RefCountType.h',
|
|
'ReentrancyGuard.h',
|
|
'RefPtr.h',
|
|
'ReverseIterator.h',
|
|
'RollingMean.h',
|
|
'Scoped.h',
|
|
'SegmentedVector.h',
|
|
'SHA1.h',
|
|
'SizePrintfMacros.h',
|
|
'Snprintf.h',
|
|
'SplayTree.h',
|
|
'TaggedAnonymousMemory.h',
|
|
'TemplateLib.h',
|
|
'ThreadLocal.h',
|
|
'ToString.h',
|
|
'Tuple.h',
|
|
'TypedEnumBits.h',
|
|
'Types.h',
|
|
'TypeTraits.h',
|
|
'UniquePtr.h',
|
|
'Variant.h',
|
|
'Vector.h',
|
|
'WeakPtr.h',
|
|
'unused.h',
|
|
]
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
EXPORTS.mozilla += [
|
|
'WindowsVersion.h',
|
|
]
|
|
elif CONFIG['OS_ARCH'] == 'Linux':
|
|
EXPORTS.mozilla += [
|
|
'LinuxSignal.h',
|
|
]
|
|
|
|
include('objs.mozbuild')
|
|
|
|
UNIFIED_SOURCES += mfbt_src_cppsrcs
|
|
|
|
DEFINES['IMPL_MFBT'] = True
|
|
|
|
SOURCES += mfbt_nonunified_src_cppsrcs
|
|
|
|
DISABLE_STL_WRAPPING = True
|
|
|
|
# Suppress warnings in third-party code.
|
|
if CONFIG['GNU_CXX']:
|
|
# TODO: Remove this LZ4 warning suppression after bug 993267 is fixed.
|
|
SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function']
|