Bug 1857841 - pt 3. Add a new page kind named "fresh" r=glandium
[gecko.git] / dom / system / moz.build
blobe702d441837f85b3d355efb2208937cae11d1029
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 # This picks up *hapticfeedback* which is graveyard
8 with Files("**"):
9     BUG_COMPONENT = ("Core", "DOM: Core & HTML")
11 with Files("*ocationProvider*"):
12     BUG_COMPONENT = ("Core", "DOM: Geolocation")
14 with Files("windows/*LocationProvider*"):
15     BUG_COMPONENT = ("Core", "DOM: Geolocation")
17 with Files("IOUtils*"):
18     BUG_COMPONENT = ("Toolkit", "IOUtils and PathUtils")
20 with Files("PathUtils*"):
21     BUG_COMPONENT = ("Toolkit", "IOUtils and PathUtils")
23 with Files("mac/*LocationProvider*"):
24     BUG_COMPONENT = ("Core", "DOM: Geolocation")
26 with Files("mac/*OSPermissionRequest*"):
27     BUG_COMPONENT = ("Firefox", "Site Permissions")
29 with Files("linux/*LocationProvider*"):
30     BUG_COMPONENT = ("Core", "DOM: Geolocation")
32 with Files("android/*LocationProvider*"):
33     BUG_COMPONENT = ("Core", "DOM: Geolocation")
35 with Files("tests/chrome.toml"):
36     BUG_COMPONENT = ("Toolkit", "IOUtils and PathUtils")
38 with Files("tests/*constants*"):
39     BUG_COMPONENT = ("Toolkit", "IOUtils and PathUtils")
41 with Files("tests/ioutils/**"):
42     BUG_COMPONENT = ("Toolkit", "IOUtils and PathUtils")
44 with Files("tests/mochitest.toml"):
45     BUG_COMPONENT = ("Core", "DOM: Device Interfaces")
47 with Files("test/*pathutils*"):
48     BUG_COMPONENT = ("Toolkit", "IOUtils and PathUtils")
50 with Files("tests/*1197901*"):
51     BUG_COMPONENT = ("Core", "DOM: Device Interfaces")
54 toolkit = CONFIG["MOZ_WIDGET_TOOLKIT"]
56 if toolkit == "windows":
57     DIRS += ["windows"]
58 elif toolkit == "cocoa":
59     DIRS += ["mac"]
60 elif toolkit == "android":
61     DIRS += ["android"]
62 elif toolkit == "gtk":
63     DIRS += ["linux"]
65 if toolkit != "cocoa":
66     EXPORTS += [
67         "nsOSPermissionRequest.h",
68     ]
70 XPIDL_SOURCES += [
71     "nsIOSPermissionRequest.idl",
74 XPIDL_MODULE = "dom_system"
76 EXPORTS += [
77     "nsDeviceSensors.h",
78     "nsOSPermissionRequestBase.h",
81 EXPORTS.mozilla.dom += [
82     "IOUtils.h",
83     "PathUtils.h",
86 UNIFIED_SOURCES += [
87     "IOUtils.cpp",
88     "nsDeviceSensors.cpp",
89     "nsOSPermissionRequestBase.cpp",
90     "PathUtils.cpp",
93 EXTRA_JS_MODULES += [
94     "NetworkGeolocationProvider.sys.mjs",
97 XPCOM_MANIFESTS += [
98     "components.conf",
101 include("/ipc/chromium/chromium-config.mozbuild")
103 FINAL_LIBRARY = "xul"
104 # We fire the nsDOMDeviceAcceleration
105 LOCAL_INCLUDES += [
106     "/dom/base",
107     "/dom/bindings",
108     "/js/xpconnect/loader",
109     "/xpcom/base",
112 MOCHITEST_CHROME_MANIFESTS += ["tests/chrome.toml", "tests/ioutils/chrome.toml"]
113 MOCHITEST_MANIFESTS += ["tests/mochitest.toml"]