2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:19:09 +04: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 10:26:42 +03:00
|
|
|
SPHINX_TREES["/toolkit"] = "docs"
|
|
|
|
|
2019-06-08 07:37:31 +03:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
"l10n-registry.manifest",
|
|
|
|
]
|
|
|
|
|
2014-07-29 03:57:59 +04:00
|
|
|
DIRS += [
|
2018-07-30 07:27:32 +03:00
|
|
|
"actors",
|
2013-02-26 01:19:09 +04:00
|
|
|
"components",
|
|
|
|
"content",
|
2017-11-14 16:49:33 +03:00
|
|
|
"crashreporter",
|
2013-02-26 01:19:09 +04:00
|
|
|
"locales",
|
|
|
|
"modules",
|
|
|
|
"mozapps/downloads",
|
|
|
|
"mozapps/extensions",
|
|
|
|
"mozapps/preferences",
|
|
|
|
"profile",
|
|
|
|
"themes",
|
|
|
|
]
|
|
|
|
|
2022-08-02 22:40:39 +03:00
|
|
|
if CONFIG["OS_ARCH"] == "WINNT":
|
2023-09-05 23:55:25 +03: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 19:31:09 +03:00
|
|
|
|
2023-09-21 00:43:33 +03:00
|
|
|
if CONFIG["CC_TYPE"] == "clang-cl" or CONFIG["MOZ_ARTIFACT_BUILDS"]:
|
2023-09-05 23:55:25 +03: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 23:16:25 +03:00
|
|
|
|
2015-04-15 03:00:02 +03:00
|
|
|
if CONFIG["MOZ_UPDATER"] and CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
|
|
|
|
DIRS += ["mozapps/update"]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2017-12-06 04:47:15 +03:00
|
|
|
if CONFIG["MOZ_MAINTENANCE_SERVICE"] or CONFIG["MOZ_UPDATER"]:
|
2015-04-15 03:00:02 +03:00
|
|
|
DIRS += [
|
2017-12-06 04:47:15 +03:00
|
|
|
"mozapps/update/common",
|
2015-04-16 22:14:43 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG["MOZ_MAINTENANCE_SERVICE"]:
|
2015-04-15 03:00:02 +03:00
|
|
|
DIRS += ["components/maintenanceservice"]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
DIRS += ["xre"]
|
|
|
|
|
2019-01-31 00:23:34 +03:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
|
|
|
|
DIRS += ["mozapps/handling"]
|
2019-08-21 15:25:42 +03:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
2014-07-29 03:57:59 +04:00
|
|
|
DIRS += ["system/unixproxy"]
|
2013-02-26 01:19:09 +04: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 12:19:09 +03:00
|
|
|
DIRS += [
|
2024-02-21 21:50:30 +03: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 12:19:09 +03:00
|
|
|
"system/commonproxy",
|
|
|
|
"system/osxproxy",
|
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
|
2022-01-21 02:34:51 +03: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 12:19:09 +03:00
|
|
|
"system/commonproxy",
|
2022-01-21 02:34:51 +03:00
|
|
|
"system/windowsproxy",
|
|
|
|
"system/windowsDHCPClient",
|
|
|
|
"system/windowsPackageManager",
|
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
|
2014-07-29 03:57:59 +04:00
|
|
|
DIRS += ["system/androidproxy"]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2016-04-12 21:19:21 +03:00
|
|
|
TEST_HARNESS_FILES.testing.mochitest.browser.toolkit.crashreporter.test.browser += [
|
|
|
|
"crashreporter/test/browser/crashreport.sjs",
|
|
|
|
]
|
|
|
|
|
2019-06-07 10:26:42 +03:00
|
|
|
with Files("docs/**"):
|
|
|
|
BUG_COMPONENT = ("Toolkit", "General")
|
|
|
|
|
2023-03-21 15:13:11 +03:00
|
|
|
with Files("locales-preview/**"):
|
|
|
|
BUG_COMPONENT = ("Toolkit", "General")
|
|
|
|
|
2017-09-13 12:19:00 +03:00
|
|
|
with Files("moz.*"):
|
2018-03-14 23:44:46 +03:00
|
|
|
BUG_COMPONENT = ("Firefox Build System", "General")
|
2017-09-13 12:19:00 +03:00
|
|
|
|
|
|
|
with Files("toolkit.mozbuild"):
|
2018-03-14 23:44:46 +03:00
|
|
|
BUG_COMPONENT = ("Firefox Build System", "General")
|
2017-09-13 12:19:00 +03:00
|
|
|
|
|
|
|
with Files("library/**"):
|
2018-03-14 23:44:46 +03:00
|
|
|
BUG_COMPONENT = ("Firefox Build System", "General")
|
2017-09-13 12:19:00 +03:00
|
|
|
|
|
|
|
with Files("mozapps/preferences/**"):
|
|
|
|
BUG_COMPONENT = ("Toolkit", "Preferences")
|
|
|
|
|
2019-06-08 07:37:31 +03:00
|
|
|
with Files("l10n-registry.manifest"):
|
|
|
|
BUG_COMPONENT = ("Core", "Localization")
|
2022-10-07 21:40:27 +03:00
|
|
|
|
2024-08-07 05:01:58 +03:00
|
|
|
with Files("jsconfig.json"):
|
|
|
|
BUG_COMPONENT = ("Developer Infrastructure", "Lint and Formatting")
|
|
|
|
|
2022-10-07 21:40:27 +03:00
|
|
|
GeneratedFile(
|
|
|
|
"content/neterror/aboutNetErrorCodes.js",
|
|
|
|
script="content/neterror/gen_aboutneterror_codes.py",
|
|
|
|
inputs=["/toolkit/locales/en-US/toolkit/neterror/nsserrors.ftl"],
|
|
|
|
)
|