mfbt/moz.build
author Morten Stenshorne <mstensho@chromium.org>
Tue, 09 Oct 2018 04:14:13 +0000
changeset 495959 13844f50ee32e17f513b7c1013c2348200e21b8c
parent 486748 85f7b7200eea172cc5cc1d4eb853cb5062a35baa
child 499094 b283e9a224e0450ff9880af7b7366f9e73661ac5
permissions -rw-r--r--
Bug 1496274 [wpt PR 13345] - [LayoutNG] Correct clip-path reference box calculation., a=testonly Automatic update from web-platform-tests[LayoutNG] Correct clip-path reference box calculation. We used coordinates relatively to the line box, while we were expected by the caller to be relative to the containing block. Flipping for writing mode was bogus for NG (but needed by legacy), since NG uses truly physical coordinates. Hardened tests to contain a leading line and padding, and leading content on the first line of the clipped child. Bug: 641907 Change-Id: I2b1b9ff4ea92a6405fcdffcf139842458b46442f Cq-Include-Trybots: luci.chromium.try​:linux_layout_tests_layout_ng Reviewed-on: https://chromium-review.googlesource.com/c/1257913 Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#596554} -- wpt-commits: e9a0828c85819340f721f121aac19ab8eefa3439 wpt-pr: 13345

# -*- Mode: python; 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/.

with Files("**"):
    BUG_COMPONENT = ("Core", "MFBT")

TEST_DIRS += ['tests']

Library('mfbt')

EXPORTS.mozilla = [
    'Algorithm.h',
    'Alignment.h',
    'AllocPolicy.h',
    'AlreadyAddRefed.h',
    'Array.h',
    'ArrayUtils.h',
    'Assertions.h',
    'Atomics.h',
    'Attributes.h',
    'BinarySearch.h',
    'BloomFilter.h',
    'BufferList.h',
    'Casting.h',
    'ChaosMode.h',
    'Char16.h',
    'CheckedInt.h',
    'Compiler.h',
    'Compression.h',
    'DebugOnly.h',
    'decimal/Decimal.h',
    'DefineEnum.h',
    'DoublyLinkedList.h',
    'EndianUtils.h',
    'EnumeratedArray.h',
    'EnumeratedRange.h',
    'EnumSet.h',
    'EnumTypeTraits.h',
    'FastBernoulliTrial.h',
    'FloatingPoint.h',
    'FStream.h',
    'FunctionTypeTraits.h',
    'GuardObjects.h',
    'HashFunctions.h',
    'HashTable.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',
    'NonDereferenceable.h',
    'NotNull.h',
    'NullPtr.h',
    'Opaque.h',
    'OperatorNewExtensions.h',
    'Pair.h',
    'Path.h',
    'PodOperations.h',
    'Poison.h',
    'Range.h',
    'RangedArray.h',
    'RangedPtr.h',
    'RecordReplay.h',
    'ReentrancyGuard.h',
    'RefCounted.h',
    'RefCountType.h',
    'RefPtr.h',
    'Result.h',
    'ResultExtensions.h',
    'ReverseIterator.h',
    'RollingMean.h',
    'Saturate.h',
    'Scoped.h',
    'ScopeExit.h',
    'SegmentedVector.h',
    'SHA1.h',
    'SharedLibrary.h',
    'SmallPointerArray.h',
    'Span.h',
    'SplayTree.h',
    'Sprintf.h',
    'SPSCQueue.h',
    'StaticAnalysisFunctions.h',
    'TaggedAnonymousMemory.h',
    'TemplateLib.h',
    'TextUtils.h',
    'ThreadLocal.h',
    'ThreadSafeWeakPtr.h',
    'ToString.h',
    'Tuple.h',
    'TypedEnumBits.h',
    'Types.h',
    'TypeTraits.h',
    'UniquePtr.h',
    'UniquePtrExtensions.h',
    'Unused.h',
    'Utf8.h',
    'Variant.h',
    'Vector.h',
    'WeakPtr.h',
    'WrappingOperations.h',
    'XorShift128PlusRNG.h',
]

EXPORTS["double-conversion"] = [
    'double-conversion/double-conversion/double-conversion.h',
    'double-conversion/double-conversion/utils.h',
]

LOCAL_INCLUDES += [
    '/mfbt/double-conversion',
]

if CONFIG['OS_ARCH'] == 'WINNT':
    EXPORTS.mozilla += [
        'WindowsVersion.h',
    ]
elif CONFIG['OS_ARCH'] == 'Linux':
    EXPORTS.mozilla += [
        'LinuxSignal.h',
    ]

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',
    'double-conversion/double-conversion/diy-fp.cc',
    'double-conversion/double-conversion/double-conversion.cc',
    'double-conversion/double-conversion/fast-dtoa.cc',
    'double-conversion/double-conversion/fixed-dtoa.cc',
    'double-conversion/double-conversion/strtod.cc',
    'FloatingPoint.cpp',
    'HashFunctions.cpp',
    'JSONWriter.cpp',
    'Poison.cpp',
    'RecordReplay.cpp',
    'SHA1.cpp',
    'TaggedAnonymousMemory.cpp',
    'Unused.cpp',
    'Utf8.cpp',
]

DEFINES['IMPL_MFBT'] = True

SOURCES += [
    'Compression.cpp',
    'decimal/Decimal.cpp',
    'lz4.c',
]

DisableStlWrapping()

if CONFIG['CC_TYPE'] == 'clang':
    # Suppress warnings from third-party V8 Decimal code.
    SOURCES['decimal/Decimal.cpp'].flags += ['-Wno-implicit-fallthrough']

if CONFIG['MOZ_NEEDS_LIBATOMIC']:
    OS_LIBS += ['atomic']

DEFINES['LZ4LIB_VISIBILITY'] = ''