tor-browser

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

moz.build (4181B)


      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("nsBidi*"):
      8     BUG_COMPONENT = ("Core", "Layout: Text and Fonts")
      9 
     10 with Files("AccessibleCaret*"):
     11     BUG_COMPONENT = ("Core", "DOM: Selection")
     12 
     13 XPIDL_SOURCES += [
     14     "nsILayoutHistoryState.idl",
     15     "nsISVGPaintContext.idl",
     16 ]
     17 
     18 if CONFIG["MOZ_DEBUG"]:
     19     UNIFIED_SOURCES += [
     20         "nsAutoLayoutPhase.cpp",
     21     ]
     22 
     23 XPIDL_MODULE = "layout_base"
     24 
     25 EXPORTS += [
     26     "AnchorPositioningUtils.h",
     27     "FrameProperties.h",
     28     "LayoutConstants.h",
     29     "LayoutLogging.h",
     30     "MobileViewportManager.h",
     31     "nsAutoLayoutPhase.h",
     32     "nsBidiPresUtils.h",
     33     "nsCaret.h",
     34     "nsCompatibility.h",
     35     "nsCounterManager.h",
     36     "nsCSSFrameConstructor.h",
     37     "nsFrameManager.h",
     38     "nsFrameTraversal.h",
     39     "nsGenConList.h",
     40     "nsIPercentBSizeObserver.h",
     41     "nsIReflowCallback.h",
     42     "nsLayoutUtils.h",
     43     "nsPresArena.h",
     44     "nsPresArenaObjectList.h",
     45     "nsPresContext.h",
     46     "nsPresContextInlines.h",
     47     "nsQuoteList.h",
     48     "nsRefreshDriver.h",
     49     "nsRefreshObservers.h",
     50     "StackArena.h",
     51     "TouchManager.h",
     52     "UniqueOrNonOwningPtr.h",
     53     "Units.h",
     54     "UnitTransforms.h",
     55     "WordMovementType.h",
     56     "ZoomConstraintsClient.h",
     57 ]
     58 
     59 EXPORTS.mozilla += [
     60     "AccessibleCaretEventHub.h",
     61     "ArenaObjectID.h",
     62     "Baseline.h",
     63     "CaretAssociationHint.h",
     64     "ContainStyleScopeManager.h",
     65     "DepthOrderedFrameList.h",
     66     "DisplayPortUtils.h",
     67     "GeckoMVMContext.h",
     68     "GeometryUtils.h",
     69     "LayoutStructs.h",
     70     "MediaEmulationData.h",
     71     "MotionPathUtils.h",
     72     "MVMContext.h",
     73     "OverflowChangedTracker.h",
     74     "PositionedEventTargeting.h",
     75     "PresShell.h",
     76     "PresShellForwards.h",
     77     "PresShellInlines.h",
     78     "PresShellWidgetListener.h",
     79     "RelativeTo.h",
     80     "RenderingPhase.h",
     81     "ScrollStyles.h",
     82     "ScrollTypes.h",
     83     "ShapeUtils.h",
     84     "StaticPresData.h",
     85     "SurfaceFromElementResult.h",
     86     "ViewportUtils.h",
     87 ]
     88 
     89 UNIFIED_SOURCES += [
     90     "AccessibleCaret.cpp",
     91     "AccessibleCaretEventHub.cpp",
     92     "AccessibleCaretManager.cpp",
     93     "AnchorPositioningUtils.cpp",
     94     "Baseline.cpp",
     95     "CaretAssociationHint.cpp",
     96     "ContainStyleScopeManager.cpp",
     97     "DepthOrderedFrameList.cpp",
     98     "DisplayPortUtils.cpp",
     99     "GeckoMVMContext.cpp",
    100     "GeometryUtils.cpp",
    101     "LayoutLogging.cpp",
    102     "MobileViewportManager.cpp",
    103     "MotionPathUtils.cpp",
    104     "nsBidiPresUtils.cpp",
    105     "nsCaret.cpp",
    106     "nsCounterManager.cpp",
    107     "nsCSSColorUtils.cpp",
    108     "nsCSSFrameConstructor.cpp",
    109     "nsDocumentViewer.cpp",
    110     "nsFrameManager.cpp",
    111     "nsFrameTraversal.cpp",
    112     "nsGenConList.cpp",
    113     "nsLayoutDebugger.cpp",
    114     "nsLayoutHistoryState.cpp",
    115     "nsLayoutUtils.cpp",
    116     "nsPresArena.cpp",
    117     "nsPresContext.cpp",
    118     "nsQuoteList.cpp",
    119     "nsRefreshObservers.cpp",
    120     "PositionedEventTargeting.cpp",
    121     "PresShell.cpp",
    122     "PresShellWidgetListener.cpp",
    123     "ScrollStyles.cpp",
    124     "ShapeUtils.cpp",
    125     "StackArena.cpp",
    126     "StaticPresData.cpp",
    127     "TouchManager.cpp",
    128     "ViewportUtils.cpp",
    129     "ZoomConstraintsClient.cpp",
    130 ]
    131 
    132 # nsRefreshDriver.cpp needs to be built separately because of name clashes in the OS X headers
    133 SOURCES += [
    134     "nsRefreshDriver.cpp",
    135 ]
    136 
    137 TEST_DIRS += ["gtest"]
    138 
    139 include("/ipc/chromium/chromium-config.mozbuild")
    140 
    141 LOCAL_INCLUDES += [
    142     "../forms",
    143     "../generic",
    144     "../mathml",
    145     "../painting",
    146     "../printing",
    147     "../style",
    148     "../tables",
    149     "../xul",
    150     "../xul/tree/",
    151     "/docshell/base",
    152     "/dom/base",
    153     "/dom/html",
    154     "/dom/svg",
    155     "/dom/xul",
    156 ]
    157 
    158 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
    159     LOCAL_INCLUDES += [
    160         "/widget/android",
    161     ]
    162 
    163 IPDL_SOURCES += [
    164     "PresState.ipdlh",
    165 ]
    166 
    167 FINAL_LIBRARY = "xul"
    168 
    169 BROWSER_CHROME_MANIFESTS += ["tests/browser.toml"]
    170 MARIONETTE_MANIFESTS += ["tests/marionette/manifest.toml"]
    171 MOCHITEST_MANIFESTS += ["tests/mochitest.toml"]
    172 MOCHITEST_CHROME_MANIFESTS += ["tests/chrome/chrome.toml"]