moz.build 2.53 KB
Newer Older
1
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2
3
4
5
6
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

7
EXPORTS += ["AccEvent.h", "nsAccessibilityService.h"]
8
9

EXPORTS.mozilla.a11y += [
10
11
12
13
14
15
16
17
18
    "AccTypes.h",
    "DocManager.h",
    "FocusManager.h",
    "IDSet.h",
    "Platform.h",
    "RelationType.h",
    "Role.h",
    "SelectionManager.h",
    "States.h",
19
20
]

21
if CONFIG["MOZ_DEBUG"]:
22
    EXPORTS.mozilla.a11y += [
23
        "Logging.h",
24
    ]
25

26
UNIFIED_SOURCES += [
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    "AccessibleOrProxy.cpp",
    "AccEvent.cpp",
    "AccGroupInfo.cpp",
    "AccIterator.cpp",
    "ARIAMap.cpp",
    "ARIAStateMap.cpp",
    "Asserts.cpp",
    "DocManager.cpp",
    "EmbeddedObjCollector.cpp",
    "EventQueue.cpp",
    "EventTree.cpp",
    "Filters.cpp",
    "FocusManager.cpp",
    "NotificationController.cpp",
    "nsAccessibilityService.cpp",
    "nsAccessiblePivot.cpp",
    "nsAccUtils.cpp",
    "nsCoreUtils.cpp",
    "nsEventShell.cpp",
    "nsTextEquivUtils.cpp",
    "Pivot.cpp",
    "SelectionManager.cpp",
    "StyleInfo.cpp",
    "TextAttrs.cpp",
    "TextRange.cpp",
    "TextUpdater.cpp",
    "TreeWalker.cpp",
54
55
]

56
if CONFIG["A11Y_LOG"]:
57
    UNIFIED_SOURCES += [
58
        "Logging.cpp",
59
    ]
60

61
LOCAL_INCLUDES += [
62
63
64
65
66
    "/accessible/generic",
    "/accessible/html",
    "/accessible/ipc",
    "/dom/base",
    "/dom/xul",
67
68
]

69
if CONFIG["OS_ARCH"] == "WINNT":
70
    LOCAL_INCLUDES += [
71
        "/accessible/ipc/win",
72
73
74
    ]
else:
    LOCAL_INCLUDES += [
75
        "/accessible/ipc/other",
76
77
78
    ]

LOCAL_INCLUDES += [
79
80
81
82
83
84
85
86
    "/accessible/xpcom",
    "/accessible/xul",
    "/dom/base",
    "/ipc/chromium/src",
    "/layout/generic",
    "/layout/style",
    "/layout/xul",
    "/layout/xul/tree/",
87
88
]

89
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
90
    LOCAL_INCLUDES += [
91
        "/accessible/atk",
92
    ]
93
94
    CXXFLAGS += CONFIG["MOZ_CAIRO_CFLAGS"]
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
95
    LOCAL_INCLUDES += [
96
97
        "/accessible/windows/ia2",
        "/accessible/windows/msaa",
98
    ]
99
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
100
    LOCAL_INCLUDES += [
101
        "/accessible/mac",
102
    ]
103
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
104
    LOCAL_INCLUDES += [
105
        "/accessible/android",
106
    ]
107
108
else:
    LOCAL_INCLUDES += [
109
        "/accessible/other",
110
    ]
111

112
FINAL_LIBRARY = "xul"
113

114
include("/ipc/chromium/chromium-config.mozbuild")
115

116
117
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
    CXXFLAGS += ["-Wno-error=shadow"]