2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:17 +00: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/.
|
|
|
|
|
|
|
|
TEST_DIRS += ['tests']
|
2013-03-19 18:47:00 +00:00
|
|
|
|
2015-05-27 21:22:29 +00:00
|
|
|
# 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']
|
|
|
|
|
2014-09-03 05:10:54 +00:00
|
|
|
Library('mfbt')
|
2013-06-17 19:21:01 +00:00
|
|
|
|
2014-01-20 00:11:45 +00:00
|
|
|
EXPORTS.mozilla = [
|
|
|
|
'Alignment.h',
|
|
|
|
'AllocPolicy.h',
|
2014-12-31 16:42:05 +00:00
|
|
|
'AlreadyAddRefed.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'Array.h',
|
|
|
|
'ArrayUtils.h',
|
|
|
|
'Assertions.h',
|
|
|
|
'Atomics.h',
|
|
|
|
'Attributes.h',
|
2014-04-16 02:30:26 +00:00
|
|
|
'BinarySearch.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'BloomFilter.h',
|
|
|
|
'Casting.h',
|
2014-03-03 05:12:17 +00:00
|
|
|
'ChaosMode.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'Char16.h',
|
|
|
|
'CheckedInt.h',
|
|
|
|
'Compiler.h',
|
|
|
|
'Compression.h',
|
|
|
|
'Constants.h',
|
|
|
|
'DebugOnly.h',
|
|
|
|
'decimal/Decimal.h',
|
2014-09-17 06:33:05 +00:00
|
|
|
'double-conversion/double-conversion.h',
|
|
|
|
'double-conversion/utils.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'Endian.h',
|
2014-04-26 02:34:03 +00:00
|
|
|
'EnumeratedArray.h',
|
2015-03-23 19:06:00 +00:00
|
|
|
'EnumeratedRange.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'EnumSet.h',
|
|
|
|
'FloatingPoint.h',
|
2015-09-11 18:40:09 +00:00
|
|
|
'Function.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'GuardObjects.h',
|
|
|
|
'HashFunctions.h',
|
2015-05-11 21:23:33 +00:00
|
|
|
'IndexSequence.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'IntegerPrintfMacros.h',
|
2015-02-04 08:07:32 +00:00
|
|
|
'IntegerRange.h',
|
2014-04-01 13:38:42 +00:00
|
|
|
'IntegerTypeTraits.h',
|
2014-09-15 06:36:18 +00:00
|
|
|
'JSONWriter.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'Likely.h',
|
|
|
|
'LinkedList.h',
|
2014-04-24 08:48:00 +00:00
|
|
|
'MacroArgs.h',
|
2014-04-24 08:49:00 +00:00
|
|
|
'MacroForEach.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'MathAlgorithms.h',
|
|
|
|
'Maybe.h',
|
2014-06-13 12:26:01 +00:00
|
|
|
'MaybeOneOf.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'MemoryChecking.h',
|
|
|
|
'MemoryReporting.h',
|
|
|
|
'Move.h',
|
2015-07-29 00:52:52 +00:00
|
|
|
'nsRefPtr.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'NullPtr.h',
|
|
|
|
'NumericLimits.h',
|
2014-06-09 15:49:18 +00:00
|
|
|
'Pair.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'PodOperations.h',
|
|
|
|
'Poison.h',
|
|
|
|
'Range.h',
|
2015-05-23 02:50:44 +00:00
|
|
|
'RangedArray.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'RangedPtr.h',
|
2014-02-21 19:45:50 +00:00
|
|
|
'RefCountType.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'ReentrancyGuard.h',
|
|
|
|
'RefPtr.h',
|
2015-02-04 08:07:32 +00:00
|
|
|
'ReverseIterator.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'RollingMean.h',
|
|
|
|
'Scoped.h',
|
2015-07-03 21:20:55 +00:00
|
|
|
'ScopeExit.h',
|
2014-12-08 22:45:13 +00:00
|
|
|
'SegmentedVector.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'SHA1.h',
|
2014-12-22 07:30:06 +00:00
|
|
|
'SizePrintfMacros.h',
|
2015-05-26 18:33:55 +00:00
|
|
|
'Snprintf.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'SplayTree.h',
|
2014-06-17 15:54:00 +00:00
|
|
|
'TaggedAnonymousMemory.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'TemplateLib.h',
|
|
|
|
'ThreadLocal.h',
|
2014-05-07 18:54:45 +00:00
|
|
|
'ToString.h',
|
2015-05-22 02:33:49 +00:00
|
|
|
'Tuple.h',
|
2014-04-26 02:34:04 +00:00
|
|
|
'TypedEnumBits.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'Types.h',
|
|
|
|
'TypeTraits.h',
|
2013-12-30 19:34:15 +00:00
|
|
|
'UniquePtr.h',
|
2015-06-30 17:01:00 +00:00
|
|
|
'Variant.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
'Vector.h',
|
|
|
|
'WeakPtr.h',
|
2014-08-29 08:11:00 +00:00
|
|
|
'unused.h',
|
2014-01-20 00:11:45 +00:00
|
|
|
]
|
2013-11-19 02:47:14 +00:00
|
|
|
|
2014-02-27 22:58:47 +00:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'WindowsVersion.h',
|
|
|
|
]
|
2014-07-15 16:45:40 +00:00
|
|
|
elif CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'LinuxSignal.h',
|
|
|
|
]
|
2014-02-27 22:58:47 +00:00
|
|
|
|
2015-05-27 21:22:29 +00:00
|
|
|
include('objs.mozbuild')
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += mfbt_src_cppsrcs
|
2014-01-20 00:11:45 +00:00
|
|
|
|
|
|
|
DEFINES['IMPL_MFBT'] = True
|
|
|
|
|
2015-05-27 21:22:29 +00:00
|
|
|
SOURCES += mfbt_nonunified_src_cppsrcs
|
2014-03-05 00:39:06 +00:00
|
|
|
|
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-03-16 06:23:28 +00:00
|
|
|
|
2015-08-28 03:44:53 +00:00
|
|
|
# Suppress warnings in third-party LZ4 code.
|
|
|
|
# TODO: Remove these suppressions after bug 993267 is fixed.
|
|
|
|
|
2014-03-16 06:23:28 +00:00
|
|
|
if CONFIG['GNU_CXX']:
|
2015-05-15 00:49:20 +00:00
|
|
|
SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function']
|
2015-08-28 03:44:53 +00:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
# Error 4804 is "'>' : unsafe use of type 'bool' in operation"
|
|
|
|
SOURCES['/mfbt/Compression.cpp'].flags += ['-wd4804']
|