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

754 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 74bb3ccbd4 Bug 1762547 - Make --enable-gpsd a system_lib_option. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D143110
2022-04-07 01:54:31 +00:00
Nordin Abouzahra 82b9d72e94 Bug 1351378 - Add an --enable-audio-backends option. r=mhentges
This addresses the original intent of the bug report which asks for allowing
sndio to be built on more than just OpenBSD. In addition of modifying the
existing --enable-sndio to support this request, the option
--enable-audio-backends was added which takes a list of possible backends to
support per discussion in the bug report.

For example specifying --enable-audio-backends=alsa,jack,pulseaudio,sndio
allows for runtime selection of those four cubeb backends. If all four backends
are available the user can specify `media.cubeb.backend` in `about:config` to
force a specific backend.

Removed superfluous set_define()s as libcubeb's moz.build does the necessary
`DEFINES['...']` assignments for each backend.

In addition logic for finer control of audio backend selection on Android was
added. One can now specify aaudio, opensl or both (which is the default).

Differential Revision: https://phabricator.services.mozilla.com/D141450
2022-03-28 20:48:52 +00:00
Iulian Moraru 866f261a7d Backed out changeset c25c591841cd (bug 1351378) for causing multiple failures. CLOSED TREE 2022-03-22 19:37:46 +02:00
Nordin Abouzahra 2b0b1c90db Bug 1351378 - Add an --enable-audio-backends option. r=mhentges
This addresses the original intent of the bug report which asks for allowing
sndio to be built on more than just OpenBSD. In addition of modifying the
existing --enable-sndio to support this request, the option
--enable-audio-backends was added which takes a list of possible backends to
support per discussion in the bug report.

For example specifying --enable-audio-backends=alsa,jack,pulseaudio,sndio
allows for runtime selection of those four cubeb backends. If all four backends
are available the user can specify `media.cubeb.backend` in `about:config` to
force a specific backend.

***
Bug 1351378 - Address linter error. r?mhentges,glandium

***
Bug 1351378 - Remove superfluous set_define(). r?mhentges,glandium

libcubeb's moz.build does the necessary `DEFINES['...']` assignments for each
backend. Remove superfluous set_define().

Differential Revision: https://phabricator.services.mozilla.com/D141450
2022-03-22 17:02:05 +00:00
Nick Alexander f0a577a014 Bug 1752968 - Pre: Convert `MOZ_PACKAGER_MINIFY{_JS}` to `moz.configure`. r=firefox-build-system-reviewers,mhentges
There's no current use for setting `JS_BINARY` in `packager.mk`, so
remove it while we're here.  I elected to make it easy to add new file
types to minify rather than to make it easy to specify `JS_BINARY`,
since the latter mechanism is strictly more general and could be used
in future for things other than minification.

Differential Revision: https://phabricator.services.mozilla.com/D138364
2022-03-02 17:43:47 +00:00
Nika Layzell 2f62d8c857 Bug 1751948 - Part 6: Add basic support for running IPDL unit tests during gtest, r=ipc-reviewers,andi,handyman
This patch introduces a new system for building IPDL unit tests, which is
roughly inspired by the old cxx unit test design, however designed to work with
gtest. It re-uses the existing IPDLUnitTest process type, using static
constructors only present in xul-gtest to register child actor constructors and
ProcessChild implementations to avoid bloating xul.

The IPDLUnitTest actor is used as a backchannel to communicate test failures
from the child process back to the parent process, and manage the test's async
lifecycle more reliably.

The IPDLUnitTest process also needed to have various properties about how it was
initialized adjusted:

* The IPDLUnitTest process should now always load xul-gtest when running
  gtests, by using the "Self" process type and adding a DYLD_LIBRARY_PATH override
  on macOS where the "Self" process type cannot be used.
* The IPDLUnitTest process now initializes minimal XPCOM, and runs a
  frankeneventloop to allow it to use XPCOM event loop structures such as
  SpinEventLoopUntil in tests.
* Support for creating IPDLUnitTest processes on Android was added, as these
  tests had never run on android before.

Differential Revision: https://phabricator.services.mozilla.com/D137170
2022-02-28 21:01:49 +00:00
Matthew Gaudet b1106b847a Bug 1752206 - Enable DOM Streams by default r=smaug,firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D137771
2022-02-10 19:01:35 +00:00
Cosmin Sabou 3a5e7ade87 Backed out 2 changesets (bug 1752206) for causing Bp-hybrid bustages on WritableStream.cpp. CLOSED TREE
Backed out changeset bc0d7fc3a472 (bug 1752206)
Backed out changeset 5c89f3f10d0e (bug 1752206)
2022-02-10 20:16:51 +02:00
Matthew Gaudet 14c0324930 Bug 1752206 - Enable DOM Streams by default r=smaug,firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D137771
2022-02-10 17:06:09 +00:00
criss 00c2091ed9 Backed out 3 changesets (bug 1752206, bug 1754088) for causing failures on testReadableStream.cpp
Backed out changeset bf7e7a03d4bb (bug 1752206)
Backed out changeset e53660b82b9a (bug 1752206)
Backed out changeset 2f006f71ce1e (bug 1754088)
2022-02-08 19:44:43 +02:00
Matthew Gaudet 8ced363a3e Bug 1752206 - Enable DOM Streams by default r=smaug,firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D137771
2022-02-08 15:23:52 +00:00
Norisz Fay 49e64d1733 Backed out 2 changesets (bug 1752206) for causing build bustages on ReadableByteStreamController.cpp CLOSED TREE
Backed out changeset 455cd9209987 (bug 1752206)
Backed out changeset a6cc91b823c3 (bug 1752206)
2022-02-08 00:09:17 +02:00
Matthew Gaudet c7dcf9335d Bug 1752206 - Enable DOM Streams by default r=smaug,firefox-build-system-reviewers,nalexander
Depends on D137770

Differential Revision: https://phabricator.services.mozilla.com/D137771
2022-02-07 18:46:58 +00:00
Agi Sferro 1619bba273 Bug 1728226 - Always enable crashreporter on artifact builds. r=nalexander
We don't actually support building artifacts with no crashreporter so we should
set a sensible default.

Differential Revision: https://phabricator.services.mozilla.com/D137191
2022-01-28 16:33:39 +00:00
Emilio Cobos Álvarez 68917db361 Bug 1752418 - Make default remoting name depend on update channel. r=glandium
Aurora already does this via configure.sh.

Differential Revision: https://phabricator.services.mozilla.com/D137204
2022-01-28 08:00:27 +00:00
Nick Alexander dcb7a55968 Bug 1717683 - Make ZIP packages and l10n repacks deterministic by using `zip.py` instead of `make_zip.py`. r=firefox-build-system-reviewers,glandium
The compression options appear to be the same: `mozjar` defaults to
level 9 compression.  The `mozjar` code is definitely slower than the
native ZIP executable, but not, I think, by enough to not do this.

This is the sole consumer of `make_zip.py` in the tree, so we remove
the file entirely.

Differential Revision: https://phabricator.services.mozilla.com/D118528
2022-01-28 04:00:20 +00:00
Mike Hommey e83738f7d8 Bug 1629184 - Preprocess MIDL inputs manually. r=firefox-build-system-reviewers,nalexander
This avoids needing clang-cl.exe on cross compilations. We could keep
Windows builds on having MIDL do the preprocessing, but that would be
a difference between native and cross builds, and it's better to avoid
that.

Differential Revision: https://phabricator.services.mozilla.com/D136831
2022-01-25 22:43:56 +00:00
Mike Hommey 77ef469247 Bug 1752004 - Remove usage of six in python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D136946
2022-01-25 21:38:47 +00:00
Mike Hommey 773fa3be25 Bug 1751817 - Pass --rtlib=libgcc to clang when building for Android. r=firefox-build-system-reviewers,andi
Instead of forcing it via a patch to clang itself (which now conflicts
with other changes on clang trunk, although the conflict is benign).

Because of https://github.com/llvm/llvm-project/issues/53397 we need to
narrow down the warnings that trigger errors in the check for
`pthread_cond_timedwait_monotonic_np`.

Differential Revision: https://phabricator.services.mozilla.com/D136850
2022-01-25 09:17:39 +00:00
Emilio Cobos Álvarez 91bea3f4fb Bug 1750395 - Use mozshowdropdown events to show select dropdown. r=agi
After bug 1744009 Gecko will consistently fire these events. This allows
activating stuff via keyboard on Android like in every other OS (if you
have a keyboard attached of course) and is generally more consistent.

We remove MOZ_USE_NATIVE_POPUP_WINDOWS since it's unused.

Differential Revision: https://phabricator.services.mozilla.com/D136073
2022-01-21 11:08:38 +00:00
Mike Hommey d4919a8c5f Bug 1747970 - Move AC_CHECK_FUNC{,S} to python configure. r=firefox-build-system-reviewers,andi
- AC_HAVE_FUNCS is an alias to AC_CHECK_FUNCS, so it is covered.
- Nothing uses HAVE___CXA_DEMANGLE, so we don't explictly set it,
  although we do need the result of whether __cxa_demangle is supported.
- No moz.build uses MOZ_DEMANGLE_SYMBOLS, so we only `set_define` it.
- We leave dladdr in old-configure because it needs to move along other
  dl* things.
- The hotfix for AC_CHECK_FUNC is however not needed for dladdr, so we
  remove it.
- We replace the forced HAVE_LOCALECONV on Windows with a check shared
  with all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D134858
2022-01-20 21:01:20 +00:00
Iulian Moraru f2f55d39bc Backed out changeset ffdd096022f9 (bug 1747970) for causing android build bustages. CLOSED TREE 2022-01-19 02:20:04 +02:00
Mike Hommey 464471142b Bug 1747970 - Move AC_CHECK_FUNC{,S} to python configure. r=firefox-build-system-reviewers,andi
- AC_HAVE_FUNCS is an alias to AC_CHECK_FUNCS, so it is covered.
- Nothing uses HAVE___CXA_DEMANGLE, so we don't explictly set it,
  although we do need the result of whether __cxa_demangle is supported.
- No moz.build uses MOZ_DEMANGLE_SYMBOLS, so we only `set_define` it.
- We leave dladdr in old-configure because it needs to move along other
  dl* things.
- The hotfix for AC_CHECK_FUNC is however not needed for dladdr, so we
  remove it.
- We replace the forced HAVE_LOCALECONV on Windows with a check shared
  with all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D134858
2022-01-18 23:53:38 +00:00
Mike Hommey 523b1551b3 Bug 1747783 - Add support for aarch64 to elfhack. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D134764
2021-12-30 20:52:55 +00:00
Mike Hommey a25d0c97d9 Bug 1747856 - Move MOZ_NO_SMART_CARDS to python configure. r=firefox-build-system-reviewers,geckoview-reviewers,mhentges,calu
Differential Revision: https://phabricator.services.mozilla.com/D134770
2021-12-30 00:54:02 +00:00
Mike Hommey cc5858cdcc Bug 1747854 - Move MOZ_ENABLE_CAIRO_FT and CAIRO_FT_CFLAGS to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134768
2021-12-30 00:54:01 +00:00
Mike Hommey 8e77ff90db Bug 1747853 - Move linux/joystick.h check to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134767
2021-12-30 00:54:01 +00:00
Mike Hommey c0b85dcb38 Bug 1747852 - Move MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134766
2021-12-30 00:54:00 +00:00
Mike Hommey 971775cd07 Bug 1747502 - Move A11Y_LOG to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134644
2021-12-29 22:12:46 +00:00
Mike Hommey f094186c6f Bug 1747501 - Move ZLIB_IN_MOZGLUE to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134643
2021-12-29 22:12:45 +00:00
Mike Hommey 9ea3f97b39 Bug 1747500 - Move MOZ_LINKER to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134642
2021-12-29 22:12:45 +00:00
Mike Hommey eac8ebc4e8 Bug 1747499 - Move pthread_cond_timedwait_monotonic_np check to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134641
2021-12-29 22:12:45 +00:00
Gabriele Svelto efba31192f Bug 1747196 - Build the Web MIDI midir backend only on known supported platforms rather than excluding unsupported ones r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D134491
2021-12-29 08:14:52 +00:00
Mike Hommey 0ecd63d2c2 Bug 1747325 - Remove checks against system freetype. r=firefox-build-system-reviewers,andi
By upgrading the requirement to freetype 9.10.3 (actually 2.2.0,
released > 15 years ago ; the .pc version doesn't match the freetype
version), we ensure all supported versions of freetype have the things
we were checking for.

Differential Revision: https://phabricator.services.mozilla.com/D134565
2021-12-23 20:50:39 +00:00
Mike Hommey efd23948af Bug 1747322 - Move sockaddr_* length field checks to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134562
2021-12-23 20:50:38 +00:00
Mike Hommey 906237b715 Bug 1747332 - s/check_build_environment/build_environment/. r=firefox-build-system-reviewers,geckoview-reviewers,andi,calu
Differential Revision: https://phabricator.services.mozilla.com/D134585
2021-12-23 20:47:47 +00:00
Mike Hommey 4894650862 Bug 1747165 - Move Gtk+3 checks to python configure. r=firefox-build-system-reviewers,mhentges
Also fix checked glib version and remove unused CAIRO_VERSION.

Differential Revision: https://phabricator.services.mozilla.com/D134465
2021-12-23 20:29:08 +00:00
Cristian Tuns e1e31e01f2 Backed out 2 changesets (bug 1747165) for causing nightly blockers(bustages) a=backout
Backed out changeset 4b1ab0915c94 (bug 1747165)
Backed out changeset 96043d814772 (bug 1747165)
2021-12-23 08:00:54 -05:00
Mike Hommey 12435c092b Bug 1747165 - Move Gtk+3 checks to python configure. r=firefox-build-system-reviewers,mhentges
Also fix checked glib version and remove unused CAIRO_VERSION.

Differential Revision: https://phabricator.services.mozilla.com/D134465
2021-12-22 23:56:24 +00:00
Mike Hommey 793f17d9e1 Bug 1747160 - Remove check for CoreMedia/CoreMedia.h and VideoToolbox/VideoToolbox.h. r=firefox-build-system-reviewers,mhentges
We're building with SDK >= 10.12.

Differential Revision: https://phabricator.services.mozilla.com/D134458
2021-12-22 03:47:26 +00:00
Mike Hommey 7621251fc2 Bug 1746988 - Move --with-user-appdir to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134346
2021-12-21 21:36:42 +00:00
Mike Hommey 424f326c5d Bug 1746987 - Move --disable-zipwriter to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134345
2021-12-21 21:36:42 +00:00
Mike Hommey acca21b579 Bug 1746986 - Move --disable-universalchardet to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134344
2021-12-21 21:36:42 +00:00
Mike Hommey 915c66d1fe Bug 1308558 - Move --enable-system-pixman to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134343
2021-12-21 21:36:41 +00:00
Mike Hommey bd448f583e Bug 1746985 - Move --disable-system-extension-dirs to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134342
2021-12-21 21:36:41 +00:00
Gabriele Svelto 2793748f11 Bug 1728436 - Added libasound2 dependency to the sysroot r=glandium
This is required to build the midir crate on Linux. The Dockerfile change is
needed to run the just built xpcshell executable on the build host.

Differential Revision: https://phabricator.services.mozilla.com/D124641
2021-12-21 11:34:52 +00:00
Mike Hommey a88212038a Bug 1746544 - Move --enable-sandbox to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134102
2021-12-18 00:41:44 +00:00
Mike Hommey bafea37b93 Bug 1746542 - Move --disable-parental-controls to python configure. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D134101
2021-12-18 00:32:36 +00:00
Mike Hommey 176d00f71f Bug 1746541 - Move --disable-negotiateauth to python configure. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134100
2021-12-18 00:32:36 +00:00
Mike Hommey b6a4e7c184 Bug 1746540 - Move --enable-logrefcnt to python configure. r=nika,firefox-build-system-reviewers,mhentges
And simplify the defines it sets.

Differential Revision: https://phabricator.services.mozilla.com/D134099
2021-12-18 00:32:35 +00:00