This repository has been archived by the owner on Aug 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmoz.build
83 lines (70 loc) · 1.98 KB
/
moz.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.
with Files("**"):
BUG_COMPONENT = ("Core", "XUL")
if CONFIG['MOZ_BUILD_APP'] == 'browser':
DEFINES['MOZ_BREAK_XUL_OVERLAYS'] = True
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
if CONFIG['MOZ_XUL']:
EXPORTS += [
'nsXULCommandDispatcher.h',
'nsXULElement.h',
'nsXULSortService.h',
]
EXPORTS.mozilla.dom += [
'XULBroadcastManager.h',
'XULFrameElement.h',
'XULMenuElement.h',
'XULPersist.h',
'XULPopupElement.h',
'XULTextElement.h',
'XULTooltipElement.h',
'XULTreeElement.h',
]
UNIFIED_SOURCES += [
'nsXULCommandDispatcher.cpp',
'nsXULContentSink.cpp',
'nsXULContentUtils.cpp',
'nsXULElement.cpp',
'nsXULPopupListener.cpp',
'nsXULPrototypeCache.cpp',
'nsXULPrototypeDocument.cpp',
'nsXULSortService.cpp',
'XULBroadcastManager.cpp',
'XULDocument.cpp',
'XULFrameElement.cpp',
'XULMenuElement.cpp',
'XULPersist.cpp',
'XULPopupElement.cpp',
'XULTextElement.cpp',
'XULTooltipElement.cpp',
'XULTreeElement.cpp',
]
XPIDL_SOURCES += [
'nsIController.idl',
'nsIControllers.idl',
]
XPIDL_MODULE = 'xul'
UNIFIED_SOURCES += [
'nsXULControllers.cpp',
]
LOCAL_INCLUDES += [
'/docshell/base',
'/dom/base',
'/dom/html',
'/dom/xbl',
'/dom/xml',
'/layout/base',
'/layout/generic',
'/layout/style',
'/layout/xul',
'/layout/xul/tree',
]
include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']