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

205 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner 39be58d801 Bug 1272086 - Remove now-unused MOZ_SOCIAL configure options. r=chmanchester
MozReview-Commit-ID: KjkKRo4NyDm

--HG--
extra : rebase_source : 0d4aadc9f350af1fb642a4fde6088cbcc2a4c344
2017-10-31 09:30:52 +00:00
Makoto Kato b55c2d4000 Bug 1411802 - Build stylo on Android as default. r=nalexander,snorp,jryans
- Building is nightly channel only.  Beta and release for Fennec 58 don't build
  stylo.  It means that the package size for 58 beta/release isn't incremented
  by this change.
- The preference for stylo is still turned off Nightly 58. It will be turned on
  59 after fixing some bugs for crashtests and etc.  Our target to enable stylo
  for Android is 59.
- ./mach bootstrap already installs clang etc to build stylo and bindgen.
  Developers for mobile won't require additional build options for this change.

MozReview-Commit-ID: CIpYl8I5d7x

--HG--
extra : rebase_source : 6387704e4a94db080d4add10298cf1cc254ddec0
2017-10-29 22:56:41 +09:00
Dan Glastonbury dbd544f296 Bug 1407487 - P1: Remove --enable-cubeb-remoting. r=kinetik,rillian
Replace with conditional compilation enabled for Linux targets.

MozReview-Commit-ID: GjD0Ix8aeJW
2017-10-19 18:02:50 +13:00
Christian Holler a351d70944 Bug 1406081 - Make --enable-coverage flag available in JS shell. r=froydnj
MozReview-Commit-ID: 5GGTGu2oMc3

--HG--
extra : rebase_source : 85c079b02f6b408ddfd13e518ed136c3a26b20b1
2017-10-05 18:30:26 +02:00
Chris Manchester 68ede80645 Bug 1401654 - Move MOZ_WEBRTC and some related defines to moz.configure. r=mshal
MozReview-Commit-ID: Kp7lCLqJ6FH

--HG--
extra : rebase_source : f2f9d3fb85e1c22df6c0c7cee3072e54a8b8b3e0
2017-09-20 16:29:39 -07:00
Jan Keromnes 01d2ba9d5f Bug 1398082 - Support compiling stylo with llvm-config-5.0 or llvm-config-6.0. r=froydnj
--HG--
extra : rebase_source : fad9693d6dedfb9bc2ecc8d8286bee40f4bb31bb
2017-09-12 13:04:00 -04:00
Christian Holler 75d68dab36 Bug 1386304 - Add and integrate asan-reporter system add-on. r=froydnj
MozReview-Commit-ID: IwE2LzofLz0

--HG--
extra : rebase_source : 49d5f79b0774837aa52c02a120f7c16272be157e
2017-07-31 15:13:38 +02:00
Nathan Froyd 1594b08efb Bug 1396683 - clarify bindgen error messages around clang; r=rillian
Stylo's recent enabled-by-default behavior, combined with some Linux
distributions's packaging of LLVM separately from Clang, causes
confusion.  To allay such confusion, rearrange the configure checks to
do two things:

1) Check for the clang binary prior to checking for clang's shared
   libraries; it should be more obvious what you need to install from
   an error about clang, and installing clang should pull in the
   necessary clang libraries, avoiding the following scenario:

     - run configure
     - get error message about libclang
     - install libclang
     - run configure
     - get error message about clang

2) Provide some context for what to do to avoid this error; the user may
not understand why we need a separate C/C++ compiler when they already
have a perfectly suitable one on their system.
2017-09-06 15:43:30 -04:00
Ralph Giles 2a7e53556d Bug 1395392 - Remove pocketsphinx options from configure. r=chmanchester
These were only enabled for b2g nightly builds, which we no longer
support, so these are unnecessary checks. The supporting code was
removed in bug 1396158.

MozReview-Commit-ID: 5oie28IlRz1
2017-09-06 08:54:47 -07:00
Ralph Giles d48e4560de Bug 1395392 - Clean up unnecessary variable. r=chmanchester
The `os` dereference here is only used in the error message,
and using it in the conditional tree doesn't really help
readability since it's too short; the target prefix is
helpful.

MozReview-Commit-ID: 4A8MpRH2r0p
2017-09-06 08:54:41 -07:00
Ralph Giles b0a2cdc0bd Bug 1395392 - Remove support for non-standard implied toolkit configs. r=chmanchester
This was a work-around for b2g work and is no longer used
by code we have in-tree.

MozReview-Commit-ID: DgZIecxqfB6
2017-09-06 08:54:30 -07:00
J. Ryan Stinnett 258ab1f0a4 Bug 1330412 - Enable Stylo by default. r=bholley,froydnj
MozReview-Commit-ID: LqrUHJ4WNFG

--HG--
extra : rebase_source : 1ae2b31908a252f448e6c4de86cde95f2d063fe1
2017-08-24 18:22:22 -05:00
Dan Glastonbury f1e1b786c6 Bug 1391523 - P5: Compile in audioipc crates. r=kamidphish
MozReview-Commit-ID: 6BC0fu1rrEE

--HG--
extra : rebase_source : b986541c97eee9eaa70bbc54ccfcd63b2d3fa006
2017-08-11 12:41:35 +10:00
Andrew Swan d48e863d10 Bug 1363897 Switch legacy extensions handling to option() r=glandium
MozReview-Commit-ID: 2DquMSM1ECJ

--HG--
extra : rebase_source : 16ced52d009e55a611155ec0aa7b7dbef7d6a87a
2017-08-17 11:48:44 -07:00
J. Ryan Stinnett 81c85dfb02 Bug 1366050 - Build with Stylo for Linux32. r=gps
Now that various Rust bindgen issues are resolved, we can build with Stylo
support on Linux 32-bit.

MozReview-Commit-ID: H1BHxZkOqky
2017-08-22 14:54:21 -05:00
Nicholas Hurley d4f64ba24e Bug 1391467 - Remove --enable-necko-protocols. r=gps,valentin
This patch removes the ability to select which protocols you want
included in necko, a wholly untested configuration that is broken in
practice. We have no need of this kind of configurability in necko.

In addition, this removes the final vestiges of rtsp support, which was
originally removed in bug 1295885 but still had some stuff hanging
around behind some ifdefs (that were never true).

MozReview-Commit-ID: KOEaDmit2IL

--HG--
extra : rebase_source : f6c2fdb972aaba46e922cda801252dc953550b94
2017-08-17 17:30:57 -07:00
Chenxia Liu 9c27584fe8 Bug 1386906 - Add Pocket keys to build system. r=chmanchester
MozReview-Commit-ID: 8fjcSkn1P7P

--HG--
extra : rebase_source : bb7d2a561517decdf3b05badaced27ea9e7e2000
2017-08-09 12:11:10 -07:00
Wes Kocher b6e3e08c6d Backed out changeset 59bc932c44ea (bug 1386906) for breaking single locale fennec builds a=bustage
MozReview-Commit-ID: 4z1nq8Z9gnV
2017-08-11 12:30:22 -07:00
Chenxia Liu 8b3a0e7bc2 Bug 1386906 - Add Pocket keys to build system. r=chmanchester
MozReview-Commit-ID: 8fjcSkn1P7P

--HG--
extra : rebase_source : 42c608d41e1262d0985dd9f59946a0732a971abc
2017-08-09 12:11:10 -07:00
Ricky Chien 7ebc576138 Bug 1382514 - Remove MOZ_PHOTON_PREFERENCES build flag r=jaws
--HG--
extra : rebase_source : e3df3a8ebbecbecfecb561f748a8c3b5f162bf99
2017-08-08 11:44:02 +08:00
Michael Kohler 674e1b96fb Bug 1366555 - Remove MOZ_PHOTON_THEME ifdefs and non-MOZ_PHOTON_THEME code. r=dao
MozReview-Commit-ID: 8w1vfF2yRui

--HG--
extra : rebase_source : 222d8e9d3b9543552ff5b08967375fa46d62b896
2017-08-08 12:09:14 +02:00
Jared Wein 76f886b972 Bug 1385913 - Remove MOZ_PHOTON_ANIMATIONS ifdef. r=Gijs
MozReview-Commit-ID: 40TP43EKPCU

--HG--
extra : rebase_source : 203f7449e8345ed5c779dfc4fd5e9bd515b89da8
2017-08-07 12:37:34 -04:00
Landry Breuil ea28e9774d Bug 1387510 - Use glob() when looking for libclang.so on OpenBSD. r=froydnj 2017-08-04 12:43:00 -04:00
Axel Hecht b9f1d30851 bug 1370506, for Nightly builds, automatically clone l10n repos for localized installers, r=glandium
Making more decisions on behalf of developers:

L10NBASEDIR is always defined, if not specified, it's ~/.mozbuild/l10n-central,
or in MOZBUILD_STATE_PATH/l10n-central if the state path in defined in the
environment.
If a locale isn't checked out, do that. The targets for which that works are
merge-%, installers-%, langpack-%

But only do that for Nightly builds, as for Beta and beyond, we have
explicit revisions to use for the builds, and we don't want to break release
builds silently with this.

MozReview-Commit-ID: EhGJPLuiyYO

--HG--
extra : rebase_source : 61a92396920965107a8811679552c1992b29155e
2017-06-15 19:47:28 +02:00
Ralph Giles c7c885bcbe Bug 1384258 - Build Stylo by default. r=chmanchester
Build Stylo (the styling system from servo) by default in all
builds for win32, win64, macOS and linux64 targets. It was
previously enabled for automation builds, so this just changes
the behaviour for local developer builds.

Note that this introduces a new dependency on libclang for the
binding generator. If you're developing on a tier-1 platform,
run `./mach boostrap` to install a working copy. Otherwise
llvm+libclang 4.0.1 is recommended.

Remove the explicit --enable-stylo=build in mozconfig.stylo
in favour of the configure default.

Add mozconfig.stylo to the hazard and debug-asan mozconfigs
so LLVM_CONFIG is defined properly for those builds.

Based on a patch by Bobby Holly in bug 1356991.

MozReview-Commit-ID: C2wRNl7JHpz

--HG--
extra : rebase_source : 1ed7c36a64e25b235a26864592cd7ea969a4cd25
2017-07-25 14:29:52 -07:00
Jared Wein 6848c874f5 Bug 1380585 - Add MOZ_PHOTON_PREFERENCES build-time flag to help with implementing visual refresh of preferences. r=chmanchester,rickychien
MozReview-Commit-ID: H9vWWeq9d1i

--HG--
extra : rebase_source : 3546ae2c178aa8e6e378f93b3ba2503c09172267
extra : source : 50b7c4e14304b5b788094d1eaead8940d3d73c99
2017-07-12 14:25:05 -04:00
Marco Castelluccio 0f9d4e1985 Bug 1380665 - Define MOZ_CODE_COVERAGE for the entire tree. r=jmaher 2017-07-13 19:12:23 +02:00
Ralph Giles 7c724f8669 Bug 1379341 - Prefer llvm-config from homebrew to mozbuild. r=gps
We've had trouble with crashes and hangs on macOS with
libclang builds from tooltool, so for local developer
builds we prefer the homebrew or macports packages
installed by `mach bootstrap`.

However, we were searching ~/.mozbuild before the homebrew
directory, resulting using the wrong libclang when developers
had run `mach bootstrap` before the switch, or anyone who
had used `mach artifact toolchain` on macOS.

MozReview-Commit-ID: JpLBDNthG6e

--HG--
extra : rebase_source : cca6f2772fd16425bd9b75cdfb4c7b60e4da577f
2017-07-07 19:20:34 -07:00
Gregory Szorc 7c45840cbd Bug 1375231 - Properly compare value for --enable-webrender; r=glandium
"value" here is a PositiveOptionValue, which behaves like a tuple.
Its __eq__ fails if the types of the operands aren't the same. A
string literal isn't a PositiveOptionValue, so the "value == 'build'"
check always fails. This meant that --enable-webrender=build was
always being interpreted as --enable-webrender. Yikes.

MozReview-Commit-ID: 57hWl0VqDmD

--HG--
extra : rebase_source : 44b858a4bbf9002813a16ba29429696005901ccc
2017-06-21 13:04:04 -07:00
Nathan Froyd 48d6d4d603 Bug 1310852 - part 2 - search for Homebrew and MacPorts's llvm-config when appropriate; r=rillian
Since Homebrew doesn't automatically place clang and associated binaries
on PATH, we need to do the task ourselves.  MacPorts does place the
binaries in PATH, but uses yet another name, so we have to add that to
the search list.
2017-07-03 11:13:05 -04:00
Bruce Sun 7946a11af0 Bug 1368948: [6/7] Build freetype when enabling SkiaPDF on Windows. r=glandium
Add the dependency between "MOZ_ENABLE_SKIA_PDF" and "MOZ_TREE_FREETYPE" on Windows:
 - let |tree_freetype| returns true if |skia_pdf| returns true on Windows, and
 - avoid defining "MOZ_ENABLE_CAIRO_FT" on Windows ("cairo-ft-font.c" includes <dlfcn.h>, which only exists on posix platforms)

MozReview-Commit-ID: 6CWVwzIHL1Q
2017-06-29 17:17:46 -07:00
Nathan Froyd e0674ba40d Bug 1376956 - use `find_program` to search for clang for bindgen configuration; r=rillian
llvm-config on Windows can return a path for the clang binary which does
not end in ".exe", which then causes failures when attempting to check
for the existence of the file.  Rather than attempting to simply tack
".exe" onto the file if it's not already there, delegate to
moz.configure's `find_program` function, which will take care of that
case and several others besides.
2017-06-28 18:41:52 -04:00
Mike Hommey 0bc3c0dfde Bug 1375798 - Figure out host library/object prefix/suffixes and use them for libclang. r=mshal
The libclang test wants to find a libclang library for use for rust bindgen.
But that's a host process, that needs a host libclang. However, we
currently only have the target library/object prefix/suffixes. This
works fine... except when cross-compiling.

So we need to figure out the proper ones for the host, and use those
instead. For that, we templatize library_name_info in order to get a
separate set of library/object prefix/suffixes for the host and the
target.

And we use the host set for the libclang check.

Ideally, the build system would also use the host set for host tools
builds, but we'll leave that to a followup.

--HG--
extra : rebase_source : 1970791d6d5f9b3f79fbe34b7e3d05dd4b5c3f7b
2017-06-23 15:12:04 +09:00
Mike Hommey 2b86683647 Bug 1375798 - Reorganize the library_name_info function. r=mshal
The function as it currently is matches how things were done in
old-configure.in. However, that's just confusing and hard to follow. In
fact, the unit test failing numerous times while writing this patch
pretty much highlights the problem.

So instead of a confusing set of overrides to the prefixes and suffixes,
spell out the whole set for each set of platforms. This also happens to
make the function shorter. Win/win.

At the same time, we normalize the function output as a nested
namespace, where we get, for each of dll, lib, import_lib, etc. a
prefix/suffix pair. Further down the road, we can imagine changing those
to class instances with a method allowing to format file names based on
those prefix/suffixes.

--HG--
extra : rebase_source : c18520d4df54feeea0a7f9588bc3cf8346793aaf
2017-06-23 15:05:06 +09:00
Ralph Giles f079cebc09 Bug 1369932 - Enable av1 playback in nightly Windows builds. r=froydnj
Enable for Windows targets now that they're building.

MozReview-Commit-ID: HTitN5FKV7F

--HG--
extra : rebase_source : 06dbfbd99fe21ee6a14c9ece69c343172356a974
2017-06-02 14:42:17 -07:00
Nicholas Nethercote 784f6f2ee9 Bug 1374908 - Remove --enable-systrace. r=glandium.
This option causes MOZ_USE_SYSTRACE to be defined. The only use of that is in
GeckoProfiler.h where it causes the PROFILER_PLATFORM_TRACING macro to set
android::ScopedTrace. But android::ScopedTrace was defined in widget/gonk/
which was recently removed, so this won't work any more.

Furthermore, all that android::ScopedTrace did was to do a pair of
atrace_{begin,end}() calls, which doesn't seem that useful.
2017-06-21 14:06:22 +10:00
Nathan Froyd 2bc177cc76 Bug 1375168 - check for llvm-config where `mach bootstrap` would install it; r=rillian
For ease of use, we want to make checks for llvm-config automatically
examine the directory where `mach bootstrap` would install things, so
users don't necessarily have to have a mozconfig when building stylo.
Since the computation of this value is non-trivial, we pull out the
whole list of possible names for llvm-config into a @depends function,
and insert the computed value into that list when necessary.
2017-06-22 17:15:59 -04:00
Brian Birtles (:birtles) 3ea6292651 Bug 1363655 - Unwrap (lib)clang_path before passing it to os.path.* methods; r=froydnj
It seems like when we get (lib)clang_path from a --with-(lib)clang-path option
it has type PositiveOptionValue. If we pass that directly to os.path.exists or
os.path.isdir we will get:

  TypeError: coercing to Unicode: need string or buffer, PositiveOptionValue found

This patch makes us unwrap those values before passing them.
2017-06-22 14:29:50 -04:00
Wes Kocher d0eddcaa44 Merge m-c to autoland a=merge
MozReview-Commit-ID: 5D2HzsGopzc
2017-06-21 18:13:41 -07:00
Nathan Froyd 622cba0919 Bug 1363655 - part 8 - check for the existence of a libclang bindgen will use; r=rillian
Ideally this check will alert people that something is wrong with their
configuration.  This check shouldn't normally be firing with our `mach
boostrap` setup, but if somebody chooses to install distribution
packages for some reason, this will at least prevent some problems.
2017-06-21 13:28:37 -04:00
Nathan Froyd 608a0616fe Bug 1363655 - part 7 - make stylo bindgen bits depend on a compile environment; r=rillian
People building without a compilation environment (artifact builds, l10n
builds) won't have a compiler available, let alone the bits to build
bindgen.  We should limit our checks for bindgen-y things accordingly.
2017-06-21 13:28:37 -04:00
Nathan Froyd 2382b9da09 Bug 1363655 - part 6 - remove the `stylo` configure function; r=rillian
After the previous set of patches, it's just a bloated wrapper for
bindgen_config_paths.
2017-06-21 13:28:37 -04:00
Nathan Froyd a230d5cae9 Bug 1363655 - part 5 - make things properly depend on stylo bindgen building; r=rillian
Prior to this patch, we had a not-so-great hack in place: the bit of
configure that determined bindgen config paths *and* the bit of
configure that returned various pieces of information about Stylo were
both guarded on --enable-stylo-build-bindgen.  We should really only
have one place that depends on --enable-stylo-build-bindgen, and this
patch puts us in a place to do that, by making bindgen_config_paths
properly use a when= argument to determine when it needs to run.

This commit makes the `stylo` function entirely redundant, and said
function will be removed in the next patch.
2017-06-21 13:28:37 -04:00
Nathan Froyd c0ebcb333b Bug 1363655 - part 4 - remove bindgen_enabled key from namespace returned from stylo; r=rillian
We can get this information directly from --enable-stylo-build-bindgen.
2017-06-21 13:28:37 -04:00
Nathan Froyd 70ed6d3da5 Bug 1363655 - part 3 - remove stylo.build key in favor of stylo_config.build; r=rillian
stylo.build is just a copy of stylo_config.build, so we should use the
former to limit the number of duplicate concepts we have.  Using
stylo_config consistently enables us to separate out what artifact
builds need vs. non-artifact builds.
2017-06-21 13:28:37 -04:00
Nathan Froyd 6acf66edca Bug 1363655 - part 2 - check for existence of paths returned by llvm-config; r=rillian
On some systems, llvm-config may be installed, but not the files to
which it needs to refer.  We should ensure that the values returned
actually make some sense.
2017-06-21 13:28:37 -04:00
Nathan Froyd dbd4e424b9 Bug 1363655 - part 1 - clarify the required values for stylo bindgen options; r=rillian
--with-libclang-path is supposed to be a directory, and
--with-clang-path is supposed to be a file, but it was easy to pass a
directory for the latter, and it was easy to misinterpret the
documentation for --with-libclang-path as pointing to one of the
libraries themselves.  Clearer documentation and additional checks
should help with this situation.
2017-06-21 13:28:37 -04:00
Gregory Szorc d34a0c3506 Bug 1374824 - Fix --enable-stylo value processing; r=froydnj
The argument passed to the function is a PositiveOptionValue,
which represents its option values as a tuple. The __eq__ for
this type first compares type() of the operands. Since the
previous code compared a PositiveOptionValue to a string
literal, this always failed. There's possibly room to
improve the behavior of PositiveOptionValue. But for now,
let's rewrite stylo_config() so it works.

MozReview-Commit-ID: B4vkYwCDHrb

--HG--
extra : rebase_source : 639711bde7b96749405905825aae37a7908554a8
2017-06-21 12:17:37 -07:00
Nathan Froyd fc95670240 Bug 1374432 - enable stylo attribute for tests only if stylo is enabled; r=jgraham
If we don't do this, various bits of test infrastructure will turn on
when stylo is merely built, not enabled, which will cause no end of
orange and unhappiness.
2017-06-20 11:34:37 -04:00
Chris Manchester 814dae1db3 Bug 1370535 - Provide a useful error message when passing --enable-geckodriver in artifact bulds. r=froydnj
MozReview-Commit-ID: 88TlmFAdOuf

--HG--
extra : rebase_source : 663ebb22aeafb85a0b2adb163b12b4d08b6d19a0
2017-06-19 08:57:43 -07:00