tor-browser

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

moz.build (4518B)


      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", "DOM: UI Events & Focus Handling")
      9 
     10 with Files("Event*"):
     11     BUG_COMPONENT = ("Core", "DOM: Events")
     12 
     13 BROWSER_CHROME_MANIFESTS += [
     14     "test/browser.toml",
     15     "test/clipboard/browser.toml",
     16 ]
     17 
     18 MOCHITEST_MANIFESTS += [
     19     "test/clipboard/mochitest.toml",
     20     "test/mochitest.toml",
     21     "test/pointerevents/mochitest.toml",
     22 ]
     23 
     24 MOCHITEST_CHROME_MANIFESTS += [
     25     "test/chrome.toml",
     26     "test/clipboard/chrome.toml",
     27 ]
     28 
     29 TEST_DIRS += ["test/gtest"]
     30 
     31 XPIDL_SOURCES += [
     32     "nsIEventListenerService.idl",
     33 ]
     34 
     35 XPIDL_MODULE = "content_events"
     36 
     37 EXPORTS.mozilla += [
     38     "AsyncEventDispatcher.h",
     39     "DOMEventTargetHelper.h",
     40     "EventDispatcher.h",
     41     "EventListenerManager.h",
     42     "EventNameList.h",
     43     "EventStateManager.h",
     44     "GlobalKeyListener.h",
     45     "IMEContentObserver.h",
     46     "IMEStateManager.h",
     47     "InputEventOptions.h",
     48     "InputTypeList.h",
     49     "JSEventHandler.h",
     50     "KeyEventHandler.h",
     51     "KeyNameList.h",
     52     "PendingFullscreenEvent.h",
     53     "PhysicalKeyCodeNameList.h",
     54     "ShortcutKeys.h",
     55     "TextComposition.h",
     56     "VirtualKeyCodeList.h",
     57     "WheelHandlingHelper.h",
     58 ]
     59 
     60 EXPORTS.mozilla.dom += [
     61     "AnimationEvent.h",
     62     "BeforeUnloadEvent.h",
     63     "Clipboard.h",
     64     "ClipboardEvent.h",
     65     "ClipboardItem.h",
     66     "CommandEvent.h",
     67     "CompositionEvent.h",
     68     "ConstructibleEventTarget.h",
     69     "CustomEvent.h",
     70     "DataTransfer.h",
     71     "DataTransferItem.h",
     72     "DataTransferItemList.h",
     73     "DeviceMotionEvent.h",
     74     "DragEvent.h",
     75     "Event.h",
     76     "EventTarget.h",
     77     "FocusEvent.h",
     78     "ImageCaptureError.h",
     79     "InputEvent.h",
     80     "KeyboardEvent.h",
     81     "MessageEvent.h",
     82     "MouseEvent.h",
     83     "MouseScrollEvent.h",
     84     "NavigateEvent.h",
     85     "NotifyPaintEvent.h",
     86     "PaintRequest.h",
     87     "PointerEvent.h",
     88     "PointerEventHandler.h",
     89     "RemoteDragStartData.h",
     90     "ScrollAreaEvent.h",
     91     "SimpleGestureEvent.h",
     92     "StorageEvent.h",
     93     "TextClause.h",
     94     "TextEvent.h",
     95     "ToggleEvent.h",
     96     "Touch.h",
     97     "TouchEvent.h",
     98     "TransitionEvent.h",
     99     "UIEvent.h",
    100     "WheelEvent.h",
    101     "XULCommandEvent.h",
    102 ]
    103 
    104 if CONFIG["MOZ_WEBSPEECH"]:
    105     EXPORTS.mozilla.dom += ["SpeechRecognitionError.h"]
    106 
    107 UNIFIED_SOURCES += [
    108     "AnimationEvent.cpp",
    109     "AsyncEventDispatcher.cpp",
    110     "BeforeUnloadEvent.cpp",
    111     "Clipboard.cpp",
    112     "ClipboardEvent.cpp",
    113     "ClipboardItem.cpp",
    114     "CommandEvent.cpp",
    115     "CompositionEvent.cpp",
    116     "ConstructibleEventTarget.cpp",
    117     "ContentEventHandler.cpp",
    118     "CustomEvent.cpp",
    119     "DataTransfer.cpp",
    120     "DataTransferItem.cpp",
    121     "DataTransferItemList.cpp",
    122     "DeviceMotionEvent.cpp",
    123     "DOMEventTargetHelper.cpp",
    124     "DragEvent.cpp",
    125     "Event.cpp",
    126     "EventDispatcher.cpp",
    127     "EventListenerManager.cpp",
    128     "EventListenerService.cpp",
    129     "EventTarget.cpp",
    130     "FocusEvent.cpp",
    131     "GlobalKeyListener.cpp",
    132     "ImageCaptureError.cpp",
    133     "IMEContentObserver.cpp",
    134     "IMEStateManager.cpp",
    135     "InputEvent.cpp",
    136     "JSEventHandler.cpp",
    137     "KeyboardEvent.cpp",
    138     "KeyEventHandler.cpp",
    139     "MessageEvent.cpp",
    140     "MouseEvent.cpp",
    141     "MouseScrollEvent.cpp",
    142     "NavigateEvent.cpp",
    143     "NotifyPaintEvent.cpp",
    144     "PaintRequest.cpp",
    145     "PointerEvent.cpp",
    146     "PointerEventHandler.cpp",
    147     "RemoteDragStartData.cpp",
    148     "ScrollAreaEvent.cpp",
    149     "ShortcutKeyDefinitions.cpp",
    150     "ShortcutKeys.cpp",
    151     "SimpleGestureEvent.cpp",
    152     "StorageEvent.cpp",
    153     "TextClause.cpp",
    154     "TextComposition.cpp",
    155     "TextEvent.cpp",
    156     "ToggleEvent.cpp",
    157     "Touch.cpp",
    158     "TouchEvent.cpp",
    159     "TransitionEvent.cpp",
    160     "UIEvent.cpp",
    161     "WheelEvent.cpp",
    162     "WheelHandlingHelper.cpp",
    163     "XULCommandEvent.cpp",
    164 ]
    165 
    166 # nsEventStateManager.cpp should be built separately because of Mac OS X headers.
    167 SOURCES += [
    168     "EventStateManager.cpp",
    169 ]
    170 
    171 if CONFIG["MOZ_WEBSPEECH"]:
    172     UNIFIED_SOURCES += ["SpeechRecognitionError.cpp"]
    173 
    174 include("/ipc/chromium/chromium-config.mozbuild")
    175 
    176 FINAL_LIBRARY = "xul"
    177 LOCAL_INCLUDES += [
    178     "/docshell/base",
    179     "/dom/base",
    180     "/dom/html",
    181     "/dom/storage",
    182     "/dom/xml",
    183     "/dom/xul",
    184     "/js/xpconnect/wrappers",
    185     "/layout/forms",
    186     "/layout/generic",
    187     "/layout/xul",
    188     "/layout/xul/tree/",
    189 ]