Bug 1859752 - Part 4: Update language tag mappings. r=platform-i18n-reviewers,dminor
[gecko.git] / toolkit / moz.build
blob30ec614ef1962824e6a2a0bb766e090a6efd2eeb
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 SPHINX_TREES["/toolkit"] = "docs"
9 EXTRA_COMPONENTS += [
10     "l10n-registry.manifest",
13 DIRS += [
14     "actors",
15     "components",
16     "content",
17     "crashreporter",
18     "locales",
19     "modules",
20     "mozapps/downloads",
21     "mozapps/extensions",
22     "mozapps/preferences",
23     "profile",
24     "themes",
27 if CONFIG["OS_ARCH"] == "WINNT":
28     # mingw is missing Windows toast notification definitions.
29     if CONFIG["CC_TYPE"] == "clang-cl":
30         if CONFIG["MOZ_NOTIFICATION_SERVER"]:
31             DIRS += ["mozapps/notificationserver"]
33     if CONFIG["CC_TYPE"] == "clang-cl" or CONFIG["MOZ_ARTIFACT_BUILDS"]:
34         # Default Browser Agent relies on Windows toast notifications, so should
35         # also not be built with mingw.
36         if CONFIG["MOZ_DEFAULT_BROWSER_AGENT"]:
37             DIRS += ["mozapps/defaultagent"]
39 if CONFIG["MOZ_UPDATER"] and CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
40     DIRS += ["mozapps/update"]
42 if CONFIG["MOZ_MAINTENANCE_SERVICE"] or CONFIG["MOZ_UPDATER"]:
43     DIRS += [
44         "mozapps/update/common",
45     ]
47 if CONFIG["MOZ_MAINTENANCE_SERVICE"]:
48     DIRS += ["components/maintenanceservice"]
50 DIRS += ["xre"]
52 if CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
53     DIRS += ["mozapps/handling"]
54 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
55     DIRS += ["system/unixproxy"]
56 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
57     DIRS += [
58         "system/commonproxy",
59         "system/osxproxy",
60     ]
61 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
62     DIRS += [
63         "system/commonproxy",
64         "system/windowsproxy",
65         "system/windowsDHCPClient",
66         "system/windowsPackageManager",
67     ]
68 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
69     DIRS += ["system/androidproxy"]
71 TEST_HARNESS_FILES.testing.mochitest.browser.toolkit.crashreporter.test.browser += [
72     "crashreporter/test/browser/crashreport.sjs",
75 with Files("docs/**"):
76     BUG_COMPONENT = ("Toolkit", "General")
78 with Files("locales-preview/**"):
79     BUG_COMPONENT = ("Toolkit", "General")
81 with Files("moz.*"):
82     BUG_COMPONENT = ("Firefox Build System", "General")
84 with Files("toolkit.mozbuild"):
85     BUG_COMPONENT = ("Firefox Build System", "General")
87 with Files("library/**"):
88     BUG_COMPONENT = ("Firefox Build System", "General")
90 with Files("mozapps/preferences/**"):
91     BUG_COMPONENT = ("Toolkit", "Preferences")
93 with Files("l10n-registry.manifest"):
94     BUG_COMPONENT = ("Core", "Localization")
96 GeneratedFile(
97     "content/neterror/aboutNetErrorCodes.js",
98     script="content/neterror/gen_aboutneterror_codes.py",
99     inputs=["/toolkit/locales/en-US/toolkit/neterror/nsserrors.ftl"],