2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:22 +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/.
|
|
|
|
|
2015-03-04 04:03:19 +03:00
|
|
|
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')
|
|
|
|
|
2015-12-22 09:14:12 +03:00
|
|
|
with Files('AccessibleCaret*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Selection')
|
2015-07-30 09:33:00 +03:00
|
|
|
|
2013-03-12 21:17:46 +04:00
|
|
|
XPIDL_SOURCES += [
|
2017-01-05 10:32:22 +03:00
|
|
|
'nsIPreloadedStyleSheet.idl',
|
2013-03-12 21:17:46 +04:00
|
|
|
'nsIStyleSheetService.idl',
|
|
|
|
]
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['MOZ_DEBUG']:
|
2013-11-15 06:43:56 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsAutoLayoutPhase.cpp',
|
|
|
|
]
|
2013-03-12 21:20:41 +04:00
|
|
|
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'layout_base'
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
2014-08-06 09:19:27 +04:00
|
|
|
'CaretAssociationHint.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'FramePropertyTable.h',
|
2015-06-16 02:36:09 +03:00
|
|
|
'LayoutLogging.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsArenaMemoryStats.h',
|
|
|
|
'nsBidi.h',
|
|
|
|
'nsBidiPresUtils.h',
|
|
|
|
'nsCaret.h',
|
|
|
|
'nsChangeHint.h',
|
|
|
|
'nsCompatibility.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsCSSFrameConstructor.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsFrameManager.h',
|
|
|
|
'nsFrameManagerBase.h',
|
|
|
|
'nsFrameTraversal.h',
|
|
|
|
'nsIFrameTraversal.h',
|
|
|
|
'nsILayoutDebugger.h',
|
|
|
|
'nsILayoutHistoryState.h',
|
2015-06-22 12:33:34 +03:00
|
|
|
'nsIPercentBSizeObserver.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsIPresShell.h',
|
|
|
|
'nsIReflowCallback.h',
|
|
|
|
'nsLayoutUtils.h',
|
|
|
|
'nsPresArena.h',
|
2015-09-17 05:08:19 +03:00
|
|
|
'nsPresArenaObjectList.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsPresContext.h',
|
|
|
|
'nsPresState.h',
|
|
|
|
'nsRefreshDriver.h',
|
|
|
|
'nsStyleChangeList.h',
|
2016-04-29 07:01:44 +03:00
|
|
|
'nsStyleSheetService.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'ScrollbarStyles.h',
|
|
|
|
'StackArena.h',
|
|
|
|
'Units.h',
|
2014-03-11 01:56:59 +04:00
|
|
|
'UnitTransforms.h',
|
2014-08-06 09:19:27 +04:00
|
|
|
'WordMovementType.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2015-09-17 05:08:19 +03:00
|
|
|
'ArenaObjectID.h',
|
2015-09-17 05:08:19 +03:00
|
|
|
'ArenaRefPtr.h',
|
|
|
|
'ArenaRefPtrInlines.h',
|
2014-03-12 05:11:38 +04:00
|
|
|
'GeometryUtils.h',
|
2016-07-28 03:22:13 +03:00
|
|
|
'OverflowChangedTracker.h',
|
2016-11-30 06:14:28 +03:00
|
|
|
'PresShell.h',
|
2014-09-25 09:45:36 +04:00
|
|
|
'RestyleLogging.h',
|
2016-02-24 10:01:12 +03:00
|
|
|
'RestyleManager.h',
|
2016-07-08 10:08:46 +03:00
|
|
|
'RestyleManagerBase.h',
|
2016-02-24 10:01:12 +03:00
|
|
|
'RestyleManagerHandle.h',
|
|
|
|
'RestyleManagerHandleInlines.h',
|
|
|
|
'ServoRestyleManager.h',
|
2016-12-01 11:19:50 +03:00
|
|
|
'ServoRestyleManagerInlines.h',
|
2016-03-31 22:47:20 +03:00
|
|
|
'StaticPresData.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-11-15 06:43:56 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2015-04-24 03:05:00 +03:00
|
|
|
'AccessibleCaret.cpp',
|
|
|
|
'AccessibleCaretEventHub.cpp',
|
|
|
|
'AccessibleCaretManager.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'FramePropertyTable.cpp',
|
2014-03-12 05:11:38 +04:00
|
|
|
'GeometryUtils.cpp',
|
2015-06-16 02:36:09 +03:00
|
|
|
'LayoutLogging.cpp',
|
2015-07-21 17:51:55 +03:00
|
|
|
'MobileViewportManager.cpp',
|
2014-04-24 05:15:29 +04:00
|
|
|
'nsBidiPresUtils.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsCaret.cpp',
|
|
|
|
'nsCounterManager.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsCSSColorUtils.cpp',
|
|
|
|
'nsCSSFrameConstructor.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsDocumentViewer.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsFrameManager.cpp',
|
|
|
|
'nsFrameTraversal.cpp',
|
|
|
|
'nsGenConList.cpp',
|
|
|
|
'nsLayoutDebugger.cpp',
|
|
|
|
'nsLayoutHistoryState.cpp',
|
|
|
|
'nsLayoutUtils.cpp',
|
|
|
|
'nsPresContext.cpp',
|
|
|
|
'nsQuoteList.cpp',
|
|
|
|
'nsStyleChangeList.cpp',
|
|
|
|
'nsStyleSheetService.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'PositionedEventTargeting.cpp',
|
2016-11-30 06:14:28 +03:00
|
|
|
'PresShell.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'RestyleManager.cpp',
|
2016-07-08 10:08:46 +03:00
|
|
|
'RestyleManagerBase.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'RestyleTracker.cpp',
|
2014-02-04 05:54:22 +04:00
|
|
|
'ScrollbarStyles.cpp',
|
2016-02-24 10:01:12 +03:00
|
|
|
'ServoRestyleManager.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'StackArena.cpp',
|
2016-03-31 22:47:20 +03:00
|
|
|
'StaticPresData.cpp',
|
2015-02-20 10:12:00 +03:00
|
|
|
'TouchManager.cpp',
|
2015-06-17 19:32:42 +03:00
|
|
|
'ZoomConstraintsClient.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2016-10-06 11:49:17 +03:00
|
|
|
if CONFIG['ENABLE_INTL_API']:
|
|
|
|
EXPORTS += [
|
|
|
|
'nsBidi_ICU.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsBidi_ICU.cpp',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
EXPORTS += [
|
|
|
|
'nsBidi_noICU.h',
|
|
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsBidi_noICU.cpp',
|
|
|
|
]
|
|
|
|
|
2013-11-15 06:43:56 +04:00
|
|
|
# nsPresArena.cpp needs to be built separately because it uses plarena.h.
|
|
|
|
# nsRefreshDriver.cpp needs to be built separately because of name clashes in the OS X headers
|
|
|
|
SOURCES += [
|
|
|
|
'nsPresArena.cpp',
|
|
|
|
'nsRefreshDriver.cpp',
|
|
|
|
]
|
|
|
|
|
2015-05-10 04:37:00 +03:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['gtest']
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-15 11:12:43 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2013-11-28 18:23:10 +04:00
|
|
|
'../forms',
|
|
|
|
'../generic',
|
|
|
|
'../mathml',
|
2016-11-19 03:37:13 +03:00
|
|
|
'../painting',
|
2013-11-28 18:23:10 +04:00
|
|
|
'../printing',
|
|
|
|
'../style',
|
|
|
|
'../svg',
|
|
|
|
'../tables',
|
2013-12-04 05:06:16 +04:00
|
|
|
'../xul',
|
2013-11-28 18:23:10 +04:00
|
|
|
'../xul/tree/',
|
2013-11-15 11:12:43 +04:00
|
|
|
'/docshell/base',
|
2014-01-10 07:03:25 +04:00
|
|
|
'/dom/base',
|
2014-10-25 21:24:55 +04:00
|
|
|
'/dom/html',
|
2014-10-25 21:21:12 +04:00
|
|
|
'/dom/svg',
|
2014-01-10 07:03:25 +04:00
|
|
|
'/dom/xbl',
|
2014-07-29 05:02:44 +04:00
|
|
|
'/view',
|
2013-11-15 11:12:43 +04:00
|
|
|
]
|
2013-11-28 18:23:10 +04:00
|
|
|
|
2016-03-11 02:06:13 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/widget/android',
|
|
|
|
]
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-28 18:27:05 +04:00
|
|
|
|
2015-09-18 16:57:10 +03:00
|
|
|
BROWSER_CHROME_MANIFESTS += ['tests/browser.ini']
|
2016-09-08 00:22:21 +03:00
|
|
|
MARIONETTE_LAYOUT_MANIFESTS += ['tests/marionette/manifest.ini']
|
2013-11-28 18:27:05 +04:00
|
|
|
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome/chrome.ini']
|
2014-07-24 19:55:33 +04:00
|
|
|
|
2016-03-15 03:56:28 +03:00
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
# 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']
|
2016-05-11 10:00:01 +03:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|