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 include("../components/telemetry/telemetry-constants.mozbuild")
10 BUG_COMPONENT = ("Toolkit", "General")
12 with Files("docs/**"):
13 BUG_COMPONENT = ("Toolkit", "Async Tooling")
15 with Files("subprocess/**"):
16 BUG_COMPONENT = ("Toolkit", "Async Tooling")
18 with Files("tests/browser/*AsyncPrefs*"):
19 BUG_COMPONENT = ("Core", "Security: Process Sandboxing")
21 with Files("tests/browser/*Finder*"):
22 BUG_COMPONENT = ("Toolkit", "Find Toolbar")
24 with Files("tests/xpcshell/test_Color.js"):
25 BUG_COMPONENT = ("Toolkit", "Find Toolbar")
27 with Files("tests/xpcshell/test_DeferredTask.js"):
28 BUG_COMPONENT = ("Toolkit", "Async Tooling")
30 with Files("tests/xpcshell/test_FinderIterator.js"):
31 BUG_COMPONENT = ("Toolkit", "Find Toolbar")
33 with Files("tests/xpcshell/test_Integration.js"):
34 BUG_COMPONENT = ("Toolkit", "Async Tooling")
36 with Files("tests/xpcshell/test_JSONFile.js"):
37 BUG_COMPONENT = ("Toolkit", "Form Manager")
39 with Files("tests/xpcshell/test_Match*.js"):
40 BUG_COMPONENT = ("WebExtensions", "General")
42 with Files("tests/xpcshell/test_NewTabUtils.js"):
43 BUG_COMPONENT = ("Firefox", "New Tab Page")
45 with Files("tests/xpcshell/test_UpdateUtils*.js"):
46 BUG_COMPONENT = ("Toolkit", "Application Update")
48 with Files("AsyncPrefs.sys.mjs"):
49 BUG_COMPONENT = ("Core", "Security: Process Sandboxing")
51 with Files("AsanReporter.sys.mjs"):
52 BUG_COMPONENT = ("Firefox Build System", "General")
54 with Files("Color.sys.mjs"):
55 BUG_COMPONENT = ("Toolkit", "Find Toolbar")
57 with Files("Console.sys.mjs"):
58 BUG_COMPONENT = ("DevTools", "Console")
60 with Files("DateTimePicker*.sys.mjs"):
61 BUG_COMPONENT = ("Core", "Layout: Form Controls")
63 with Files("DeferredTask.sys.mjs"):
64 BUG_COMPONENT = ("Toolkit", "Async Tooling")
66 with Files("E10SUtils.sys.mjs"):
67 BUG_COMPONENT = ("Core", "Security: Process Sandboxing")
69 with Files("Finder*.sys.mjs"):
70 BUG_COMPONENT = ("Toolkit", "Find Toolbar")
72 with Files("FormLikeFactory.sys.mjs"):
73 BUG_COMPONENT = ("Toolkit", "Password Manager")
75 with Files("IndexedDB.sys.mjs"):
76 BUG_COMPONENT = ("Toolkit", "Async Tooling")
78 with Files("InlineSpellChecker*.sys.mjs"):
79 BUG_COMPONENT = ("Core", "Spelling checker")
81 with Files("Integration.sys.mjs"):
82 BUG_COMPONENT = ("Toolkit", "Async Tooling")
84 with Files("JSONFile.sys.mjs"):
85 BUG_COMPONENT = ("Toolkit", "Form Manager")
87 with Files("LightweightThemeConsumer.sys.mjs"):
88 BUG_COMPONENT = ("Firefox", "Toolbars and Customization")
90 with Files("NLP.sys.mjs"):
91 BUG_COMPONENT = ("Toolkit", "Find Toolbar")
93 with Files("NewTabUtils.sys.mjs"):
94 BUG_COMPONENT = ("Firefox", "Tabbed Browser")
96 with Files("ObjectUtils.sys.mjs"):
97 BUG_COMPONENT = ("Toolkit", "Telemetry")
99 with Files("PermissionsUtils.sys.mjs"):
100 BUG_COMPONENT = ("Toolkit", "Add-ons Manager")
102 with Files("PopupNotifications.sys.mjs"):
103 BUG_COMPONENT = ("Toolkit", "PopupNotifications and Notification Bars")
105 with Files("PrivateBrowsingUtils.sys.mjs"):
106 BUG_COMPONENT = ("Firefox", "Private Browsing")
108 with Files("Promise*.sys.mjs"):
109 BUG_COMPONENT = ("Toolkit", "Async Tooling")
111 with Files("ResponsivenessMonitor.sys.mjs"):
112 BUG_COMPONENT = ("Firefox", "Migration")
114 with Files("ShortcutUtils.sys.mjs"):
115 BUG_COMPONENT = ("Firefox", "Toolbars and Customization")
117 with Files("Sqlite.sys.mjs"):
118 BUG_COMPONENT = ("Core", "SQLite and Embedded Database Bindings")
120 with Files("SubDialog.sys.mjs"):
121 BUG_COMPONENT = ("Toolkit", "Content Prompts")
123 with Files("UpdateUtils.sys.mjs"):
124 BUG_COMPONENT = ("Toolkit", "Application Update")
126 with Files("WindowsLaunchOnLogin.sys.mjs"):
127 BUG_COMPONENT = ("Toolkit", "General")
129 with Files("WindowsRegistry.sys.mjs"):
130 BUG_COMPONENT = ("Toolkit", "General")
133 XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell/xpcshell.toml"]
134 BROWSER_CHROME_MANIFESTS += ["tests/browser/browser.toml"]
135 MOCHITEST_CHROME_MANIFESTS += ["tests/chrome/chrome.toml"]
136 MARIONETTE_MANIFESTS += ["tests/marionette/manifest.toml"]
138 TESTING_JS_MODULES += [
139 "tests/modules/MockDocument.sys.mjs",
140 "tests/modules/OSKeyStoreTestUtils.sys.mjs",
141 "tests/modules/PromiseTestUtils.sys.mjs",
142 "tests/xpcshell/RegionTestUtils.sys.mjs",
143 "tests/xpcshell/TestIntegration.sys.mjs",
146 SPHINX_TREES["toolkit_modules"] = "docs"
148 with Files("docs/**"):
149 SCHEDULES.exclusive = ["docs"]
151 EXTRA_JS_MODULES += [
152 "AboutPagesUtils.sys.mjs",
153 "ActorManagerParent.sys.mjs",
154 "AppMenuNotifications.sys.mjs",
155 "AsyncPrefs.sys.mjs",
156 "BinarySearch.sys.mjs",
157 "BrowserTelemetryUtils.sys.mjs",
158 "BrowserUtils.sys.mjs",
159 "CanonicalJSON.sys.mjs",
163 "ContentDOMReference.sys.mjs",
164 "CreditCard.sys.mjs",
165 "DateTimePickerPanel.sys.mjs",
166 "DeferredTask.sys.mjs",
168 "EventEmitter.sys.mjs",
170 "FindBarContent.sys.mjs",
172 "FinderHighlighter.sys.mjs",
173 "FinderIterator.sys.mjs",
174 "FinderParent.sys.mjs",
175 "FinderSound.sys.mjs",
176 "FirstStartup.sys.mjs",
177 "FormLikeFactory.sys.mjs",
179 "HiddenFrame.sys.mjs",
180 "IgnoreLists.sys.mjs",
182 "InlineSpellChecker.sys.mjs",
183 "InlineSpellCheckerContent.sys.mjs",
184 "Integration.sys.mjs",
186 "JsonSchema.sys.mjs",
187 "KeywordUtils.sys.mjs",
188 "LayoutUtils.sys.mjs",
190 "LogManager.sys.mjs",
191 "NewTabUtils.sys.mjs",
193 "ObjectUtils.sys.mjs",
194 "OsEnvironment.sys.mjs",
195 "OSKeyStore.sys.mjs",
196 "PermissionsUtils.sys.mjs",
197 "PopupNotifications.sys.mjs",
198 "Preferences.sys.mjs",
199 "PrivateBrowsingUtils.sys.mjs",
200 "ProcessType.sys.mjs",
201 "ProfileAge.sys.mjs",
203 "RemotePageAccessManager.sys.mjs",
204 "ResetProfile.sys.mjs",
205 "ResponsivenessMonitor.sys.mjs",
206 "SelectionUtils.sys.mjs",
207 "ServiceRequest.sys.mjs",
208 "ShortcutUtils.sys.mjs",
212 "Troubleshoot.sys.mjs",
213 "UpdateUtils.sys.mjs",
214 "WebChannel.sys.mjs",
217 if CONFIG["MOZ_ASAN_REPORTER"]:
218 EXTRA_JS_MODULES += [
219 "AsanReporter.sys.mjs",
222 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
223 EXTRA_JS_MODULES += [
224 "PropertyListUtils.sys.mjs",
227 EXTRA_JS_MODULES.third_party.jsesc += ["third_party/jsesc/jsesc.mjs"]
228 EXTRA_JS_MODULES.sessionstore += [
229 "sessionstore/PrivacyFilter.sys.mjs",
230 "sessionstore/PrivacyLevel.sys.mjs",
231 "sessionstore/SessionHistory.sys.mjs",
232 "sessionstore/SessionStoreHelper.sys.mjs",
235 EXTRA_JS_MODULES.third_party.fathom += ["third_party/fathom/fathom.mjs"]
237 if CONFIG["MOZ_WIDGET_TOOLKIT"] in ("windows", "gtk"):
238 DEFINES["MENUBAR_CAN_AUTOHIDE_BOOL"] = "true"
240 DEFINES["MENUBAR_CAN_AUTOHIDE_BOOL"] = "false"
242 if CONFIG["MOZ_WIDGET_TOOLKIT"] in ("windows", "gtk", "cocoa"):
243 DEFINES["HAVE_SHELL_SERVICE_BOOL"] = "true"
245 DEFINES["HAVE_SHELL_SERVICE_BOOL"] = "false"
247 EXTRA_PP_JS_MODULES += [
248 "AppConstants.sys.mjs",
251 if "Android" != CONFIG["OS_TARGET"]:
252 EXTRA_JS_MODULES += [
253 "ClipboardContextMenu.sys.mjs",
254 "GMPExtractor.worker.js",
255 "GMPInstallManager.sys.mjs",
257 "LightweightThemeConsumer.sys.mjs",
264 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
265 EXTRA_JS_MODULES += [
266 "WindowsLaunchOnLogin.sys.mjs",
267 "WindowsRegistry.sys.mjs",
271 "ANDROID_PACKAGE_NAME",
274 "MOZ_APP_DISPLAYNAME",
276 "MOZ_APP_VERSION_DISPLAY",
277 "MOZ_BING_API_CLIENTID",
279 "MOZ_GOOGLE_LOCATION_SERVICE_API_KEY",
280 "MOZ_GOOGLE_SAFEBROWSING_API_KEY",
282 "MOZ_MACBUNDLE_NAME",
283 "MOZ_MOZILLA_API_KEY",
284 "MOZ_WIDGET_TOOLKIT",
290 DEFINES[var] = CONFIG[var] or ""
293 "MOZ_ALLOW_ADDON_SIDELOAD",
296 "MOZ_SYSTEM_POLICIES",
297 "MOZ_UNSIGNED_APP_SCOPE",
298 "MOZ_UNSIGNED_SYSTEM_SCOPE",
300 "MOZ_WEBEXT_WEBIDL_ENABLED",
307 "ENABLE_EXPLICIT_RESOURCE_MANAGEMENT",
309 "EARLY_BETA_OR_EARLIER",
313 "MOZ_OFFICIAL_BRANDING",
316 "MOZ_DATA_REPORTING",
323 "MOZ_MAINTENANCE_SERVICE",
324 "MOZ_BACKGROUNDTASKS",
333 "MOZ_REQUIRE_SIGNING",
334 "MOZ_UNSIGNED_APP_SCOPE",
335 "MOZ_UNSIGNED_SYSTEM_SCOPE",
336 "MOZ_ALLOW_ADDON_SIDELOAD",
337 "MOZ_WEBEXT_WEBIDL_ENABLED",
338 "MOZ_GECKOVIEW_HISTORY",
339 "MOZ_GECKO_PROFILER",
344 "MOZ_SYSTEM_POLICIES",
345 "MOZ_SELECTABLE_PROFILES",
347 DEFINES[f"{var}_BOOL"] = "true" if CONFIG[var] else "false"
349 JAR_MANIFESTS += ["jar.mn"]
351 DEFINES["TOPOBJDIR"] = TOPOBJDIR
354 "nsIBrowserWindowTracker.idl",
358 XPIDL_MODULE = "toolkit_modules"