moz.build 2.54 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
8
9
10
EXPORTS += [
    'AccEvent.h',
    'nsAccessibilityService.h'
]
11
12

EXPORTS.mozilla.a11y += [
13
14
15
16
17
18
19
20
21
    'AccTypes.h',
    'DocManager.h',
    'FocusManager.h',
    'IDSet.h',
    'Platform.h',
    'RelationType.h',
    'Role.h',
    'SelectionManager.h',
    'States.h',
22
23
]

24
if CONFIG['MOZ_DEBUG']:
25
    EXPORTS.mozilla.a11y += [
26
        'Logging.h',
27
    ]
28

29
UNIFIED_SOURCES += [
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
    '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',
57
58
]

59
if CONFIG['A11Y_LOG']:
60
    UNIFIED_SOURCES += [
61
        'Logging.cpp',
62
    ]
63

64
LOCAL_INCLUDES += [
65
66
67
68
69
    '/accessible/generic',
    '/accessible/html',
    '/accessible/ipc',
    '/dom/base',
    '/dom/xul',
70
71
]

72
if CONFIG['OS_ARCH'] == 'WINNT':
73
    LOCAL_INCLUDES += [
74
        '/accessible/ipc/win',
75
76
77
    ]
else:
    LOCAL_INCLUDES += [
78
        '/accessible/ipc/other',
79
80
81
    ]

LOCAL_INCLUDES += [
82
83
84
85
86
87
88
89
    '/accessible/xpcom',
    '/accessible/xul',
    '/dom/base',
    '/ipc/chromium/src',
    '/layout/generic',
    '/layout/style',
    '/layout/xul',
    '/layout/xul/tree/',
90
91
]

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

115
FINAL_LIBRARY = 'xul'
116

117
include('/ipc/chromium/chromium-config.mozbuild')
118

119
120
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
    CXXFLAGS += ['-Wno-error=shadow']