Commit Graph

1001 Commits

Author SHA1 Message Date
Sylvestre Ledru
53e13cf766 Bug 1051987 - Remove useless option which wasn't supposed to go in the commit
--HG--
extra : amend_source : 83ccc90a5ee1b0a41640d2b1451208add8dc2c5d
2014-08-18 15:33:51 +02:00
Sylvestre Ledru
a82b0c1825 Bug 1051987 - By default, hide the disabled commands. They are eating the display for no value. $ ./mach -v help bring them back. r=jmaher
From 7c2de97792113d3415acf2cfa1591fa05c5b07a8 Mon Sep 17 00:00:00 2001
 display for no value. $ ./mach -v help bring them back.
---
 build/mach_bootstrap.py        |  2 +-
 python/mach/mach/dispatcher.py | 14 +++++++-------
 python/mach/mach/main.py       |  3 +++
 3 files changed, 11 insertions(+), 8 deletions(-)
2014-08-11 18:31:24 +02:00
Mike Hommey
e82f0c3fce Bug 1053140 part 3 - Separate out sandbox infrastructure from moz.build variables storage. r=gps
--HG--
rename : python/mozbuild/mozbuild/frontend/sandbox_symbols.py => python/mozbuild/mozbuild/frontend/context.py
rename : python/mozbuild/mozbuild/test/frontend/test_sandbox_symbols.py => python/mozbuild/mozbuild/test/frontend/test_context.py
2014-08-15 13:52:18 +09:00
Mike Hommey
545a37b94f Bug 1053140 part 2 - Add a test for exported variable override. r=gps 2014-08-15 13:52:18 +09:00
Mike Hommey
1d975171da Bug 1053140 part 1 - Add a default_dict-like container, with a default_factory taking the key as argument. r=gps 2014-08-15 13:52:18 +09:00
Mike Hommey
dd1a8b4df8 Bug 1053097 - Delay the gathering of python dependencies for the build backend. r=gps 2014-08-15 13:52:18 +09:00
Mike Hommey
e16a30ebc8 Bug 1053085 part 2 - Move config environment fiddling out of MozbuildSandbox initialization. r=gps 2014-08-15 13:52:17 +09:00
Mike Hommey
7f451f989d Bug 1053085 part 1 - Rely on the config environment for TOPSRCDIR and TOPOBJDIR within frontend code. r=gps 2014-08-15 13:52:17 +09:00
Mike Hommey
c44b81f3c3 Bug 1053080 - Improve mozbuild.util.memoize and add memoized_property. r=gps 2014-08-15 13:52:17 +09:00
Ted Mielczarek
3f3545c38e bug 1050922 - Add an update method to FlagsFactory.Flags. r=gps 2014-08-14 12:12:04 -04:00
Ting-Yu Lin
3435f82b15 Bug 1049263 - Do not report ccache stats unless ccache was used. r=glandium 2014-08-08 03:06:00 -04:00
Mike Hommey
6b738fec38 Bug 1053072 - Cleanup metadata in the moz.build reader. r=gps
- parent and var were used for TOOL_DIRS/TEST_TOOL_DIRS, which were removed in
  bug 1043802.
- tier metadata was not really used, and tiers are going to go away soon
   anyways.
2014-08-14 07:15:44 +09:00
Mike Hommey
bd058eca27 Bug 1053071 - Simplify EXTERNAL_SOURCE_DIR handling. r=gps
As handled in configure.in, EXTERNAL_SOURCE_DIR is a single directory for
external sources, and more specifically, comm-central. There is no need
to handle it as a list in the moz.build emitter.

At the same time, avoid checking the external sources for every moz.build,
and bind it to a config environment.
2014-08-14 07:15:43 +09:00
Mike Hommey
f87114e885 Bug 1053070 - Output a nicer error when reassigning a variable in moz.build. r=gps 2014-08-14 07:15:40 +09:00
Mike Hommey
f7429125b0 Bug 1053069 - Make mozbuild.util.ReadOnlyDefaultDict raise an exception on update() and del. r=gps 2014-08-14 07:15:38 +09:00
Gregory Szorc
02603c4738 Bug 1052526 - Treat appending None to List as empty list; r=glandium
As a special exception, we change List's + and += operators to treat
"+ None" and "+= None" as "+ []" and "+= []" respectively.

This is a hack to make moz.build files simpler so they don't have to
perform "is x" checks before appending x.

While I was here, I fixed the implementation of List.__add__ to return a
List instead of list.

--HG--
extra : rebase_source : e61db4be4cf8144b092609d3baf84c372b9cf9a0
extra : amend_source : dfabc00765582764426f7cf74e79354a0bfb0824
2014-08-12 09:23:33 -07:00
Birunthan Mohanathas
8031546dc8 Bug 1049981 - Make error for non-existent files listed in SOURCES less ambiguous. r=ted 2014-08-10 11:13:38 -07:00
Sylvestre Ledru
ac9d156829 Bug 1050715 - Update the description of the various tests targed proposed by './mach help' r=jmaher
--HG--
extra : rebase_source : 29019a02711ffce5c148787517051855259b6446
2014-08-09 15:37:29 +02:00
Ehsan Akhgari
5a8158b74e Bug 1043390 - Don't use getSourceRepo on local builds; r=glandium 2014-08-07 21:29:39 -04:00
Joshua Cranmer
a043c5f64b Bustage fix for bug 1035599, r+a=bustage-fix for CLOSED TREE
--HG--
extra : rebase_source : 9fc6f0cc80749f869abf3124b6fecd490b023d1c
extra : amend_source : a53044cb583fb213903092848faccc087bab6289
2014-08-07 20:16:13 -05:00
Joshua Cranmer
ae0877aba9 Bug 1035599: Merge the mozilla-central and comm-central objdir, r=gps
This change merges mozilla-central and comm-central into having a single
topobjdir file but retaining two topsrcdirs (and two build systems). This state
is hopefully only the first part of a series of changes that eliminate the
comm-central build system partial clone completely.

--HG--
extra : rebase_source : 02aa2c4551df405d9783ac85cc41fe90b67bf057
extra : amend_source : d3cc677d59603648165bf65afa28413f2c40b2fd
2014-08-07 19:27:58 -05:00
Arnaud Bienner
f9674f5afd Bug 1047823 - Use a default value when getting CPPFLAGS from environment if they aren't set. r=glandium 2014-08-05 20:25:46 +02:00
Mike Hommey
1f543fad14 Bug 1047267 - Remove the trigger hacks added in bug 1043344. r=gps 2014-08-07 14:21:09 +09:00
Mike Hommey
19e8ecfce2 Bug 1047267 - Allow to reference libraries from third-party build systems in USE_LIBS. r=gps 2014-08-07 14:20:38 +09:00
Mike Hommey
0fdbce28ae Bug 1047267 - Add a memoize decorator to the mozbuild module. r=gps 2014-08-07 14:20:37 +09:00
Mike Hommey
1d5475041b Bug 1049281 - Remove static dirs handling, now that there aren't any. r=gps
Also do some overdue cleanup from the removal of parallel and tools dirs
2014-08-07 02:58:53 +09:00
Mike Hommey
1aa0b26726 Bug 1048799 - Improve mach build notification center errors. r=gps 2014-08-07 02:58:46 +09:00
Mike Hommey
8abd4db10f Bug 1045783 - Move OS_LIBS from a passthrough to a more fully supported variable. r=gps 2014-08-06 07:25:05 +09:00
Mike Hommey
9e61b58eaf Bug 1048702 - Error out when trying to add a string to a list in moz.build. r=gps 2014-08-06 07:24:27 +09:00
Ting-Yu Lin
42770334d1 Bug 947256 - Report ccache hit rate at the end of the build; r=gps
This patch add a line at the end of the build like follows:
ccache (direct) hit rate: 98.7%; (preprocessed) hit rate: 0.5%; miss rate: 0.8%

--HG--
extra : rebase_source : 9c814745516d7b8b0db2056a1fa0df540a5a239a
2014-07-30 02:23:00 -07:00
Ian Neal
1c7e2a8ded Bug 1047702 - recursivemake's scan for Makefiles with XPI_PKGNAME or INSTALL_EXTENSION_ID should take account of comm-central r=glandium 2014-08-02 02:52:52 +01:00
Jonathan Griffin
c0acc260fa Bug 1046991 - Fix error message when no build is present for mochitest-plain, r=ahal, DONTBUILD because NPOTB 2014-08-01 10:59:05 -07:00
Mike Hommey
40883c4328 Bug 1045969 - Use paths relative to root topobjdir for backend files for similar reasons as in bug 1045329. r=mshal
and paths relative to the "local" topobjdir for linkage.
2014-08-01 15:56:16 +09:00
Nathan Froyd
f4b3ba5577 Bug 1044162 - part 2 - remove JS_MODULES_PATH from the build system; r=mshal 2014-07-25 14:37:22 -04:00
Nathan Froyd
4246e6b6ea Bug 1044162 - part 1 - make EXTRA_{PP_,}JS_MODULES communicate their installation path; r=mshal
This patch makes EXTRA_{PP_,}JS_MODULES similar in functionality to
TESTING_JS_MODULES: we indicate the path relative to
$(FINAL_TARGET)/modules with an appropriate hierarchy of paths.
2014-07-25 13:40:07 -04:00
Nathan Froyd
8921315aa5 Bug 1044162 - part 0c - add a way to recurse over the 'directory' elements of a hierarchy; r=mshal
We're going to build on top of INSTALL_TARGETS for the next patch, and
it's easiest to do so if we can look at the 'directories' in the
hierarchy, rather than the individual strings.
2014-07-25 14:35:02 -04:00
Nathan Froyd
68165a1b87 Bug 1044162 - part 0b - add __{get,set}item__ to HierarchicalStringList; r=mshal
I am slightly surprised that we haven't needed this before, but the
motivating idea behind this is wanting to do:

VARIABLE.with.some["non-pythonic-identifier"] += ...

It seems unfortunate that the behavior is completely overridden by
subclasses, but I don't see a good way around that.
2014-07-25 14:29:57 -04:00
Nathan Froyd
6eea12bf47 Bug 1044162 - part 0a - make additions to EXTRA_JS_MODULES use += instead of =; r=mshal
Straight assignments to HierarchicalStringList, which we'll change
EXTRA_JS_MODULES to in a later patch, don't work.  This change, in
addition to making things work as expected later on, also is more
consistent with existing practice.
2014-07-25 13:50:55 -04:00
Mike Hommey
7f22e814ef Bug 1045329 - Use paths relative to the root topobjdir for the compile targets. r=gps
While most environments are using the root topobjdir, some can be using a
different path. This happens for comm-central files. For those, the compile
target needs to have paths relative to the root topobjdir instead of relative
to the comm-central topobjdir.
2014-07-30 11:00:54 +09:00
Mike Hommey
5146aedbbe Followup for bug 1043869 to remove test_link_deps from python/moz.build on a CLOSED TREE. r=gps 2014-07-29 10:21:57 +09:00
Mike Hommey
3424efc9f3 Bug 1043869 - Derive build dependencies for programs and libraries from make backend data instead of getting them from expandlibs. r=mshal 2014-07-29 08:59:56 +09:00
Mike Hommey
90e6ca0914 Bug 1043865 - Remove the remainder of compilation bits from the libs tier. r=gps 2014-07-29 08:59:27 +09:00
Mike Hommey
cc5c6d1ecc Bug 1043862 - Make the binaries target use the compile tier. r=gps 2014-07-29 08:58:28 +09:00
Mike Hommey
20d181268e Bug 1043820 - Remove PARALLEL_DIRS. r=gps 2014-07-29 08:57:59 +09:00
Mike Hommey
1e79fe55c2 Bug 1043802 - Remove TOOLS_DIRS and TEST_TOOLS_DIRS. r=gps 2014-07-29 08:55:55 +09:00
Ms2ger
f5a6e98287 Bug 1044657 - Move PYTHON_UNIT_TESTS to moz.build; r=mshal
As a first step, this moves PYTHON_UNIT_TESTS to moz.build as a passthru
variable. In the future, we could hook it up to |mach test|.

The __init__.py files may not need to be in the list, but I don't want to
change the list here.
2014-07-28 17:51:12 +02:00
Carsten "Tomcat" Book
8bc78e40e5 Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2014-07-28 16:30:30 +02:00
Carsten "Tomcat" Book
8329e0d768 merge fx-team to mozilla-central a=merge 2014-07-28 15:44:12 +02:00
Paul Adenot
952d97f13f No Bug - Revert part of 2fe40d407853 added by mistake.
--HG--
extra : rebase_source : 095450aa0f40d672187499e76f3aa70a7e8001a7
2014-07-28 15:40:02 +02:00
Wes Kocher
88a01acaab Merge m-c to fx-team 2014-07-25 16:27:34 -07:00