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
7with Files("**"):
8    BUG_COMPONENT = ("Core", "XUL")
9
10if CONFIG["MOZ_BUILD_APP"] == "browser":
11    DEFINES["MOZ_BREAK_XUL_OVERLAYS"] = True
12
13MOCHITEST_CHROME_MANIFESTS += ["test/chrome.ini"]
14MOCHITEST_MANIFESTS += ["test/mochitest.ini"]
15
16EXPORTS += [
17    "nsXULCommandDispatcher.h",
18    "nsXULElement.h",
19    "nsXULPrototypeDocument.h",
20    "nsXULSortService.h",
21]
22
23EXPORTS.mozilla.dom += [
24    "XULBroadcastManager.h",
25    "XULFrameElement.h",
26    "XULMenuElement.h",
27    "XULPersist.h",
28    "XULPopupElement.h",
29    "XULTextElement.h",
30    "XULTooltipElement.h",
31    "XULTreeElement.h",
32]
33
34UNIFIED_SOURCES += [
35    "nsXULCommandDispatcher.cpp",
36    "nsXULContentSink.cpp",
37    "nsXULContentUtils.cpp",
38    "nsXULElement.cpp",
39    "nsXULPopupListener.cpp",
40    "nsXULPrototypeCache.cpp",
41    "nsXULPrototypeDocument.cpp",
42    "nsXULSortService.cpp",
43    "XULBroadcastManager.cpp",
44    "XULFrameElement.cpp",
45    "XULMenuElement.cpp",
46    "XULPersist.cpp",
47    "XULPopupElement.cpp",
48    "XULTextElement.cpp",
49    "XULTooltipElement.cpp",
50    "XULTreeElement.cpp",
51]
52
53XPIDL_SOURCES += [
54    "nsIBrowserController.idl",
55    "nsIController.idl",
56    "nsIControllers.idl",
57]
58
59XPIDL_MODULE = "xul"
60
61EXPORTS.mozilla.dom += [
62    "ChromeObserver.h",
63]
64
65
66UNIFIED_SOURCES += [
67    "ChromeObserver.cpp",
68    "nsXULControllers.cpp",
69]
70
71LOCAL_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
83include("/ipc/chromium/chromium-config.mozbuild")
84
85FINAL_LIBRARY = "xul"
86