Bug 1731274 [wpt PR 30792] - Add WebIDL.idl as a dependency for webtransport idlharne...
[gecko.git] / dom / xul / moz.build
blob155fece3899bd8d0bc6813f4a7e9f74eacee38cd
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/.
7 with Files("**"):
8     BUG_COMPONENT = ("Core", "XUL")
10 if CONFIG["MOZ_BUILD_APP"] == "browser":
11     DEFINES["MOZ_BREAK_XUL_OVERLAYS"] = True
13 MOCHITEST_CHROME_MANIFESTS += ["test/chrome.ini"]
14 MOCHITEST_MANIFESTS += ["test/mochitest.ini"]
16 if CONFIG["MOZ_XUL"]:
17     EXPORTS += [
18         "nsXULCommandDispatcher.h",
19         "nsXULElement.h",
20         "nsXULPrototypeDocument.h",
21         "nsXULSortService.h",
22     ]
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     ]
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     ]
54 XPIDL_SOURCES += [
55     "nsIBrowserController.idl",
56     "nsIController.idl",
57     "nsIControllers.idl",
60 XPIDL_MODULE = "xul"
62 EXPORTS.mozilla.dom += [
63     "ChromeObserver.h",
67 UNIFIED_SOURCES += [
68     "ChromeObserver.cpp",
69     "nsXULControllers.cpp",
72 LOCAL_INCLUDES += [
73     "/docshell/base",
74     "/dom/base",
75     "/dom/html",
76     "/dom/xml",
77     "/layout/base",
78     "/layout/generic",
79     "/layout/style",
80     "/layout/xul",
81     "/layout/xul/tree",
84 include("/ipc/chromium/chromium-config.mozbuild")
86 FINAL_LIBRARY = "xul"
88 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
89     CXXFLAGS += ["-Wno-error=shadow"]