Bug 1867190 - Initialise the PHC allocate delay later r=glandium
[gecko.git] / layout / style / moz.build
bloba14ab6a7ac8e6807815952756397cde5b347c2fa
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("**"):
8     BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
10 with Files("nsComputedDOMStyle.*"):
11     BUG_COMPONENT = ("Core", "DOM: CSS Object Model")
13 with Files("nsROCSSPrimitiveValue.*"):
14     BUG_COMPONENT = ("Core", "DOM: CSS Object Model")
16 with Files("CSSRuleList.*"):
17     BUG_COMPONENT = ("Core", "DOM: CSS Object Model")
19 with Files("nsDOM*"):
20     BUG_COMPONENT = ("Core", "DOM: CSS Object Model")
22 with Files("AnimationCollection.*"):
23     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
25 with Files("AnimatedPropertyID*"):
26     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
28 with Files("AnimationCommon.*"):
29     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
31 with Files("nsAnimationManager.*"):
32     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
34 with Files("nsTransitionManager.*"):
35     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
37 with Files("StyleAnimationValue.*"):
38     BUG_COMPONENT = ("Core", "CSS Transitions and Animations")
40 TEST_DIRS += ["test"]
42 EXPORTS += [
43     "!nsCSSPropertyID.h",
44     "AnimationCommon.h",
45     "CounterStyleManager.h",
46     "nsAnimationManager.h",
47     "nsComputedDOMStyle.h",
48     "nsCSSAnonBoxes.h",
49     "nsCSSAnonBoxList.h",
50     "nsCSSCounterDescList.h",
51     "nsCSSFontDescList.h",
52     "nsCSSPropertyIDSet.h",
53     "nsCSSProps.h",
54     "nsCSSPseudoElementList.h",
55     "nsCSSPseudoElements.h",
56     "nsCSSValue.h",
57     "nsDOMCSSAttrDeclaration.h",
58     "nsDOMCSSDeclaration.h",
59     "nsICSSDeclaration.h",
60     "nsICSSLoaderObserver.h",
61     "nsStyleAutoArray.h",
62     "nsStyleConsts.h",
63     "nsStyleStruct.h",
64     "nsStyleStructFwd.h",
65     "nsStyleStructInlines.h",
66     "nsStyleStructList.h",
67     "nsStyleTransformMatrix.h",
68     "nsStyleUtil.h",
71 EXPORTS.mozilla += [
72     "!ServoCSSPropList.h",
73     "AnimatedPropertyID.h",
74     "AnimatedPropertyIDSet.h",
75     "AnimationCollection.h",
76     "AttributeStyles.h",
77     "CachedInheritingStyles.h",
78     "ComputedStyle.h",
79     "ComputedStyleInlines.h",
80     "CSSEnabledState.h",
81     "CSSPropFlags.h",
82     "DeclarationBlock.h",
83     "DocumentStyleRootIterator.h",
84     "FontLoaderUtils.h",
85     "FontPreloader.h",
86     "GeckoBindings.h",
87     "GlobalStyleSheetCache.h",
88     "ImportScanner.h",
89     "LayerAnimationInfo.h",
90     "MappedDeclarationsBuilder.h",
91     "MediaFeatureChange.h",
92     "PostTraversalTask.h",
93     "PreferenceSheet.h",
94     "PreloadedStyleSheet.h",
95     "PseudoStyleType.h",
96     "RustCell.h",
97     "ServoBindings.h",
98     "ServoBindingTypes.h",
99     "ServoBoxedTypeList.h",
100     "ServoComputedData.h",
101     "ServoCSSParser.h",
102     "ServoCSSRuleList.h",
103     "ServoElementSnapshot.h",
104     "ServoElementSnapshotTable.h",
105     "ServoLockedArcTypeList.h",
106     "ServoStyleConstsForwards.h",
107     "ServoStyleConstsInlines.h",
108     "ServoStyleSet.h",
109     "ServoStyleSetInlines.h",
110     "ServoTraversalStatistics.h",
111     "ServoTypes.h",
112     "ServoUtils.h",
113     "ShadowParts.h",
114     "SharedStyleSheetCache.h",
115     "SharedSubResourceCache.h",
116     "StyleAnimationValue.h",
117     "StyleColorInlines.h",
118     "StyleSheet.h",
119     "StyleSheetInfo.h",
120     "StyleSheetInlines.h",
121     "TimelineCollection.h",
122     "TimelineManager.h",
123     "URLExtraData.h",
124     "UserAgentStyleSheetID.h",
125     "UserAgentStyleSheetList.h",
128 EXPORTS.mozilla.dom += [
129     "CSS.h",
130     "CSSContainerRule.h",
131     "CSSCounterStyleRule.h",
132     "CSSFontFaceRule.h",
133     "CSSFontFeatureValuesRule.h",
134     "CSSFontPaletteValuesRule.h",
135     "CSSImportRule.h",
136     "CSSKeyframeRule.h",
137     "CSSKeyframesRule.h",
138     "CSSLayerBlockRule.h",
139     "CSSLayerStatementRule.h",
140     "CSSMediaRule.h",
141     "CSSMozDocumentRule.h",
142     "CSSNamespaceRule.h",
143     "CSSPageRule.h",
144     "CSSPropertyRule.h",
145     "CSSRuleList.h",
146     "CSSStyleRule.h",
147     "CSSSupportsRule.h",
148     "CSSValue.h",
149     "FontFace.h",
150     "FontFaceImpl.h",
151     "FontFaceSet.h",
152     "FontFaceSetDocumentImpl.h",
153     "FontFaceSetImpl.h",
154     "FontFaceSetIterator.h",
155     "FontFaceSetWorkerImpl.h",
156     "MediaList.h",
157     "MediaQueryList.h",
158     "PaintWorkletGlobalScope.h",
161 EXPORTS.mozilla.css += [
162     "DocumentMatchingFunction.h",
163     "ErrorReporter.h",
164     "GroupRule.h",
165     "ImageLoader.h",
166     "Loader.h",
167     "Rule.h",
168     "SheetLoadData.h",
169     "SheetParsingMode.h",
170     "StreamLoader.h",
171     "StylePreloadKind.h",
174 UNIFIED_SOURCES += [
175     "AnimationCollection.cpp",
176     "AttributeStyles.cpp",
177     "CachedInheritingStyles.cpp",
178     "ComputedStyle.cpp",
179     "CounterStyleManager.cpp",
180     "CSS.cpp",
181     "CSSContainerRule.cpp",
182     "CSSCounterStyleRule.cpp",
183     "CSSFontFaceRule.cpp",
184     "CSSFontFeatureValuesRule.cpp",
185     "CSSFontPaletteValuesRule.cpp",
186     "CSSImportRule.cpp",
187     "CSSKeyframeRule.cpp",
188     "CSSKeyframesRule.cpp",
189     "CSSLayerBlockRule.cpp",
190     "CSSLayerStatementRule.cpp",
191     "CSSMediaRule.cpp",
192     "CSSMozDocumentRule.cpp",
193     "CSSNamespaceRule.cpp",
194     "CSSPageRule.cpp",
195     "CSSPropertyRule.cpp",
196     "CSSRuleList.cpp",
197     "CSSStyleRule.cpp",
198     "CSSSupportsRule.cpp",
199     "DeclarationBlock.cpp",
200     "DocumentStyleRootIterator.cpp",
201     "ErrorReporter.cpp",
202     "FontFace.cpp",
203     "FontFaceImpl.cpp",
204     "FontFaceSet.cpp",
205     "FontFaceSetDocumentImpl.cpp",
206     "FontFaceSetImpl.cpp",
207     "FontFaceSetIterator.cpp",
208     "FontFaceSetWorkerImpl.cpp",
209     "FontLoaderUtils.cpp",
210     "FontPreloader.cpp",
211     "GeckoBindings.cpp",
212     "GlobalStyleSheetCache.cpp",
213     "GroupRule.cpp",
214     "ImageLoader.cpp",
215     "ImportScanner.cpp",
216     "LayerAnimationInfo.cpp",
217     "Loader.cpp",
218     "MappedDeclarationsBuilder.cpp",
219     "MediaList.cpp",
220     "MediaQueryList.cpp",
221     "nsAnimationManager.cpp",
222     "nsComputedDOMStyle.cpp",
223     "nsCSSAnonBoxes.cpp",
224     "nsCSSProps.cpp",
225     "nsCSSPseudoElements.cpp",
226     "nsCSSValue.cpp",
227     "nsDOMCSSAttrDeclaration.cpp",
228     "nsDOMCSSDeclaration.cpp",
229     "nsDOMCSSValueList.cpp",
230     "nsFontFaceLoader.cpp",
231     "nsFontFaceUtils.cpp",
232     "nsICSSDeclaration.cpp",
233     "nsMediaFeatures.cpp",
234     "nsROCSSPrimitiveValue.cpp",
235     "nsStyleStruct.cpp",
236     "nsStyleTransformMatrix.cpp",
237     "nsStyleUtil.cpp",
238     "nsTransitionManager.cpp",
239     "PaintWorkletGlobalScope.cpp",
240     "PaintWorkletImpl.cpp",
241     "PostTraversalTask.cpp",
242     "PreferenceSheet.cpp",
243     "PreloadedStyleSheet.cpp",
244     "PseudoStyleType.cpp",
245     "Rule.cpp",
246     "ServoCSSParser.cpp",
247     "ServoCSSRuleList.cpp",
248     "ServoElementSnapshot.cpp",
249     "ServoStyleSet.cpp",
250     "ShadowParts.cpp",
251     "SharedStyleSheetCache.cpp",
252     "StreamLoader.cpp",
253     "StyleAnimationValue.cpp",
254     "StyleColor.cpp",
255     "StyleSheet.cpp",
256     "TimelineCollection.cpp",
257     "TimelineManager.cpp",
258     "URLExtraData.cpp",
261 include("/ipc/chromium/chromium-config.mozbuild")
263 FINAL_LIBRARY = "xul"
265 LOCAL_INCLUDES += [
266     "../base",
267     "../generic",
268     "../xul",
269     "/dom/base",
270     "/dom/html",
271     "/dom/xul",
272     "/image",
275 JAR_MANIFESTS += ["jar.mn"]
277 RESOURCE_FILES += [
278     "contenteditable.css",
279     "designmode.css",
282 CONTENT_ACCESSIBLE_FILES += [
283     "ImageDocument.css",
284     "res/accessiblecaret.css",
285     "res/details.css",
286     "res/plaintext.css",
287     "res/searchfield-cancel.svg",
288     "res/viewsource.css",
289     "TopLevelImageDocument.css",
290     "TopLevelVideoDocument.css",
294 GeneratedFile(
295     "nsCSSPropertyID.h",
296     script="GenerateCSSPropertyID.py",
297     entry_point="generate",
298     inputs=["nsCSSPropertyID.h.in", "!ServoCSSPropList.py"],
300 GeneratedFile(
301     "ServoCSSPropList.h",
302     script="GenerateServoCSSPropList.py",
303     entry_point="generate_header",
304     inputs=["!ServoCSSPropList.py"],
306 GeneratedFile(
307     "ServoCSSPropList.py",
308     script="GenerateServoCSSPropList.py",
309     entry_point="generate_data",
310     inputs=["ServoCSSPropList.mako.py"],
313 if CONFIG["COMPILE_ENVIRONMENT"]:
314     EXPORTS.mozilla += [
315         "!CompositorAnimatableProperties.h",
316         "!CountedUnknownProperties.h",
317         "!ServoStyleConsts.h",
318     ]
320     GeneratedFile(
321         "CompositorAnimatableProperties.h",
322         script="GenerateCompositorAnimatableProperties.py",
323         entry_point="generate",
324         inputs=["!ServoCSSPropList.py"],
325     )
326     GeneratedFile(
327         "CountedUnknownProperties.h",
328         script="GenerateCountedUnknownProperties.py",
329         entry_point="generate",
330         inputs=[
331             "/servo/components/style/properties/counted_unknown_properties.py",
332         ],
333     )
334     GeneratedFile(
335         "nsComputedDOMStyleGenerated.inc",
336         script="GenerateComputedDOMStyleGenerated.py",
337         entry_point="generate",
338         inputs=["!ServoCSSPropList.py"],
339     )
340     GeneratedFile(
341         "nsCSSPropsGenerated.inc",
342         script="GenerateCSSPropsGenerated.py",
343         entry_point="generate",
344         inputs=["!ServoCSSPropList.py"],
345     )
346     CbindgenHeader(
347         "ServoStyleConsts.h",
348         inputs=["/servo/ports/geckolib", "/servo/components/style"],
349     )
351     CONFIGURE_SUBST_FILES += [
352         "extra-bindgen-flags",
353     ]