moz.build (2148B)
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.toml"] 14 MOCHITEST_MANIFESTS += ["test/mochitest.toml"] 15 16 EXPORTS += [ 17 "nsXULCommandDispatcher.h", 18 "nsXULElement.h", 19 "nsXULPrototypeDocument.h", 20 "nsXULSortService.h", 21 ] 22 23 EXPORTS.mozilla.dom += [ 24 "XULBroadcastManager.h", 25 "XULButtonElement.h", 26 "XULFrameElement.h", 27 "XULMenuBarElement.h", 28 "XULMenuElement.h", 29 "XULMenuParentElement.h", 30 "XULPersist.h", 31 "XULPopupElement.h", 32 "XULResizerElement.h", 33 "XULTextElement.h", 34 "XULTooltipElement.h", 35 "XULTreeElement.h", 36 ] 37 38 UNIFIED_SOURCES += [ 39 "MenuBarListener.cpp", 40 "nsXULCommandDispatcher.cpp", 41 "nsXULContentSink.cpp", 42 "nsXULContentUtils.cpp", 43 "nsXULElement.cpp", 44 "nsXULPopupListener.cpp", 45 "nsXULPrototypeCache.cpp", 46 "nsXULPrototypeDocument.cpp", 47 "nsXULSortService.cpp", 48 "XULBroadcastManager.cpp", 49 "XULButtonElement.cpp", 50 "XULFrameElement.cpp", 51 "XULMenuBarElement.cpp", 52 "XULMenuElement.cpp", 53 "XULMenuParentElement.cpp", 54 "XULPersist.cpp", 55 "XULPopupElement.cpp", 56 "XULResizerElement.cpp", 57 "XULTextElement.cpp", 58 "XULTooltipElement.cpp", 59 "XULTreeElement.cpp", 60 ] 61 62 XPIDL_SOURCES += [ 63 "nsIBrowserController.idl", 64 "nsIController.idl", 65 "nsIControllers.idl", 66 ] 67 68 XPIDL_MODULE = "xul" 69 70 EXPORTS.mozilla.dom += [ 71 "ChromeObserver.h", 72 ] 73 74 75 UNIFIED_SOURCES += [ 76 "ChromeObserver.cpp", 77 "nsXULControllers.cpp", 78 ] 79 80 LOCAL_INCLUDES += [ 81 "/docshell/base", 82 "/dom/base", 83 "/dom/html", 84 "/dom/xml", 85 "/layout/base", 86 "/layout/generic", 87 "/layout/style", 88 "/layout/xul", 89 "/layout/xul/tree", 90 ] 91 92 include("/ipc/chromium/chromium-config.mozbuild") 93 94 FINAL_LIBRARY = "xul"