Commit Graph
5079 Commits
Author SHA1 Message Date
Mike Shal 94d53aefec Bug 1407403 - Handle IPDL code generation in the tup backend; r=gps
IPDL generation consists of a single ipdl.py invocation on all the
*.ipdl and *.ipdlh files in the tree. Unfortunately the headers that are
generated are placed into directories corresponding to the namespaces
declared within the IDPL, and can't be determined solely based on the
input filename. As such, we have to do a quick parsing of the AST in
order to grab the namespaces and calculate the filenames for the .h
files.

The downside of this approach is that all *.ipdl/*.ipdlh files are
considered inputs for the tup backend, so editing one will perform
moz.build generation before running ipdl.py. This could be fixed by
either standardizing the generated header layout, or fixing tup to
somehow allow unspecified outputs.

MozReview-Commit-ID: DzF2ryLEsrg
2017-10-23 10:44:11 -04:00
Sebastian Hengst 5a55d163c7 Backed out changeset 26c1d50db1c1 (bug 1407403) for py-compat failure: python/mozbuild/mozbuild/backend/tup.py:470:124 | inconsistent use of tabs and spaces in indentation. r=backout 2017-10-26 16:23:40 +02:00
Mike Shal bf2f2be908 Bug 1407403 - Handle IPDL code generation in the tup backend; r=gps
IPDL generation consists of a single ipdl.py invocation on all the
*.ipdl and *.ipdlh files in the tree. Unfortunately the headers that are
generated are placed into directories corresponding to the namespaces
declared within the IDPL, and can't be determined solely based on the
input filename. As such, we have to do a quick parsing of the AST in
order to grab the namespaces and calculate the filenames for the .h
files.

The downside of this approach is that all *.ipdl/*.ipdlh files are
considered inputs for the tup backend, so editing one will perform
moz.build generation before running ipdl.py. This could be fixed by
either standardizing the generated header layout, or fixing tup to
somehow allow unspecified outputs.

MozReview-Commit-ID: DzF2ryLEsrg
2017-10-23 10:44:11 -04:00
Attila Craciun a7a4b9e712 Merge inbound to mozilla-central r=merge a=merge 2017-10-26 12:20:45 +03:00
David Major 2f857c3fba Bug 1411661: Push Speedometer files down a level so they can refer to "../resources". r=froydnj,jmaher 2017-10-25 18:05:34 -04:00
Nathan Froyd f7fd01caad Bug 1411680 - fix clang toolchain downloaded by mach bootstrap on Linux; r=nalexander
We renamed this toolchain a while back, but never updated bootstrap.
2017-10-25 15:10:31 -04:00
Sebastian Hengst 54fa5fbf04 Merge mozilla-central to autoland. r=merge a=merge 2017-10-26 00:39:55 +02:00
Chris Manchester 46745a19ab Bug 1403346 - Implement clang-plugin cxxflags in moz.build. r=glandium
MozReview-Commit-ID: 9zSryJcTRGl
2017-10-25 15:12:10 -07:00
Chris Manchester 73ed85bc38 Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium
MozReview-Commit-ID: 1G2o4fy74cf
2017-10-25 15:12:09 -07:00
Chris Manchester 93bd0dd08b Bug 1403346 - Implement ALLOW_COMPILER_WARNINGS as a template. r=glandium
MozReview-Commit-ID: 611XXi8hCKm
2017-10-25 15:12:09 -07:00
Chris Manchester 531744e494 Bug 1403346 - Move C{XX}FLAGS to mozbuild computed flags. r=glandium
This also introduces C{XX}_LDFLAGS variables which contain cflags that
are meant to be passed to the linker, and adds them to various linker
command lines in place of CFLAGS.

MozReview-Commit-ID: GyKlD9nMqrt
2017-10-25 15:12:09 -07:00
Chris Manchester e90fc399c4 Bug 1403346 - Move OS_COMPILE flags to computed flags. r=glandium
MozReview-Commit-ID: JUHoBuJYG1T
2017-10-25 15:10:04 -07:00
Chris Manchester 1e9f5e61dd Bug 1403346 - Move RTL_FLAGS to computed flags. r=glandium
MozReview-Commit-ID: 9tOuNXjyJQD
2017-10-25 15:10:03 -07:00
Chris Manchester 9780bb5f9d Bug 1403346 - Move DSO_CFLAGS and DSO_PIC_CFLAGS to computed flags. r=glandium
MozReview-Commit-ID: Goo0cP6UEEo
2017-10-25 15:10:03 -07:00
Attila Craciun 3285ac9374 Merge inbound to mozilla-central r=merge a=merge 2017-10-25 12:30:28 +03:00
Geoff Brown ce476590fa Bug 1410911 - Only run test-verify when certain file types are changed; r=dustin
When first introduced, test-verify was only run when .js/.html/.xul/.xhtml files
were changed. Recently, it seems to run on every push. This is a speculative fix:
There may be confusion between "test-verify" and "test-verification" so I am
using "test-verify" consistently.
2017-10-24 15:17:27 -06:00
Ralph Giles cd4f26030b Bug 1411073 - av1: Log the output of generate_sources_mozbuild.sh. r=mshal
By default, run_process() eats the output of the child process,
which means when it fails we get an exception about the return
code, but none of the error messages the script printed, with
makes the cause of failure opaque.

Resolve this by passing a log_name parameter, which will cause
the default line_handler to pass all lines of output to the
local logging instance, by default at the INFO level.

MozReview-Commit-ID: FIVRggeKT4f
2017-10-23 14:15:11 -07:00
Sebastian Hengst 9a5a121c71 merge mozilla-central to autoland. r=merge a=merge 2017-10-24 23:59:14 +02:00
Mike Hommey fad00f8580 Bug 1411156 - Set MOZ_DEBUG globally as both a CONFIG and a #define. r=mshal
Bug 1365460 introduced code paths behind MOZ_DEBUG #ifdefs, but
MOZ_DEBUG is never defined, while it is available in CONFIG in
moz.builds. This is kind of a confusing situation, but the fact that
we've been able to avoid those problems for so long would tend to
put the blame on mozjemalloc, and fixes should go there.

Except that bug 1261161 explains that the only existing alternative
(the DEBUG #define), as used in MFBT, is not working for spidermonkey,
so it actually makes sense to converge to MOZ_DEBUG rather than DEBUG.

So start defining MOZ_DEBUG globally, fixing the mozjemalloc issues of
not having the debug code enabled. Bug 1261161 can then take care of
changing the DEBUG #ifdefs.
2017-10-24 14:07:37 +09:00
Gabriele Svelto 29a5b4e804 Bug 1411196 - Make |mach bootstrap| on Gentoo use the latest version of Oracle's JDK for Fennec builds; r=froydnj
MozReview-Commit-ID: 7bUtundkBZU
2017-10-24 11:15:16 +02:00
Gregory Szorc 524cde9ee3 Bug 1410969 - Add support for writing JSON from mach file-info; r=ahal
The feature should be pretty self-explanatory. It will enable easier
machine readable output.

MozReview-Commit-ID: GK148VCcNjm
2017-10-23 11:01:00 -07:00
Gregory Szorc bdf3025444 Bug 1410969 - Properly resolve wildcards in mach file-info; r=ahal
I likely regressed this as part of e9416a307987 (bug 1397406).

Before this change, '*' in filenames didn't work.

MozReview-Commit-ID: 33m83H6UTZ
2017-10-23 10:49:55 -07:00
Sebastian Hengst 89db2814b9 Backed out changeset 106f4a9da29f (bug 1411196) for flake8 linting failure at python/mozboot/mozboot/gentoo.py:55: line too long. r=backout 2017-10-24 15:33:14 +02:00
Gabriele Svelto 605217be28 Bug 1411196 - Make mach bootstrap use the latest version of Oracle's JDK when building fennec; r=froydnj
MozReview-Commit-ID: 7bUtundkBZU
2017-10-24 11:15:16 +02:00
Jonathan Watt 5d8b282921 Bug 1411546 - Make Eclipse CDT handle .jsm and .xul files. r=botond 2017-10-25 17:30:39 +01:00
Nathan Froyd 9039923443 Backout 8d9d8d96e403 (bug 1411680) because not finding toolchains with local changes is expected; r=me 2017-10-26 10:54:11 -04:00
Gurzau Raul c7c6b3bba2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-20 12:15:48 +03:00
Cosmin Sabou 3defe315fd Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-20 01:38:32 +03:00
Marco Castelluccio bc7a210ea9 Bug 1431753 - Add a test-coverage test suite, similar to test-verify, that runs tests in isolation in coverage mode. r=gbrown,jmaher 2018-04-19 19:19:31 +02:00
Brindusan Cristian fb02aba767 Backed out 3 changesets (bug 1431753) for android mochitest failures on mozharness/base/script.py CLOSED TREE
Backed out changeset bc062fa71ca7 (bug 1431753)
Backed out changeset df038cacff14 (bug 1431753)
Backed out changeset 381cc9c492f3 (bug 1431753)
2018-04-19 22:31:24 +03:00
Marco Castelluccio 213c64bb76 Bug 1431753 - Add a test-coverage test suite, similar to test-verify, that runs tests in isolation in coverage mode. r=gbrown,jmaher 2018-04-19 19:19:31 +02:00
Mike Shal 6e7fc19021 Bug 1416062 - Generated header files and wrappers should be in the installed-files group; r=chmanchester
We'll need all of these before compilation, so stick them all in the
same group.

MozReview-Commit-ID: Gl1zvnb1Bjt
2016-11-21 15:52:42 -05:00
Mike Shal 9685a9caff Bug 1416062 - xpidl/ipdl/webidl outputs should be in the installed-files group for tup; r=chmanchester
Since these processes generate header files that will be used for
compilation, they should output to the installed-files group. We can use
the installed-idls group to separate installing things into dist/idl
from the actual XPIDL processing.

MozReview-Commit-ID: K2zQz0HGOrb
2016-11-21 15:51:33 -05:00
Zibi Braniecki 715c198db3 Bug 1410451 - Do not merge en-US file for missing .ftl file in JarMaker. r=mshal
MozReview-Commit-ID: DxDAKGC7NKm
2017-10-20 09:12:29 -07:00
Xidorn Quan 5fcb150ba3 Bug 1403407 - Require cargo-vendor 0.1.12 to remove .cargo-ok. r=gps
MozReview-Commit-ID: 2LhIUMOvkRL
2017-10-01 21:32:50 +11:00
Steve Armand 7ea9949c3c Bug 1410752 - MacPorts in bootstrap.py is out of date, and fails on Sierra and High Sierra r=gps
MozReview-Commit-ID: gNjwQ26sZh
2017-10-22 21:40:29 -04:00
Andrew Halberstadt 50becf2346 Bug 1410454 - Fix ImportError regression in mozboot, r=nalexander
This fixes a regression from bug 1408365. Ideally these imports would
be defined at the top of the file, then the py2 linter would have caught
them. Even more ideally, mozboot would have some tests that hit these
code paths.

MozReview-Commit-ID: BWvIwAdUBF4
2017-10-20 14:31:47 -04:00
Ryan VanderMeulen 018945acfe Merge inbound to m-c. a=merge 2017-10-18 21:01:34 -04:00
Geoff Brown 5b2c890e72 Bug 1390606 - Include emulator in android sdk installation from 'mach bootstrap'; r=nalexander 2017-10-18 15:30:43 -06:00
Blake Kaplan d039250345 Bug 1406212 - Remove references to extensions.e10sBlocksEnabling. r=Felipe
MozReview-Commit-ID: 11q3Go0IkPh
2017-10-16 13:52:48 -07:00
Nick Alexander 9a6823d923 Bug 1406572 - Install Proguard JAR as part of |mach bootstrap|. r=rillian
I think we're approaching an inflection point for the bootstrapper,
one where it no longer is possible to bootstrap without a source
checkout.  For now, however, let's just do the simplest thing and
install the Proguard JAR along the happy path.

MozReview-Commit-ID: xUY37eE6oR
2017-10-17 15:48:32 -07:00
Nick Alexander cb1667ea5c Bug 1366644 - Part 3a: Update Android build-tools (25.0.3), Gradle (3.4.1), Android-Gradle (2.3.3). r=maliu
The goal is to use a newer Android-Gradle build plugin version (2.3.3
is latest stable).  That requires a modern Gradle (anything 3.3+, but
3.4.1 is the default from my Android Studio), and also a newer
build-tools (25.0.3 is latest stable).

The locations of lint output changed, and we want to use the standard
output location because it's difficult to accommodate variant details
in custom names.  We change the location of findbugs output to follow
suit.

This requires either:

- fixing lint errors
- adding to the lint whitelist
- using the new lint baseline

It's best to use the new lint baseline, which will happen in the next commit.

MozReview-Commit-ID: D19FzIDCJrE
2017-10-16 15:09:15 -07:00
Jonathan Watt cd05e1448b Bug 1409121 - Include the generated WebIDL and IPDL source files in Eclipse CDT. r=botond DONTBUILD NPOTB
MozReview-Commit-ID: Er2rCZs45N3
2017-09-29 20:07:40 +01:00
Jonathan Watt a3c81d5c7e Bug 1408795 - Disable Eclipse CDT's binary parser. r=botond DONTBUILD NPOTB
By default Eclipse CDT will scan the source tree for binaries so that it can
add those binaries to the list of things that it can run.  This scanning is a
constant interuption and can last several seconds.  Besides that, it's
currently useless for our setup since the only binaries that we're interested
in running are in the object directory (which it doesn't scan), and those are
set up during project generation.  (The only binaries found in the source tree
are a couple of uninteresting bundled libraries.)

CLOSED TREE

MozReview-Commit-ID: 2WaH8qceALq
2017-09-28 11:10:43 +01:00
Jonathan Watt 25d7fb39e3 Bug 1408795 - Disable Eclipse CDT's "scalability" mode for files with fewer than 15,000 lines. r=botond
By default, scalability mode is activated for files with 5,000 lines or more.
There are quite a few C++ files with more than 5,000 lines, and Eclipse seems
to work fine with them with scalability mode turned off (even
nsCSSFrameConstructor.cpp which is over 13,000 lines long).  Increasing the
number of lines before scalability mode is enabled allows Eclipse to handle
these files better.

MozReview-Commit-ID: 8mGYIHStHes
2017-09-28 10:57:30 +01:00
Jonathan Watt 3c1c61d993 Bug 1408795 - Have Eclipse CDT treat Objective-C files as C++. r=botond
Without this setting, eclipse will refuse to open Objective-C files (it will
defer to an external editor).  Adding *.mm to the file types that are treated
as C++ allows Eclipse to open them, and to provide some code assistance for
the bits of the files that it can understand.

MozReview-Commit-ID: ASeXesWxY4g
2017-09-28 10:36:53 +01:00
Jonathan Watt 260991054c Bug 1408795 - Enable Eclipse CDT's "Refresh using native hooks or polling" setting. r=botond
This setting allows Eclipse to notice when files it has open are changed
externally (such as by hg/git, for example).  It can then update the contents
that it has for the open files, avoiding annoying issues such as saving changes
after an `hg pull -u` resulting in either "Resource is out of sync" errors or
else clobbering of the changes hg made to files.

MozReview-Commit-ID: 8WmewM7lbHe
2017-09-28 10:12:47 +01:00
Jonathan Watt 714d6d39e7 Bug 1408795 - Prevent Eclipse CDT's blocking "Welcome" screen from showing on startup. r=botond
The blocking Welcome screen is quite confusing for a new user. It is not clear
where to find the Mozilla stuff they expect to see when opening Eclipse, or
that the user needs to close the entire content area to get to it. Besides that
the screen isn't very useful for Mozilla people who will find more relevant
help from searching the online documentation, and who won't be creating new
projects in the generated workspace, etc.

MozReview-Commit-ID: 8YssnonAR1d
2017-09-28 09:53:08 +01:00
Jonathan Watt 2746d55e71 Bug 1408795 - Turn off Eclipse CDT's "Ensure newline at the end of file" setting. r=botond
The setting to ensure that there is a newline at the end of files when they
are saved is very annoying.  Besides adding unnecessary and unexpected cruft
to diffs, some parts of the codebase (some of the reftest directories for
example) have a policy of NOT having a newline at the end of their files.

MozReview-Commit-ID: IjIYxDsKS13
2017-09-28 09:37:10 +01:00
Jonathan Watt df45c40a14 Bug 1408810 - Get the Eclipse CDT code formatter working again. r=botond
This makes us write the code formatter settings into the workspace settings
directory instead of the project settings directory.  This is preferable
since when users make settings changes they are more likely to work with the
workspace settings, so we should put them there.  Putting them there also
fixes a bug whereby the calls to _write_noindex/_remove_noindex would
overwrite the formatter settings file shortly after it had been created.

To get the formatter to show up in the UI we also need to set the formatter
settings as a one line pref value in the CDT UI settings.  This duplication
is what Eclipse does when a new formatter is manually added, and it's
necessary to get the formatter working correctly.

MozReview-Commit-ID: KP4w0VbNCF7
2017-09-27 19:43:16 +01:00