moz.build 1.81 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.mozilla.a11y += [
8
9
10
11
    "Accessible.h",
    "DocAccessible.h",
    "HyperTextAccessible.h",
    "OuterDocAccessible.h",
12
13
]

14
UNIFIED_SOURCES += [
15
16
17
18
19
20
21
22
23
24
25
26
27
    "Accessible.cpp",
    "ApplicationAccessible.cpp",
    "ARIAGridAccessible.cpp",
    "BaseAccessibles.cpp",
    "DocAccessible.cpp",
    "FormControlAccessible.cpp",
    "HyperTextAccessible.cpp",
    "ImageAccessible.cpp",
    "OuterDocAccessible.cpp",
    "RootAccessible.cpp",
    "TableAccessible.cpp",
    "TableCellAccessible.cpp",
    "TextLeafAccessible.cpp",
28
29
]

30
LOCAL_INCLUDES += [
31
32
33
34
35
36
37
38
    "/accessible/base",
    "/accessible/html",
    "/accessible/xpcom",
    "/accessible/xul",
    "/dom/base",
    "/dom/xul",
    "/layout/generic",
    "/layout/xul",
39
40
]

41
if CONFIG["OS_ARCH"] == "WINNT":
42
    LOCAL_INCLUDES += [
43
        "/accessible/ipc/win",
44
45
46
    ]
else:
    LOCAL_INCLUDES += [
47
        "/accessible/ipc/other",
48
49
    ]

50
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
51
    LOCAL_INCLUDES += [
52
        "/accessible/atk",
53
    ]
54
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
55
    LOCAL_INCLUDES += [
56
57
        "/accessible/windows/ia2",
        "/accessible/windows/msaa",
58
    ]
59
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
60
    LOCAL_INCLUDES += [
61
        "/accessible/mac",
62
    ]
63
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
64
    LOCAL_INCLUDES += [
65
        "/accessible/android",
66
    ]
67
68
else:
    LOCAL_INCLUDES += [
69
        "/accessible/other",
70
    ]
71

72
FINAL_LIBRARY = "xul"
73

74
include("/ipc/chromium/chromium-config.mozbuild")
75

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