2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:19:09 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2019-06-07 07:26:42 +00:00
|
|
|
SPHINX_TREES["/toolkit"] = "docs"
|
|
|
|
|
2019-06-08 04:37:31 +00:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
"l10n-registry.manifest",
|
|
|
|
]
|
|
|
|
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += [
|
2018-07-30 04:27:32 +00:00
|
|
|
"actors",
|
2013-02-25 21:19:09 +00:00
|
|
|
"components",
|
|
|
|
"content",
|
2017-11-14 13:49:33 +00:00
|
|
|
"crashreporter",
|
2013-02-25 21:19:09 +00:00
|
|
|
"locales",
|
|
|
|
"modules",
|
|
|
|
"mozapps/downloads",
|
|
|
|
"mozapps/extensions",
|
|
|
|
"mozapps/preferences",
|
|
|
|
"profile",
|
|
|
|
"themes",
|
|
|
|
]
|
|
|
|
|
2022-08-02 19:40:39 +00:00
|
|
|
if CONFIG["OS_ARCH"] == "WINNT":
|
2023-09-05 20:55:25 +00:00
|
|
|
# mingw is missing Windows toast notification definitions.
|
|
|
|
if CONFIG["CC_TYPE"] == "clang-cl":
|
|
|
|
if CONFIG["MOZ_NOTIFICATION_SERVER"]:
|
|
|
|
DIRS += ["mozapps/notificationserver"]
|
2022-08-18 16:31:09 +00:00
|
|
|
|
2023-09-20 21:43:33 +00:00
|
|
|
if CONFIG["CC_TYPE"] == "clang-cl" or CONFIG["MOZ_ARTIFACT_BUILDS"]:
|
2023-09-05 20:55:25 +00:00
|
|
|
# Default Browser Agent relies on Windows toast notifications, so should
|
|
|
|
# also not be built with mingw.
|
|
|
|
if CONFIG["MOZ_DEFAULT_BROWSER_AGENT"]:
|
|
|
|
DIRS += ["mozapps/defaultagent"]
|
2020-03-16 20:16:25 +00:00
|
|
|
|
2015-04-15 00:00:02 +00:00
|
|
|
if CONFIG["MOZ_UPDATER"] and CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
|
|
|
|
DIRS += ["mozapps/update"]
|
2013-02-25 21:19:09 +00:00
|
|
|
|
2017-12-06 01:47:15 +00:00
|
|
|
if CONFIG["MOZ_MAINTENANCE_SERVICE"] or CONFIG["MOZ_UPDATER"]:
|
2015-04-15 00:00:02 +00:00
|
|
|
DIRS += [
|
2017-12-06 01:47:15 +00:00
|
|
|
"mozapps/update/common",
|
2015-04-16 19:14:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG["MOZ_MAINTENANCE_SERVICE"]:
|
2015-04-15 00:00:02 +00:00
|
|
|
DIRS += ["components/maintenanceservice"]
|
2013-02-25 21:19:09 +00:00
|
|
|
|
|
|
|
DIRS += ["xre"]
|
|
|
|
|
2019-01-30 21:23:34 +00:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
|
|
|
|
DIRS += ["mozapps/handling"]
|
2019-08-21 12:25:42 +00:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ["system/unixproxy"]
|
2013-02-25 21:19:09 +00:00
|
|
|
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
|
Bug 1275849 - Part 2. Merge ProxyUtils for Windows and macOS. r=necko-reviewers,valentin
Actually, both diff is the following.
```diff
@@ -22,14 +19,17 @@
static void NormalizeAddr(const nsACString& aAddr, nsCString& aNormalized) {
nsTArray<nsCString> addr;
ParseString(aAddr, '.', addr);
- aNormalized =
- StringJoin("."_ns, IntegerRange(4), [&addr](nsACString& dst, size_t i) {
- if (i < addr.Length()) {
- dst.Append(addr[i]);
- } else {
- dst.Append('0');
- }
- });
+ aNormalized = "";
+ for (uint32_t i = 0; i < 4; ++i) {
+ if (i != 0) {
+ aNormalized.AppendLiteral(".");
+ }
+ if (i < addr.Length()) {
+ aNormalized.Append(addr[i]);
+ } else {
+ aNormalized.AppendLiteral("0");
+ }
+ }
}
```
So we should share this on Windows and macOS.
Also, since gtest is same, we should merge it.
Differential Revision: https://phabricator.services.mozilla.com/D161232
2022-11-08 09:19:09 +00:00
|
|
|
DIRS += [
|
2024-02-21 18:50:30 +00:00
|
|
|
"mozapps/macos-frameworks",
|
Bug 1275849 - Part 2. Merge ProxyUtils for Windows and macOS. r=necko-reviewers,valentin
Actually, both diff is the following.
```diff
@@ -22,14 +19,17 @@
static void NormalizeAddr(const nsACString& aAddr, nsCString& aNormalized) {
nsTArray<nsCString> addr;
ParseString(aAddr, '.', addr);
- aNormalized =
- StringJoin("."_ns, IntegerRange(4), [&addr](nsACString& dst, size_t i) {
- if (i < addr.Length()) {
- dst.Append(addr[i]);
- } else {
- dst.Append('0');
- }
- });
+ aNormalized = "";
+ for (uint32_t i = 0; i < 4; ++i) {
+ if (i != 0) {
+ aNormalized.AppendLiteral(".");
+ }
+ if (i < addr.Length()) {
+ aNormalized.Append(addr[i]);
+ } else {
+ aNormalized.AppendLiteral("0");
+ }
+ }
}
```
So we should share this on Windows and macOS.
Also, since gtest is same, we should merge it.
Differential Revision: https://phabricator.services.mozilla.com/D161232
2022-11-08 09:19:09 +00:00
|
|
|
"system/commonproxy",
|
|
|
|
"system/osxproxy",
|
|
|
|
]
|
2013-02-25 21:19:09 +00:00
|
|
|
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
|
2022-01-20 23:34:51 +00:00
|
|
|
DIRS += [
|
Bug 1275849 - Part 2. Merge ProxyUtils for Windows and macOS. r=necko-reviewers,valentin
Actually, both diff is the following.
```diff
@@ -22,14 +19,17 @@
static void NormalizeAddr(const nsACString& aAddr, nsCString& aNormalized) {
nsTArray<nsCString> addr;
ParseString(aAddr, '.', addr);
- aNormalized =
- StringJoin("."_ns, IntegerRange(4), [&addr](nsACString& dst, size_t i) {
- if (i < addr.Length()) {
- dst.Append(addr[i]);
- } else {
- dst.Append('0');
- }
- });
+ aNormalized = "";
+ for (uint32_t i = 0; i < 4; ++i) {
+ if (i != 0) {
+ aNormalized.AppendLiteral(".");
+ }
+ if (i < addr.Length()) {
+ aNormalized.Append(addr[i]);
+ } else {
+ aNormalized.AppendLiteral("0");
+ }
+ }
}
```
So we should share this on Windows and macOS.
Also, since gtest is same, we should merge it.
Differential Revision: https://phabricator.services.mozilla.com/D161232
2022-11-08 09:19:09 +00:00
|
|
|
"system/commonproxy",
|
2022-01-20 23:34:51 +00:00
|
|
|
"system/windowsproxy",
|
|
|
|
"system/windowsDHCPClient",
|
|
|
|
"system/windowsPackageManager",
|
|
|
|
]
|
2013-02-25 21:19:09 +00:00
|
|
|
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
|
2014-07-28 23:57:59 +00:00
|
|
|
DIRS += ["system/androidproxy"]
|
2013-02-25 21:19:09 +00:00
|
|
|
|
2016-04-12 18:19:21 +00:00
|
|
|
TEST_HARNESS_FILES.testing.mochitest.browser.toolkit.crashreporter.test.browser += [
|
|
|
|
"crashreporter/test/browser/crashreport.sjs",
|
|
|
|
]
|
|
|
|
|
2019-06-07 07:26:42 +00:00
|
|
|
with Files("docs/**"):
|
|
|
|
BUG_COMPONENT = ("Toolkit", "General")
|
|
|
|
|
2023-03-21 12:13:11 +00:00
|
|
|
with Files("locales-preview/**"):
|
|
|
|
BUG_COMPONENT = ("Toolkit", "General")
|
|
|
|
|
2017-09-13 09:19:00 +00:00
|
|
|
with Files("moz.*"):
|
2018-03-14 20:44:46 +00:00
|
|
|
BUG_COMPONENT = ("Firefox Build System", "General")
|
2017-09-13 09:19:00 +00:00
|
|
|
|
|
|
|
with Files("toolkit.mozbuild"):
|
2018-03-14 20:44:46 +00:00
|
|
|
BUG_COMPONENT = ("Firefox Build System", "General")
|
2017-09-13 09:19:00 +00:00
|
|
|
|
|
|
|
with Files("library/**"):
|
2018-03-14 20:44:46 +00:00
|
|
|
BUG_COMPONENT = ("Firefox Build System", "General")
|
2017-09-13 09:19:00 +00:00
|
|
|
|
|
|
|
with Files("mozapps/preferences/**"):
|
|
|
|
BUG_COMPONENT = ("Toolkit", "Preferences")
|
|
|
|
|
2019-06-08 04:37:31 +00:00
|
|
|
with Files("l10n-registry.manifest"):
|
|
|
|
BUG_COMPONENT = ("Core", "Localization")
|
2022-10-07 18:40:27 +00:00
|
|
|
|
2024-08-07 02:01:58 +00:00
|
|
|
with Files("jsconfig.json"):
|
|
|
|
BUG_COMPONENT = ("Developer Infrastructure", "Lint and Formatting")
|
|
|
|
|
2022-10-07 18:40:27 +00:00
|
|
|
GeneratedFile(
|
|
|
|
"content/neterror/aboutNetErrorCodes.js",
|
|
|
|
script="content/neterror/gen_aboutneterror_codes.py",
|
|
|
|
inputs=["/toolkit/locales/en-US/toolkit/neterror/nsserrors.ftl"],
|
|
|
|
)
|