Commit Graph

333 Commits

Author SHA1 Message Date
Paul Adenot
ac88918290 Bug 1523611 - Require libvpx >= 1.7.0. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D18085

--HG--
extra : moz-landing-system : lando
2019-01-30 15:55:10 +00:00
Mike Hommey
e39820dc70 Bug 1475564 - Enable libav1 when not building with msvc. r=dmajor
We reenable the corresponding tests unconditionally because we don't run
tests on the msvc builds anyways (and they're going to be retired soon).

Differential Revision: https://phabricator.services.mozilla.com/D18028

--HG--
extra : moz-landing-system : lando
2019-01-30 07:30:01 +00:00
Bogdan Tara
78cd247b5d Backed out changeset b5ac6baec29b (bug 1475564) for test_can_play_type_mpeg.html failures CLOSED TREE 2019-01-30 08:56:27 +02:00
Mike Hommey
b1b18fb874 Bug 1475564 - Enable libav1 when not building with msvc. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D18028

--HG--
extra : moz-landing-system : lando
2019-01-30 04:17:50 +00:00
Kris Maglione
cc171935f4 Bug 1478124: Part 4a - Add XPCOM_MANIFESTS moz.build variable for XPCOM component manifests. r=froydnj
This aggregates a list of all static component manifests in the tree, and
writes them out to a `manifests-lists.json` file, which is read by the codegen
scripts in the next patch.

It slightly abuses the IDL lists machinery, given that these aren't
technically IDL files. But the semantics are similar enough that it seemed
like the best option.

Differential Revision: https://phabricator.services.mozilla.com/D15034

--HG--
extra : rebase_source : f1e1e1c9497ab8c18c25a106316a1af57237b99f
extra : source : f500020a273a27c66bf2166505a0e97bbc34a214
2018-12-12 18:29:57 -08:00
Mike Hommey
608a89c9c8 Bug 1523144 - Search for MSVC for MIDL in more locations. r=froydnj
In some setups, MSVC is not found through vc_compiler_path, so we may
need a more complete path. `toolchain_search_path` contains
vc_compiler_path, as well as $PATH (among others), increasing our
chances.

Also, if we fail to find cl.exe that way, fail early, instead of failing
while processing config.status, failing to serialize MIDL_FLAGS because
it contains a `None`.

Depends on D17767

Differential Revision: https://phabricator.services.mozilla.com/D17768

--HG--
extra : moz-landing-system : lando
2019-01-28 20:34:59 +00:00
Mike Hommey
8c35f22090 Bug 1523144 - Don't pass compiler flags down to MIDL. r=froydnj
This turns out to not work at all, because this prevents MIDL itself to
pass -I to the compiler, which then proceeds to fail. We're just lucky
that our MSVC detection doesn't yield any default flags so this is
effectively dead code.

Differential Revision: https://phabricator.services.mozilla.com/D17767

--HG--
extra : moz-landing-system : lando
2019-01-28 20:34:43 +00:00
Andrew Osmond
bba2f124b6 Bug 1521478 - Update libwebp to v1.0.2. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D17110
2019-01-21 12:55:02 -05:00
Mike Hommey
c98dd02e0b Bug 1520681 - Use proper defaults for --enable-default-toolkit. r=froydnj
Back when those were added, option defaults could not indirectly depend
on `target` or `host`, but that changed with bug 1322025.

Differential Revision: https://phabricator.services.mozilla.com/D16778

--HG--
extra : moz-landing-system : lando
2019-01-17 16:04:29 +00:00
Mike Hommey
19f8d4666d Bug 1520677 - Remove unnecessary --help dependencies in python configure. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D16777

--HG--
extra : moz-landing-system : lando
2019-01-17 03:34:54 +00:00
Mike Hommey
5215f57b1d Bug 1520108 - Move MOZ_CONFIGURE_OPTIONS to toolkit/moz.configure. r=froydnj
It is only used to fill about:buildconfig.

Differential Revision: https://phabricator.services.mozilla.com/D16526

--HG--
extra : moz-landing-system : lando
2019-01-15 15:28:00 +00:00
Mike Hommey
7c72587da6 Bug 1519047 - Move FFVPX_ASFLAGS and related variables to python configure. r=nalexander
This also moves the corresponding ASFLAGS from moz.build to python
configure.

Differential Revision: https://phabricator.services.mozilla.com/D16320

--HG--
extra : moz-landing-system : lando
2019-01-11 18:17:36 +00:00
Mike Hommey
94ff361bf4 Bug 1519325 - Move D3D compiler DLL detection to python configure. r=froydnj
MOZ_D3D_CPU_SUFFIX and MOZ_HAS_WINSDK_WITH_D3D are not used in the
build, and nothing includes d3d10.h except some angle code in a
preprocessed branch that is only taken for a macro we never define,
so we don't move the code corresponding to those. We also simplify the
detection code, which is convoluted now that it doesn't search for
multiple different DLLs.

Differential Revision: https://phabricator.services.mozilla.com/D16295

--HG--
extra : moz-landing-system : lando
2019-01-11 22:21:24 +00:00
Mike Hommey
b8548a1071 Bug 1515528 - Disable accessibility on aarch64-windows. r=dmajor,chmanchester
Depends on D15265

Differential Revision: https://phabricator.services.mozilla.com/D15266

--HG--
extra : moz-landing-system : lando
2019-01-11 00:20:35 +00:00
Mike Hommey
9a0967dc5d Bug 1515579 - Use absolute paths for compilers, etc. r=ted
In bug 1259382, some workarounds were added to make the build system
alter PATH and not use absolute paths for toolchain programs, because
autoconf and the build system doesn't deal with spaces in those very
well. But later in bug 1290040, we made find_program return Windows
short paths (without spaces), which alleviates the need for those
workarounds.

We still, however, and unfortunately, need to alter PATH to account for
the fact that MSVC DLLs are not necessarily alongside the compiler
executables...

Depends on D15181

Differential Revision: https://phabricator.services.mozilla.com/D15182

--HG--
extra : moz-landing-system : lando
2019-01-10 23:37:46 +00:00
Mike Hommey
d5fbdc4b28 Bug 1519030 - Move libav-fft configuration to python configure. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D16157

--HG--
extra : moz-landing-system : lando
2019-01-10 22:00:41 +00:00
Tom Ritter
d1481c6b1d Bug 1460620 - Have MinGW look for d3dcompiler_47.dll (so it will be packaged) r=froydnj
--HG--
extra : amend_source : b9979cc3b72aa5f962342b150c525867eba82654
2019-01-08 15:16:39 -06:00
Nick Alexander
5e1f5eaca7 Bug 1518557 - Enable MOZ_GECKO_PROFILER on Android x86_64. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D15962

--HG--
extra : moz-landing-system : lando
2019-01-08 21:43:48 +00:00
Nick Alexander
2027f25d2b Bug 1496190 - Pre: Default L10NBASEDIR to correct value in automation. r=Callek
At some point we made L10NBASEDIR required.  That means that

env L10NBASEDIR=... make chrome-AB_CD

takes the value set by configure.  That is different than

make chrome-AB_CD L10NBASEDIR=...

which uses the value passed on the command line.  Rather than making
the latter style work with `mach build`, we instead set the "correct"
value for L10NBASEDIR in automation.

We could remove the --with-l10n-base stanzas from many automation
mozconfigs, but there's some small advantage to keeping them explicit.
Perhaps eventually we will remove them -- hopefully after
standardizing l10n vs l10n-central!

Differential Revision: https://phabricator.services.mozilla.com/D15776

--HG--
extra : moz-landing-system : lando
2019-01-07 19:21:21 +00:00
Mike Hommey
8123087c92 Bug 1516090 - Explicitly pass the compiler/preprocessor path to midl. r=froydnj
This is a followup to bug 1515579. Interestingly, midl just tries "cl"
in the PATH, and we've been lucky that the one it finds corresponds to the
target compiler and/or that it doesn't matter what architecture the
compiler targets for idl preprocessing..

Differential Revision: https://phabricator.services.mozilla.com/D15268

--HG--
extra : moz-landing-system : lando
2018-12-29 14:09:45 +00:00
Mike Hommey
f2a83c6ddf Bug 1516128 - Add missing compile flags in jpeg compile tests after bug 1515852. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15267

--HG--
extra : moz-landing-system : lando
2019-01-02 13:54:07 +00:00
Razvan Maries
196ea35cdf Backed out 2 changesets (bug 1515579) for causing bugs: 1516228, 1516090, 1516253. a=backout
Backed out changeset fcf2cca505d4 (bug 1515579)
Backed out changeset 1d645417b082 (bug 1515579)
2018-12-25 00:48:43 +02:00
Mike Hommey
cc04049ca0 Bug 1515579 - Use absolute paths for compilers, etc. r=ted
In bug 1259382, some workarounds were added to make the build system
alter PATH and not use absolute paths for toolchain programs, because
autoconf and the build system doesn't deal with spaces in those very
well. But later in bug 1290040, we made find_program return Windows
short paths (without spaces), which alleviates the need for those
workarounds.

We still, however, and unfortunately, need to alter PATH to account for
the fact that MSVC DLLs are not necessarily alongside the compiler
executables...

Depends on D15181

Differential Revision: https://phabricator.services.mozilla.com/D15182

--HG--
extra : moz-landing-system : lando
2018-12-21 23:05:40 +00:00
Mike Hommey
c683c549a5 Bug 1515852 - Move --with-system-jpeg to python configure. r=froydnj
We remove --disable-libjpeg-turbo because that's only useful when Yasm
is too old, and the required version is now almost 8 years old, so we
can reasonably require people to upgrade rather than workaround with a
--disable option.

The valid_yasm_version function can seem overkill, but that's because
future moves of other things to python configure will pile up.

Differential Revision: https://phabricator.services.mozilla.com/D15184

--HG--
extra : moz-landing-system : lando
2018-12-21 15:47:22 +00:00
Mike Hommey
d402239dae Bug 1515257 - Move --with-system-libvpx to python configure. r=firefox-build-system-reviewers,ted
Depends on D14951

Differential Revision: https://phabricator.services.mozilla.com/D14952

--HG--
extra : moz-landing-system : lando
2018-12-19 11:39:08 +00:00
Mike Hommey
9f78d85f7d Bug 1514448 - Only check for fxc/wine when building with a compile environment. r=froydnj
Bug 1514089 moved the check from toolchain.configure, which is only
included when a compile environment is available, to toolkit/moz.configure,
which doesn't have this limitation. As a consequence, artifact/l10n builds
ended up requiring those tools, while they didn't require them before.

Differential Revision: https://phabricator.services.mozilla.com/D14675

--HG--
extra : moz-landing-system : lando
2018-12-15 17:44:59 +00:00
Mike Hommey
c2b01ab3f1 Bug 1514089 - Move fxc and wine detection to toolkit/moz.configure. r=froydnj
They are not necessary to build e.g. standalone spidermonkey.

Differential Revision: https://phabricator.services.mozilla.com/D14513

--HG--
extra : moz-landing-system : lando
2018-12-14 14:56:04 +00:00
Mike Hommey
ab48d17e1a Bug 1513134 - Detect unnecessary --help dependencies. r=firefox-build-system-reviewers,gps
Depends on D14125

Differential Revision: https://phabricator.services.mozilla.com/D14126

--HG--
extra : moz-landing-system : lando
2018-12-11 19:34:28 +00:00
Cameron McCormack
16c45f1877 Bug 1512914 - Add an --enable-layout-debugger configure option r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D14048

--HG--
extra : moz-landing-system : lando
2018-12-10 15:47:36 +00:00
Sylvestre Ledru
ef05004811 Bug 1503537 - Get rid of the pdfium & mortar code r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D10352

--HG--
extra : moz-landing-system : lando
2018-11-28 19:31:21 +00:00
Andrew Osmond
33bcfcbc16 Bug 1509878 - Upgrade libwebp to version 1.0.1 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D12933
2018-11-26 12:47:25 -05:00
Mike Hommey
5f97599636 Bug 1507644 - Always enable wayland for artifact builds. r=chmanchester
Ideally, artifact builds would figure out the relevant buildconfig items
that are set in the artifacts they download, such as MOZ_WAYLAND,
MOZ_UPDATER, etc.

In the meanwhile, since artifacts that are being downloaded have wayland
support, we always set MOZ_WAYLAND when doing artifact builds.

Depends on D12074

Differential Revision: https://phabricator.services.mozilla.com/D12075

--HG--
extra : moz-landing-system : lando
2018-11-16 21:20:19 +00:00
Mike Hommey
03a178d7f6 Bug 1501218 - Enable wayland support with --enable-default-toolkit=cairo-gtk3. r=mshal
--enable-default-toolkit=cairo-gtk3-wayland is left to _force_ wayland
support being built in, while --enable-default-toolkit=cairo-gtk3 still
allows to build against a Gtk+ version that doesn't support wayland.

Differential Revision: https://phabricator.services.mozilla.com/D11433

--HG--
extra : moz-landing-system : lando
2018-11-14 22:50:43 +00:00
Bogdan Tara
3aead90715 Backed out changeset 3d38289ea246 (bug 1501218) for linux build bustages CLOSED TREE 2018-11-14 01:58:20 +02:00
Mike Hommey
eaa2f0b886 Bug 1501218 - Enable wayland support with --enable-default-toolkit=cairo-gtk3. r=firefox-build-system-reviewers,mshal
--enable-default-toolkit=cairo-gtk3-wayland is left to _force_ wayland
support being built in, while --enable-default-toolkit=cairo-gtk3 still
allows to build against a Gtk+ version that doesn't support wayland.

Differential Revision: https://phabricator.services.mozilla.com/D11433

--HG--
extra : moz-landing-system : lando
2018-11-13 22:49:46 +00:00
Mike Hommey
fa7adacfa0 Bug 1506027 - Don't define MOZ_WIDGET_GTK to a numerical value. r=mshal
And simplify related configure code a little.

Depends on D11434

Differential Revision: https://phabricator.services.mozilla.com/D11435

--HG--
extra : moz-landing-system : lando
2018-11-13 23:16:59 +00:00
Tooru Fujisawa
f3452023f8 Bug 1492716 - Part 2.1: Support empty string in help formatting rule and fixed some more cases. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D9631
2018-10-24 18:04:00 +09:00
Tooru Fujisawa
cd326f0e81 Bug 1492716 - Part 2: Add formatting rule to help text for --{enable,disable,with,without}. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D8834
2018-10-16 20:28:12 +09:00
Mike Hommey
939c8f01c4 Bug 1504938 - Require xkbcommon >= 0.4.1 when building with wayland enabled. r=firefox-build-system-reviewers,ted
Some XKB_* #defines are used that aren't available in older releases.

Differential Revision: https://phabricator.services.mozilla.com/D10996

--HG--
extra : moz-landing-system : lando
2018-11-06 15:29:24 +00:00
Martin Stransky
636020d26c Bug 1501944 - Enable to build wayland target on Gtk 3.10, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D10369

--HG--
extra : moz-landing-system : lando
2018-11-01 11:09:40 +00:00
Andrew Osmond
d87a27c07f Bug 1294490 - Part 5. Add --with-system-webp switch to build. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D8118
2018-10-31 15:01:08 -04:00
Lee Salzman
978391d1a2 Bug 1502152 - Skia m71 mozbuild fixes. r=rhunt 2018-10-30 22:17:34 -04:00
Mike Hommey
148c9de331 Bug 1498450 - Avoid the footgun from @depends-function comparison r=froydnj
While we do have some uses of @depends-function comparison in some
templaces, related to host/target, we ought to be using `is` comparisons
rather than `==` anyways, so we switch those, and prevent other kinds of
comparisons being used at all.

This unveils the one noted in
https://phabricator.services.mozilla.com/D7713?id=21357#inline-30414
(and surprisingly only that one), that we remove entirely since it was
doing nothing in practice. Bug 1492305 will have to add it back in a
proper form.

Differential Revision: https://phabricator.services.mozilla.com/D8501

--HG--
extra : moz-landing-system : lando
2018-10-12 13:44:08 +00:00
Randell Jesup
1fc52668ce Bug 1464509: configure changes to ensure jemalloc is used if the profiler is on r=ted 2018-10-09 22:29:02 -04:00
Mike Hommey
b4a498b215 Bug 1496327 - Remove MOZ_ENABLE_XREMOTE r=froydnj
Depends on D7691

Differential Revision: https://phabricator.services.mozilla.com/D7692

--HG--
extra : moz-landing-system : lando
2018-10-04 13:55:55 +00:00
Mike Hommey
0580b59e77 Bug 1496327 - Remove --without-x r=froydnj
Bug 1282866 removed the only configuration where it did something.
Since then, using it only leads to a configure error.

Differential Revision: https://phabricator.services.mozilla.com/D7691

--HG--
extra : moz-landing-system : lando
2018-10-04 13:54:18 +00:00
Nathan Froyd
e02e0b391b Bug 1397263 - move --enable-accessibility to moz.configure; r=mshal 2018-10-03 20:29:29 -04:00
Ted Mielczarek
f05bb2799a Bug 1397263 - move MIDL_FLAGS to toolkit/moz.configure; r=glandium
This is a straightforward port of MIDL_FLAGS from old-configure to
moz.configure. The only behavioral change is that it removes support for
prepending MIDL_FLAGS from the environment in configure, but I doubt anyone
uses that.
2018-10-03 20:29:29 -04:00
Ted Mielczarek
a6f6c8cfb4 Bug 1397263 - move MIDL checks to moz.configure; r=glandium 2018-10-03 20:29:29 -04:00
Markus Stange
3bf3108227 Bug 1457481 - Add a MOZ_GECKO_PROFILER_PARSE_ELF define that's only true on Android. r=ted
This will be used to conditionally compile the rust code for ELF binary parsing,
which will be used by the profiler to dump symbols from system libraries on
Android.

Ideally I'd like to make this only apply to Nightly + Beta configurations, and
not to Release, but there doesn't seem to be an easy way to differentiate
between Beta and Release and doing so might be frowned upon. So now it's going
to be built on all channels on Android, even Release, even though developers
won't be profiling Release channel builds much, and the extra code size isn't
all that valuable for our users.

We definitely need this code to be included on the Beta channel, though, because
Firefox Focus Nightly uses GeckoView from the Beta channel, and we want to get
good profiling information from Focus.

Differential Revision: https://phabricator.services.mozilla.com/D7020

--HG--
extra : moz-landing-system : lando
2018-10-02 01:49:13 +00:00