Source code

Revision control

Other Tools

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", "XUL")
9
10
if CONFIG['MOZ_BUILD_APP'] == 'browser':
11
DEFINES['MOZ_BREAK_XUL_OVERLAYS'] = True
12
13
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
14
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
15
16
if CONFIG['MOZ_XUL']:
17
EXPORTS += [
18
'nsXULCommandDispatcher.h',
19
'nsXULElement.h',
20
'nsXULPrototypeDocument.h',
21
'nsXULSortService.h',
22
]
23
24
EXPORTS.mozilla.dom += [
25
'XULBroadcastManager.h',
26
'XULFrameElement.h',
27
'XULMenuElement.h',
28
'XULPersist.h',
29
'XULPopupElement.h',
30
'XULTextElement.h',
31
'XULTooltipElement.h',
32
'XULTreeElement.h',
33
]
34
35
UNIFIED_SOURCES += [
36
'nsXULCommandDispatcher.cpp',
37
'nsXULContentSink.cpp',
38
'nsXULContentUtils.cpp',
39
'nsXULElement.cpp',
40
'nsXULPopupListener.cpp',
41
'nsXULPrototypeCache.cpp',
42
'nsXULPrototypeDocument.cpp',
43
'nsXULSortService.cpp',
44
'XULBroadcastManager.cpp',
45
'XULFrameElement.cpp',
46
'XULMenuElement.cpp',
47
'XULPersist.cpp',
48
'XULPopupElement.cpp',
49
'XULTextElement.cpp',
50
'XULTooltipElement.cpp',
51
'XULTreeElement.cpp',
52
]
53
54
XPIDL_SOURCES += [
55
'nsIController.idl',
56
'nsIControllers.idl',
57
]
58
59
XPIDL_MODULE = 'xul'
60
61
EXPORTS.mozilla.dom += [
62
'ChromeObserver.h',
63
]
64
65
66
UNIFIED_SOURCES += [
67
'ChromeObserver.cpp',
68
'nsXULControllers.cpp',
69
]
70
71
LOCAL_INCLUDES += [
72
'/docshell/base',
73
'/dom/base',
74
'/dom/html',
75
'/dom/xml',
76
'/layout/base',
77
'/layout/generic',
78
'/layout/style',
79
'/layout/xul',
80
'/layout/xul/tree',
81
]
82
83
include('/ipc/chromium/chromium-config.mozbuild')
84
85
FINAL_LIBRARY = 'xul'
86
87
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
88
CXXFLAGS += ['-Wno-error=shadow']