Граф коммитов

7142 Коммитов

Автор SHA1 Сообщение Дата
Dan Minor 18d37eb7a8 Bug 1715232 - Add ICU4X license sha256 to vendor_rust.py r=glandium,mhoye
This adds the sha256 for the ICU4X license as a variable to vendor_rust.py,
so it can be used as we add ICU4X crates. Since there are several projects
ongoing that want to use ICU4X, I think it makes sense to get the license
review done once, early, so that whoever is ready to land code that uses
ICU4X first is not blocked waiting on license review.

Differential Revision: https://phabricator.services.mozilla.com/D123776
2021-09-01 21:55:38 +00:00
Francesco Lodolo (:flod) 61cda2481d Bug 1728513 - Remove Fluent migration recipes for Firefox 88-91 r=eemeli
Differential Revision: https://phabricator.services.mozilla.com/D124160
2021-09-01 09:50:33 +00:00
Katherine Patenio 25a76b9440 Bug 1609558 - Migrate panelUI.inc.xhtml to Fluent. r=mtigley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D123837
2021-08-30 17:58:08 +00:00
Alex Lopez 600206e89e Bug 1696251: Change method names in mach commands to avoid scoping issues when de-classing. r=mhentges
The affected functions would cause an UnboundLocalError if they are moved
to module-level, because using an assignment inside a function makes a
variable local in Python, making it illegal to have a local variable name
be the same as a function name that is called within the same function.
The adopted solution is to rename those functions in preparation for the
future de-classing.

Differential Revision: https://phabricator.services.mozilla.com/D123867
2021-08-30 15:11:43 +00:00
Katherine Patenio 8f2c7d787b Bug 1625478 - Convert appMenu* strings from browser.dtd to appmenu.ftl. r=mtigley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D123167
2021-08-30 02:36:44 +00:00
Andi-Bogdan Postelnicu c509382d69 Bug 1717801 - Determine the number of developer who are currently running vscode. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D118587
2021-08-26 07:24:19 +00:00
Andi-Bogdan Postelnicu 0ac52aa9d7 Bug 1725125 - Make a hybrid build system combining non-unified with unified. CLOSED TREE
By hybrid unified system we understand a system that encapsulates modules that are built in the unified mode
but also other modules, like `dom/Animation`, as an example, in the non unified environment.

This approach is desirable since we already have most of the modules transitioned to the non unified system but there are
still some that are not yet compatible, but in the long term this will be done by each module owner and can be also tested
locally using the build system.

If a module can't be built outside the unified method it's `moz.build` config file needs to have `REQUIRES_UNIFIED_BUILD = False`

To also enable this we need to have a flag from `mozconfig`, like:

```
ac_add_options --disable-unified-build
```

Differential Revision: https://phabricator.services.mozilla.com/D122328
2021-08-25 11:21:42 +00:00
Narcis Beleuzu 50dd0540cd Backed out changeset 29d7e91fe721 (bug 1725125) for plain Bp-hybrid bustages 2021-08-25 14:42:09 +03:00
Andi-Bogdan Postelnicu 4b8a4fc95a Bug 1725125 - Make a hybrid build system combining non-unified with unified r=firefox-build-system-reviewers,mhentges,glandium
By hybrid unified system we understand a system that encapsulates modules that are built in the unified mode
but also other modules, like `dom/Animation`, as an example, in the non unified environment.

This approach is desirable since we already have most of the modules transitioned to the non unified system but there are
still some that are not yet compatible, but in the long term this will be done by each module owner and can be also tested
locally using the build system.

If a module can't be built outside the unified method it's `moz.build` config file needs to have `REQUIRES_UNIFIED_BUILD = False`

To also enable this we need to have a flag from `mozconfig`, like:

```
ac_add_options --disable-unified-build
```

Differential Revision: https://phabricator.services.mozilla.com/D122328
2021-08-25 10:46:18 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Mike Hommey f6e2b469e7 Bug 1726474 - Enable wasm sandboxing on 64-bits Windows. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D123042
2021-08-25 07:39:02 +00:00
Mike Hommey b7bcda87f0 Bug 1726474 - Always use clang-type flags when targeting wasm. r=firefox-build-system-reviewers,mhentges
The build system assumes the target compiler is of the same type as the
wasm compiler, but that's not true for wasm32-wasi, which we compile
with clang, while targeting windows, which we compile with clang-cl.
We handle the duality for host/target in a compiler-specific way, but
here, the wasm compiler is always going to be clang.

Differential Revision: https://phabricator.services.mozilla.com/D123041
2021-08-25 07:39:01 +00:00
Mike Hommey 7e072d6610 Bug 1726474 - Remove unrelevant flags from wasm builds. r=firefox-build-system-reviewers,mhentges
RTL flags are flags that chooses which C/C++ runtime library to use
(multi-threaded, debug, etc.). They're only relevant when targeting
Windows, not when targeting wasi.

Frame pointer flags are not relevant to wasm (as a matter of fact,
the same wasm code is generated whether using -fomit-frame-pointer
or -fno-omit-frame-pointer)

Differential Revision: https://phabricator.services.mozilla.com/D123040
2021-08-25 07:39:00 +00:00
Alex Lopez 4ae24b1f1b Bug 1696251: Refactor docstrings in mach commands. r=mhentges,webdriver-reviewers,geckoview-reviewers,agi
The purpose of this is to remove as many docstrings from CommandProvider
classes to make the step of moving commands out of classes simpler.
Where possible, the docstring has been moved to or merged with the function.

Differential Revision: https://phabricator.services.mozilla.com/D123288
2021-08-24 20:16:05 +00:00
Niklas Baumgardner 99f9824eef Bug 1635548 - Migrated browser-context.inc to Fluent. r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D123233
2021-08-24 19:48:32 +00:00
Tom Ritter 5c6d7aa348 Bug 1726587: Fix ./mach doc r=mhentges
For whatever reason, ./mach doc is sourcing rewrite_mozbuild.py
causing the ast.get_source_segment function to get redefined.

(We do this redefinition because it is very easy to accidently
use get_source_segment in this code and forget it doesn't
work on Taskcluster.)

So add an exemption for sphinx to pass through to the original
function, but also fix an inifnite loop where we weren't calling
the original function.

Differential Revision: https://phabricator.services.mozilla.com/D123487
2021-08-24 15:31:11 +00:00
Paul Adenot cae7a51855 Bug 1727070 - libncurses5 is necessary to do native debugging in Android Studio on Debian and derivatives. r=glandium DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D123343
2021-08-24 09:20:00 +00:00
Cosmin Sabou 1958e4b9fe Backed out 4 changesets (bug 1726474) for causing windows build bustages. CLOSED TREE
Backed out changeset c7fcc6914b7c (bug 1726474)
Backed out changeset 1dcd8069568e (bug 1726474)
Backed out changeset 938043bb1ca2 (bug 1726474)
Backed out changeset e12c90f66a6c (bug 1726474)
2021-08-24 06:12:08 +03:00
Mike Hommey 7279280783 Bug 1726474 - Always use clang-type flags when targeting wasm. r=firefox-build-system-reviewers,mhentges
The build system assumes the target compiler is of the same type as the
wasm compiler, but that's not true for wasm32-wasi, which we compile
with clang, while targeting windows, which we compile with clang-cl.
We handle the duality for host/target in a compiler-specific way, but
here, the wasm compiler is always going to be clang.

Differential Revision: https://phabricator.services.mozilla.com/D123041
2021-08-24 02:52:19 +00:00
Mike Hommey 79b70bfd95 Bug 1726474 - Remove unrelevant flags from wasm builds. r=firefox-build-system-reviewers,mhentges
RTL flags are flags that chooses which C/C++ runtime library to use
(multi-threaded, debug, etc.). They're only relevant when targeting
Windows, not when targeting wasi.

Frame pointer flags are not relevant to wasm (as a matter of fact,
the same wasm code is generated whether using -fomit-frame-pointer
or -fno-omit-frame-pointer)

Differential Revision: https://phabricator.services.mozilla.com/D123040
2021-08-24 02:52:18 +00:00
Csoregi Natalia 84d67f5d03 Backed out 4 changesets (bug 1726474) for causing crashes. CLOSED TREE
Backed out changeset 5add6784a784 (bug 1726474)
Backed out changeset e2047ab95703 (bug 1726474)
Backed out changeset d53f62933fd0 (bug 1726474)
Backed out changeset 796a54dcb5f0 (bug 1726474)
2021-08-24 04:49:04 +03:00
Mike Hommey 0c793d860d Bug 1726474 - Always use clang-type flags when targeting wasm. r=firefox-build-system-reviewers,mhentges
The build system assumes the target compiler is of the same type as the
wasm compiler, but that's not true for wasm32-wasi, which we compile
with clang, while targeting windows, which we compile with clang-cl.
We handle the duality for host/target in a compiler-specific way, but
here, the wasm compiler is always going to be clang.

Differential Revision: https://phabricator.services.mozilla.com/D123041
2021-08-24 01:01:39 +00:00
Mike Hommey 4fa3c6cc59 Bug 1726474 - Remove unrelevant flags from wasm builds. r=firefox-build-system-reviewers,mhentges
RTL flags are flags that chooses which C/C++ runtime library to use
(multi-threaded, debug, etc.). They're only relevant when targeting
Windows, not when targeting wasi.

Frame pointer flags are not relevant to wasm (as a matter of fact,
the same wasm code is generated whether using -fomit-frame-pointer
or -fno-omit-frame-pointer)

Differential Revision: https://phabricator.services.mozilla.com/D123040
2021-08-24 01:01:38 +00:00
Csoregi Natalia 39a0f07a9d Backed out changeset 4d19ea5594d2 (bug 1635548) for assertion failures on ErrorResult.h. CLOSED TREE 2021-08-23 22:26:31 +03:00
Niklas Baumgardner 78f3c52e0b Bug 1635548 - Migrated browser-context.inc to Fluent. r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D123233
2021-08-23 18:46:11 +00:00
Erik Nordin 69ae00db76 Bug 1725502 - Create DTD migration for strings in main-popupset.inc.xhtml r=flod,fluent-reviewers
Creates a migration for browser.tfl to unify strings in browser.dtd and broser.properties
that are used in main-popupset.inc.xhtml

Differential Revision: https://phabricator.services.mozilla.com/D122538
2021-08-19 17:22:24 +00:00
Mike Hommey 909d7d6787 Bug 1726315 - Force `mach build` to be verbose on automation. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D122953
2021-08-18 22:01:32 +00:00
Mike Hommey 50c875f45c Bug 1725855 - Don't set PKG_CONFIG_* on macOS. r=firefox-build-system-reviewers,andi
The sysroot setup on macOS is different from Linux, and pkg-config
files, if there are, would be coming from e.g. homebrew rather than
the macOS SDK.

Differential Revision: https://phabricator.services.mozilla.com/D122793
2021-08-17 09:38:23 +00:00
Tom Ritter 616bff5b05 Bug 1712817: Do not add newly added header files to EXPORTS automatically r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D122238
2021-08-14 02:28:09 +00:00
Tom Ritter ba6db969f0 Bug 1712817: Add tests for mozbuild file editing r=jewilde
Depends on D120481

Differential Revision: https://phabricator.services.mozilla.com/D121379
2021-08-14 02:28:08 +00:00
Tom Ritter e603a5f57c Bug 1712817: Support adding header files to EXPORTS in mozbuild rewriting r=jewilde
Depends on D120480

Differential Revision: https://phabricator.services.mozilla.com/D120481
2021-08-14 02:28:08 +00:00
Tom Ritter efc5d64593 Bug 1721247: Lift some repeated code into a function r=jewilde
Depends on D120479

Differential Revision: https://phabricator.services.mozilla.com/D120480
2021-08-14 02:28:07 +00:00
Tom Ritter 2ef8731b6b Bug 1721247: Ensure that only failure to add/remove exceptions are swallowed r=jewilde
Depends on D120478

Differential Revision: https://phabricator.services.mozilla.com/D120479
2021-08-14 02:28:07 +00:00
Tom Ritter 97d1270362 Bug 1721247: Improve the mozbuild rewriting logic for different path types r=jewilde
libdav1d only has relative paths. Like ../../third_party/foo/bar.c
libjpeg-xl has absolute paths like /third_party/bar/foo.c

This handles the second case by not doing our relative path
correction logic if we don't need to.

It will find all of the types of ways a file is included in a
moz.build file* and iterate over them, trying the slightly
different logic.  This is okay, because the failure scenario
for trying an incorrect mode is just that we don't get a match.

By trying all the modes we can increase our chances of finding a
match.

* For SOURCES/UNIFIED_SOURCES there aren't actually any situations
where we have mixed-modes in a moz.build file. But a future patch
will add support for editing EXPORTS and they do have mixed-modes.

Depends on D120477

Differential Revision: https://phabricator.services.mozilla.com/D120478
2021-08-14 02:28:07 +00:00
Tom Ritter f96ded73c8 Bug 1721247: Improve/fix the local testing logic for mach vendor mozbuild rewriting r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D120477
2021-08-14 02:28:06 +00:00
Mitchell Hentges ecfc259f09 Bug 1723944: Install `perl-FindBin` on Fedora for android builds r=firefox-build-system-reviewers,glandium
I couldn't find a `perl-FindBin` package for CentOS Stream or Rocky
Linux, so I've only added the install for Fedora.

Differential Revision: https://phabricator.services.mozilla.com/D121883
2021-08-13 14:55:43 +00:00
Nick Alexander 7d7e4d990b Bug 1724885 - Fix broken icons; differentiate Beta. r=mhowell
When relanding Bug 1709697, all of the icons ended up as 0-byte files.
I can't explain this; it's hard to achieve this with a rebase.  We
regenerate `Resources.pri` following the instructions in the
documentation.

This commit also moves to represent the package as "Mozilla Firefox",
which is consistent with how unpackaged versions appear in the Windows
UI.  In the start menu, the application continues to be represented as
"Firefox" (no "Mozilla" vendor).

Finally, this commit also differentiates "Firefox Beta" from "Firefox"
in a few select places (while not changing branding and iconography).

Differential Revision: https://phabricator.services.mozilla.com/D122411
2021-08-12 16:18:32 +00:00
Molly Howell b8d1fa35e3 Bug 1724793 - Update casing of the toolbar overflow menu customize button. r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D122394
2021-08-12 16:00:26 +00:00
Mike Hommey a054bdd0de Bug 1723953 - Fix using the bootstrapped sysroot with GCC. r=firefox-build-system-reviewers,andi
While some custom builds of GCC work successfully, system GCC builds
usually don't, because of several factors:
- they don't use the C++ headers or libstdc++.so from the sysroot
- they don't necessarily know to use the multiarch directories in the
  sysroot

Differential Revision: https://phabricator.services.mozilla.com/D121946
2021-08-11 21:51:11 +00:00
Mike Hommey e5492f70e1 Bug 1723953 - pre: Add min/max to the python configure sandbox. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D121945
2021-08-11 21:51:11 +00:00
Marian-Vasile Laza 2585ca8b0d Bug 1724606 - Fix lint failure a=lint-fix CLOSED TREE 2021-08-11 11:21:50 +03:00
Mike Hommey a673ae0901 Bug 1724374 - Handle the macos SDK through the same code paths as sysroots. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D121944
2021-08-11 07:47:14 +00:00
Mike Hommey d784654760 Bug 1724374 - Use --sysroot on mac builds. r=firefox-build-system-reviewers,andi
We're currently using -isysroot as a preprocessor flag and
-Wl,--syslibroot/-Wl,--sysroot as a linker flag, but --sysroot is
generalization of both, so we can use that instead.

Differential Revision: https://phabricator.services.mozilla.com/D121943
2021-08-11 07:47:13 +00:00
Mike Hommey d873082139 Bug 1724606 - Replace uses of MACOSX_DEPLOYMENT_TARGET env variable with -mmacosx-version-min flag. r=firefox-build-system-reviewers,andi
They are equivalent, except for the fact that MACOSX_DEPLOYMENT_TARGET
may apply to more processes in a normal build. In practice, all the
processes that matter are covered through compiler flags.

On the opposite end, MACOSX_DEPLOYMENT_TARGET isn't necessary passed in
all cases (like clangd, mach static-analysis, etc.), while compiler
flags are.

Differential Revision: https://phabricator.services.mozilla.com/D122145
2021-08-11 07:40:57 +00:00
Butkovits Atila 1213e1bc84 Bug 1724830 - Lint fix. a=lint-fix 2021-08-11 01:01:12 +03:00
Mike Hommey e54462618c Bug 1724830 - Remove MOZ_LIBSTDCXX_*_VERSION. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D122197
2021-08-10 21:16:18 +00:00
Mike Hommey 139b1d25b2 Bug 1724830 - Don't link stdc++compat for wasm targets. r=firefox-build-system-reviewers,andi
In practice, that didn't do anything anyways because wasm libraries
don't look at linked libraries.

Differential Revision: https://phabricator.services.mozilla.com/D122196
2021-08-10 21:16:18 +00:00
Alex Lopez 58c955a470 Bug 1696251: Replace usages of self with command_context in mozbuild msix mach commands. r=mhentges
This is to keep up with changes happening in commands while still transitioning
to commands without classes.

Differential Revision: https://phabricator.services.mozilla.com/D122268
2021-08-10 18:19:39 +00:00
Nika Layzell 15880d1df1 Bug 1722832 - Streamline UX for `./mach ide vscode` with existing settings or in remote shells, r=andi
This patch has a few minor improvements to `./mach ide vscode` to make
it nicer to use in various situations. Specifically:

 * Tries to locate the `code` using `shutil.which` in addition to the
   existing methods so that the binary is found when being run from
   within a vscode remote shell.

 * If locating the code binary fails, only prompts to ask whether or not
   to continue, rather than requiring entering the complete path. The
   only use of the vscode command is to start an instance connected to the
   correct path, so if no binary was found, a message is logged instead.
   (bug 1699943)

 * When changes need to be made to the settings.json file, a full diff is
   shown between the old and new files, rather than just showing the
   computed state before and after.

 * If parsing the existing settings.json file fails (e.g. because there
   were c-style comments in it - see bug 1670997), the diff is shown and
   an additional warning is emitted to ask if the change should be made.

Differential Revision: https://phabricator.services.mozilla.com/D121157
2021-08-10 15:34:44 +00:00
Brindusan Cristian 10c5583558 Backed out 4 changesets (bug 1724372, bug 1724374) for causing macos non-unified build bustages in BlockingResourceBase.h.
CLOSED TREE

Backed out changeset a8d4d6248454 (bug 1724374)
Backed out changeset 030e725b4799 (bug 1724374)
Backed out changeset 9c32dfd8b694 (bug 1724374)
Backed out changeset d1096773021b (bug 1724372)
2021-08-07 05:49:03 +03:00