moz.build (1559B)
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", "DOM: Notifications") 9 10 MOZ_SRC_FILES += [ 11 "MemoryNotificationDB.sys.mjs", 12 "NotificationDB.sys.mjs", 13 "NotificationStorage.sys.mjs", 14 ] 15 16 XPCOM_MANIFESTS += [ 17 "components.conf", 18 ] 19 20 XPIDL_MODULE = "dom_notification" 21 22 XPIDL_SOURCES += [ 23 "nsINotificationHandler.idl", 24 ] 25 26 EXPORTS.mozilla.dom += [ 27 "Notification.h", 28 ] 29 30 EXPORTS.mozilla.dom.notification += [ 31 "IPCUtils.h", 32 "NotificationChild.h", 33 "NotificationHandler.h", 34 "NotificationParent.h", 35 "NotificationUtils.h", 36 ] 37 38 UNIFIED_SOURCES += [ 39 "Notification.cpp", 40 "NotificationChild.cpp", 41 "NotificationHandler.cpp", 42 "NotificationParent.cpp", 43 "NotificationUtils.cpp", 44 ] 45 46 IPDL_SOURCES += [ 47 "PNotification.ipdl", 48 ] 49 50 include("/ipc/chromium/chromium-config.mozbuild") 51 52 FINAL_LIBRARY = "xul" 53 LOCAL_INCLUDES += [ 54 "/dom/base", 55 "/dom/ipc", 56 # NotificationHandler::RespondOnClick, but see bug 1966910. 57 "/js/xpconnect/src", 58 ] 59 60 BROWSER_CHROME_MANIFESTS += ["test/browser/browser.toml"] 61 XPCSHELL_TESTS_MANIFESTS += ["test/unit/xpcshell.toml"] 62 MOCHITEST_MANIFESTS += ["test/mochitest/mochitest.toml"] 63 MOCHITEST_CHROME_MANIFESTS += ["test/chrome/chrome.toml"] 64 MARIONETTE_MANIFESTS += ["test/marionette/manifest.toml"]