layout/base/moz.build
author shindli <shindli@mozilla.com>
Sun, 21 Jan 2018 23:57:26 +0200
changeset 400156 5faab9e619901b1513fd4ca137747231be550def
parent 395728 2d15016c5ede81ee2b7a7643469c381f4d787219
child 402009 91687b8690ea0f551b34ec9bb2c829caafcb338e
permissions -rw-r--r--
Merge inbound to mozilla-central. a=merge

# -*- 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('Restyle*'):
    BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')

with Files('nsStyle*'):
    BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')

with Files('nsChangeHint.h'):
    BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')

with Files('nsBidi*'):
    BUG_COMPONENT = ('Core', 'Layout: Text')

with Files('AccessibleCaret*'):
    BUG_COMPONENT = ('Core', 'Selection')

XPIDL_SOURCES += [
    'nsILayoutHistoryState.idl',
    'nsIPreloadedStyleSheet.idl',
    'nsIStyleSheetService.idl',
]

if CONFIG['MOZ_DEBUG']:
    UNIFIED_SOURCES += [
        'nsAutoLayoutPhase.cpp',
    ]

XPIDL_MODULE = 'layout_base'

EXPORTS += [
    'CaretAssociationHint.h',
    'FrameProperties.h',
    'LayoutLogging.h',
    'MobileViewportManager.h',
    'nsAutoLayoutPhase.h',
    'nsBidi.h',
    'nsBidiPresUtils.h',
    'nsCaret.h',
    'nsChangeHint.h',
    'nsCompatibility.h',
    'nsCSSFrameConstructor.h',
    'nsFrameManager.h',
    'nsFrameManagerBase.h',
    'nsFrameTraversal.h',
    'nsIFrameTraversal.h',
    'nsILayoutDebugger.h',
    'nsIPercentBSizeObserver.h',
    'nsIPresShell.h',
    'nsIPresShellInlines.h',
    'nsIReflowCallback.h',
    'nsLayoutUtils.h',
    'nsPresArena.h',
    'nsPresArenaObjectList.h',
    'nsPresContext.h',
    'nsPresState.h',
    'nsRefreshDriver.h',
    'nsStyleChangeList.h',
    'nsStyleSheetService.h',
    'ScrollbarStyles.h',
    'StackArena.h',
    'TouchManager.h',
    'Units.h',
    'UnitTransforms.h',
    'WordMovementType.h',
    'ZoomConstraintsClient.h',
]

EXPORTS.mozilla += [
    'ArenaObjectID.h',
    'ArenaRefPtr.h',
    'ArenaRefPtrInlines.h',
    'GeckoRestyleManager.h',
    'GeometryUtils.h',
    'OverflowChangedTracker.h',
    'PresShell.h',
    'RestyleLogging.h',
    'RestyleManager.h',
    'RestyleManagerInlines.h',
    'ServoRestyleManager.h',
    'ShapeUtils.h',
    'StaticPresData.h',
]

UNIFIED_SOURCES += [
    'AccessibleCaret.cpp',
    'AccessibleCaretEventHub.cpp',
    'AccessibleCaretManager.cpp',
    'GeckoRestyleManager.cpp',
    'GeometryUtils.cpp',
    'LayoutLogging.cpp',
    'MobileViewportManager.cpp',
    'nsBidi.cpp',
    'nsBidiPresUtils.cpp',
    'nsCaret.cpp',
    'nsCounterManager.cpp',
    'nsCSSColorUtils.cpp',
    'nsCSSFrameConstructor.cpp',
    'nsDocumentViewer.cpp',
    'nsFrameManager.cpp',
    'nsFrameTraversal.cpp',
    'nsGenConList.cpp',
    'nsLayoutDebugger.cpp',
    'nsLayoutHistoryState.cpp',
    'nsLayoutUtils.cpp',
    'nsPresArena.cpp',
    'nsPresContext.cpp',
    'nsQuoteList.cpp',
    'nsStyleChangeList.cpp',
    'nsStyleSheetService.cpp',
    'PositionedEventTargeting.cpp',
    'PresShell.cpp',
    'RestyleManager.cpp',
    'RestyleTracker.cpp',
    'ScrollbarStyles.cpp',
    'ServoRestyleManager.cpp',
    'ShapeUtils.cpp',
    'StackArena.cpp',
    'StaticPresData.cpp',
    'TouchManager.cpp',
    'ZoomConstraintsClient.cpp',
]

# nsRefreshDriver.cpp needs to be built separately because of name clashes in the OS X headers
SOURCES += [
    'nsRefreshDriver.cpp',
]

if CONFIG['ENABLE_TESTS']:
    DIRS += ['gtest']

include('/ipc/chromium/chromium-config.mozbuild')

LOCAL_INCLUDES += [
    '../forms',
    '../generic',
    '../mathml',
    '../painting',
    '../printing',
    '../style',
    '../svg',
    '../tables',
    '../xul',
    '../xul/tree/',
    '/docshell/base',
    '/dom/base',
    '/dom/html',
    '/dom/svg',
    '/dom/xbl',
    '/dom/xul',
    '/view',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
    LOCAL_INCLUDES += [
        '/widget/android',
    ]

FINAL_LIBRARY = 'xul'

BROWSER_CHROME_MANIFESTS += ['tests/browser.ini']
MARIONETTE_LAYOUT_MANIFESTS += ['tests/marionette/manifest.ini']
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome/chrome.ini']

if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
    # This is intended as a temporary hack to support building with VS2015.
    # 'type cast': conversion from 'unsigned int' to 'void *' of greater size
    CXXFLAGS += ['-wd4312']

if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
    CXXFLAGS += ['-Wno-error=shadow']