tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (9891B)


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