Bug 1700051: part 33) Move `AdjustSoftBeginAndBuildSoftText` to `SoftText`. r=smaug
[gecko.git] / layout / base / moz.build
blob0ffa214473544dc956d840bcb6b7294f887283c2
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 with Files("Restyle*"):
8     BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
10 with Files("nsStyle*"):
11     BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
13 with Files("nsChangeHint.h"):
14     BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
16 with Files("nsBidi*"):
17     BUG_COMPONENT = ("Core", "Layout: Text and Fonts")
19 with Files("AccessibleCaret*"):
20     BUG_COMPONENT = ("Core", "DOM: Selection")
22 XPIDL_SOURCES += [
23     "nsILayoutHistoryState.idl",
24     "nsIPreloadedStyleSheet.idl",
25     "nsIStyleSheetService.idl",
28 if CONFIG["MOZ_DEBUG"]:
29     UNIFIED_SOURCES += [
30         "nsAutoLayoutPhase.cpp",
31     ]
33 XPIDL_MODULE = "layout_base"
35 EXPORTS += [
36     "CaretAssociationHint.h",
37     "FrameProperties.h",
38     "LayoutConstants.h",
39     "LayoutLogging.h",
40     "MobileViewportManager.h",
41     "nsAutoLayoutPhase.h",
42     "nsBidi.h",
43     "nsBidiPresUtils.h",
44     "nsCaret.h",
45     "nsChangeHint.h",
46     "nsCompatibility.h",
47     "nsCounterManager.h",
48     "nsCSSFrameConstructor.h",
49     "nsFrameManager.h",
50     "nsFrameTraversal.h",
51     "nsGenConList.h",
52     "nsIFrameTraversal.h",
53     "nsIPercentBSizeObserver.h",
54     "nsIReflowCallback.h",
55     "nsLayoutUtils.h",
56     "nsPresArena.h",
57     "nsPresArenaObjectList.h",
58     "nsPresContext.h",
59     "nsPresContextInlines.h",
60     "nsQuoteList.h",
61     "nsRefreshDriver.h",
62     "nsRefreshObservers.h",
63     "nsStyleChangeList.h",
64     "nsStyleSheetService.h",
65     "StackArena.h",
66     "TouchManager.h",
67     "Units.h",
68     "UnitTransforms.h",
69     "WordMovementType.h",
70     "ZoomConstraintsClient.h",
73 EXPORTS.mozilla += [
74     "AccessibleCaretEventHub.h",
75     "ArenaObjectID.h",
76     "DisplayPortUtils.h",
77     "GeckoMVMContext.h",
78     "GeometryUtils.h",
79     "MediaEmulationData.h",
80     "MotionPathUtils.h",
81     "MVMContext.h",
82     "OverflowChangedTracker.h",
83     "PositionedEventTargeting.h",
84     "PresShell.h",
85     "PresShellForwards.h",
86     "PresShellInlines.h",
87     "RelativeTo.h",
88     "RestyleManager.h",
89     "ScrollStyles.h",
90     "ScrollTypes.h",
91     "ShapeUtils.h",
92     "StaticPresData.h",
93     "SurfaceFromElementResult.h",
94     "ViewportUtils.h",
97 EXPORTS.mozilla.layout += [
98     "LayoutTelemetryTools.h",
101 UNIFIED_SOURCES += [
102     "AccessibleCaret.cpp",
103     "AccessibleCaretEventHub.cpp",
104     "AccessibleCaretManager.cpp",
105     "DisplayPortUtils.cpp",
106     "GeckoMVMContext.cpp",
107     "GeometryUtils.cpp",
108     "LayoutLogging.cpp",
109     "LayoutTelemetryTools.cpp",
110     "MobileViewportManager.cpp",
111     "MotionPathUtils.cpp",
112     "nsBidi.cpp",
113     "nsBidiPresUtils.cpp",
114     "nsCaret.cpp",
115     "nsCounterManager.cpp",
116     "nsCSSColorUtils.cpp",
117     "nsCSSFrameConstructor.cpp",
118     "nsDocumentViewer.cpp",
119     "nsFrameManager.cpp",
120     "nsFrameTraversal.cpp",
121     "nsGenConList.cpp",
122     "nsLayoutDebugger.cpp",
123     "nsLayoutHistoryState.cpp",
124     "nsLayoutUtils.cpp",
125     "nsPresArena.cpp",
126     "nsPresContext.cpp",
127     "nsQuoteList.cpp",
128     "nsRefreshObservers.cpp",
129     "nsStyleChangeList.cpp",
130     "nsStyleSheetService.cpp",
131     "PositionedEventTargeting.cpp",
132     "PresShell.cpp",
133     "RestyleManager.cpp",
134     "ScrollStyles.cpp",
135     "ShapeUtils.cpp",
136     "StackArena.cpp",
137     "StaticPresData.cpp",
138     "TouchManager.cpp",
139     "ViewportUtils.cpp",
140     "ZoomConstraintsClient.cpp",
143 # nsRefreshDriver.cpp needs to be built separately because of name clashes in the OS X headers
144 SOURCES += [
145     "nsRefreshDriver.cpp",
148 if CONFIG["ENABLE_TESTS"]:
149     DIRS += ["gtest"]
151 include("/ipc/chromium/chromium-config.mozbuild")
153 LOCAL_INCLUDES += [
154     "../forms",
155     "../generic",
156     "../mathml",
157     "../painting",
158     "../printing",
159     "../style",
160     "../tables",
161     "../xul",
162     "../xul/tree/",
163     "/docshell/base",
164     "/dom/base",
165     "/dom/html",
166     "/dom/svg",
167     "/dom/xul",
168     "/view",
171 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
172     LOCAL_INCLUDES += [
173         "/widget/android",
174     ]
176 IPDL_SOURCES += [
177     "PresState.ipdlh",
180 FINAL_LIBRARY = "xul"
182 BROWSER_CHROME_MANIFESTS += ["tests/browser.ini"]
183 MARIONETTE_LAYOUT_MANIFESTS += ["tests/marionette/manifest.ini"]
184 MOCHITEST_MANIFESTS += ["tests/mochitest.ini"]
185 MOCHITEST_CHROME_MANIFESTS += ["tests/chrome/chrome.ini"]
187 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
188     CXXFLAGS += ["-Wno-error=shadow"]