Commit Graph

549 Commits

Author SHA1 Message Date
Mike Hommey
811693f3aa Bug 1292069 - Remove the cleansrcdir target. r=gps
It has not been useful since we removed the possibility to build in the
source directory.

--HG--
extra : rebase_source : 479100785c8253ea3e255ebbda4b3538e8ed33ff
2016-08-04 17:34:05 +09:00
Mike Hommey
721ada9f07 Bug 1278415 - Ensure MOZ_CURRENT_PROJECT is set when running make directly in objdir. r=gps
The topobjdir-finding logic in mozbuild relies on MOZ_CURRENT_PROJECT
being set, and it's currently only set when going through client.mk.

On automation, during universal builds, make check is invoked directly
in one of the objdirs, so MOZ_CURRENT_PROJECT is not set. We've had
other similar problems in the past. Ensuring MOZ_CURRENT_PROJECT is set
in the objdir itself should reduce the risk of other such issues in the
future.
2016-06-16 11:43:30 +09:00
Mike Hommey
a9067e9211 Bug 1244446 - Run automation build steps before postflight_all. r=gps,r=ted
Killing the sccache background daemon is part of postflight_all, but in
the current setup, postflight_all happens at the end of a "normal" build,
but we run automation build steps after that.

What happens then is that more compilations happen (gtests), which start
sccache again, but there's nothing to kill sccache again once this is
all done.

Now that the OSX universal builds postflight is gone, it is not
necessary for postflight_all to happen before the automation build steps.
So ensure postflight_all scripts happen last.

The downside of this change is that this now prevents sccache.log from
being uploaded, but we should probably send processed data to the graph
server instead.
2016-06-07 07:41:22 +09:00
Carsten "Tomcat" Book
c51c48ac35 Backed out changeset 1d2c46c8c7c7 (bug 1244446) 2016-06-06 14:28:44 +02:00
Mike Hommey
8fdf97ddfe Bug 1244446 - Run automation build steps before postflight_all. r=gps,r=ted
Killing the sccache background daemon is part of postflight_all, but in
the current setup, postflight_all happens at the end of a "normal" build,
but we run automation build steps after that.

What happens then is that more compilations happen (gtests), which start
sccache again, but there's nothing to kill sccache again once this is
all done.

Now that the OSX universal builds postflight is gone, it is not
necessary for postflight_all to happen before the automation build steps.
So ensure postflight_all scripts happen last.

The downside of this change is that this now prevents sccache.log from
being uploaded, but we should probably send processed data to the graph
server instead.
2016-06-06 14:18:39 +09:00
Chris Manchester
c5d43daf24 Bug 1264703 - Add configure as a tier to build metrics. r=gps
This adds a "tier" to build status that measures the time to run configure
and config.status.

MozReview-Commit-ID: GxAD5ucjlUI
2016-04-15 09:17:40 -07:00
Mike Hommey
eb64e3f2f7 Followup for bug 1264129 - Give the executable bit to configure. r=me
Also touch old-configure.in and js/src/old-configure.in to force
configure and js/src/configure to be updated.
2016-04-13 10:43:06 +09:00
Mike Hommey
f6afb516c8 Bug 1264129 - Use sed to update configure from configure.in, instead of autoconf. r=gps
The configure.in is a small wrapper around python configure, that is
still a m4 script so that people running autoconf manually can still
do so without breaking their stuff (and we have jobs that do that
on automation as well).

But considering how simple the m4 is, to avoid having the autoconf
checking code twice (once in client.mk and once in
build/moz.configure/old.configure), we can just process it with sed
instead of autoconf.
2016-04-13 10:07:52 +09:00
Gregory Szorc
ecfbed3062 Bug 1253057 - Record PGO phases as build tiers; r=ted
This will enable each PGO phase to show up in mach's resource reporting,
making it easier to compare PGO runtime across machines. This does
confuse the rendering of `mach resource-usage` a bit since it doesn't
know how to handle overlapping tiers. But the raw data is captured as
expected. I don't think `mach resource-usage` is that heavily used right
now, so I don't care about a minor regression for PGO builds.

MozReview-Commit-ID: HalvEwITmif

--HG--
extra : rebase_source : 5c27c6bda814cd61c0da792d9336980dc4f530a9
2016-03-03 09:47:44 -08:00
Mike Hommey
7df9087b2b Bug 1250294 - Make configure a Python script that invokes the old configure.sh. r=ted
--HG--
rename : js/src/configure.in => js/src/old-configure.in
rename : configure.in => old-configure.in
2016-02-25 07:22:33 +09:00
Mike Hommey
fd36539df9 Bug 1246881 - Generate a header defining MOZ_BUILDID. r=mshal 2016-02-12 07:15:55 +09:00
Mike Hommey
b81437ebb1 Fixup for bug 1188766 for valgrind bustage on a CLOSED TREE. r=me 2015-08-11 07:45:36 +09:00
Mike Hommey
cb7ad8ebc8 Bug 1188766 - Avoid exporting UPLOAD_EXTRA_FILES from mozconfig. r=mshal
The way UPLOAD_EXTRA_FILES is currently exported makes the files added
to the list added in each directory that is being traversed recursively
because of the += in .mozconfig.mk, combined with "export".

The easy way out is to remove the export altogether, but being unsure of
the side effects of putting all non exported mk_add_options variables
in .mozconfig.mk, limit this to UPLOAD_EXTRA_FILES.
2015-08-11 07:22:31 +09:00
Sylvestre Ledru
2cfaca06a1 Bug 1176533 - Rename the variable MOZ_APP_VERSION_ABOUT for something more general r=glandium
--HG--
rename : browser/config/version_about.txt => browser/config/version_display.txt
2015-07-11 19:37:54 -06:00
Sylvestre Ledru
129cd51990 Bug 1175148 - Retrigger the build when version_about.txt is touched r=glandium
--HG--
extra : rebase_source : 84c11a2d557ea5b7a4f186212d53330f1dffd486
2015-06-17 12:46:28 +02:00
Arnaud Sourioux
793d15a613 Bug 1077622 - Fixes cp missing operand message if no .mozconfig found r=glandium
--HG--
extra : rebase_source : a0abb840acf92079696b2f69219ff30e3bdfa90c
2015-03-02 10:09:00 +01:00
Mike Hommey
1ca74b7577 Bug 1082323 - Reject pymake in client.mk. r=mshal 2014-10-14 14:19:02 +09:00
Mike Hommey
a708c2466e Backed out changeset b30422149e3e (bug 1082323) because this version is terribly broken. 2014-10-15 14:55:36 +09:00
Mike Hommey
d3873016bb Bug 1082323 - Reject pymake in client.mk. r=mshal 2014-10-15 14:49:09 +09:00
Mike Hommey
8648e9ccc2 Bug 1071438 - Make client.mk detect python like configure and mach do. r=mshal 2014-09-24 07:57:10 +09:00
Mike Hommey
eedb419830 Bug 1042432 - Change how UPLOAD_EXTRA_FILES is passed down from mozconfig.cache to the build system. r=mshal 2014-08-14 07:15:35 +09:00
Mike Hommey
ab753cf81e Bug 1033958 - Avoid running configure on every build when mozconfig changes $PATH. r=gps 2014-07-04 08:07:24 +09:00
Mike Hommey
bc0709dc9e Bug 762358 - Re-run configure when mozconfig changed in a significant way. r=gps
This adds a format option to mach environment and uses it in client.mk to
create a .mozconfig.json in the objdir, containing all the relevant data
from mozconfig. If the mozconfig doesn't change in a way that alters that
data, we still skip configure.

At the same time, use mach environment in place of mozconfig2configure and
mozconfig2client-mk, which makes us now have only one mozconfig reader.

Also, in the mozconfig reader, keep track of environment variables (as
opposed to shell variables), so that changes such as a variable that was
exported not being exported anymore is spotted. At the opposite, in order
for irrelevant environment variable changes not to incur in re-running
configure, only a set of environment variables are stored when they are
unmodified. Otherwise, changes such as using a different terminal window,
or even rebooting, would trigger reconfigures.

Finally, make mach environment emit both MOZ_OBJDIR and OBJDIR for
client.mk, and cleanup some objdir-related things in client.mk..
At the same time, make the mozconfig reader take MOZ_OBJDIR from the
environment if it is defined there and not in the mozconfig.
2014-07-03 07:15:31 +09:00
Mike Hommey
b161fa67a5 Bug 1027890 - Remove all sorts of build system code dedicated to pymake. r=gps 2014-06-25 08:38:28 +09:00
Brian Smith
ac290368ad Bug 883339: Enable "mach gtest" on Windows, but leave GTest disabled for "make check", r=glandium
--HG--
extra : rebase_source : e62eac1e5e70293d3c9df5406c996097abccbd3a
2014-06-08 19:00:58 -07:00
Wes Kocher
b683b68251 Backed out 2 changesets (bug 1027890) for B2G Windows Build bustage on a CLOSED TREE
Backed out changeset bcd694f0e95d (bug 1027890)
Backed out changeset 49cadfcde709 (bug 1027890)
2014-06-24 18:33:46 -07:00
Mike Hommey
195a1f903a Bug 1027890 - Remove all sorts of build system code dedicated to pymake. r=gps 2014-06-25 08:38:28 +09:00
Mike Shal
0bfb7d3b01 Bug 978211 - add an automation/build target for post-build steps; r=glandium 2014-05-16 14:37:31 -04:00
Mike Hommey
554588845b Bug 1006956 - Disable sccache on non-try PGO builds. r=mshal 2014-05-15 07:14:37 +09:00
Gabriele Svelto
f3dc543fc2 Bug 888698 - Make client.mk pass the top-level -j parameter to the recursive invocations. r=glandium 2014-04-25 19:19:24 +02:00
Mike Hommey
4ab29954d0 Bug 991976 - Only fail creating .mozconfig.mk once. r=mshal 2014-04-04 14:57:36 +09:00
Mike Hommey
686f6935cf Bug 990848 - Ensure .mozconfig.mk is created after clobbering. r=mshal 2014-04-02 11:52:49 +09:00
Mike Hommey
71a7b66679 Bug 950298 - Make the js build system use top-level as its root objdir. r=gps 2014-01-14 07:38:40 +09:00
Cykesiopka
57737a4401 Bug 835150 - Remove fast-package make target and references to MOZ_FAST_PACKAGE. r=mshal 2013-12-12 17:36:59 -05:00
Mike Hommey
881a7c1554 Bug 943728 - Replace double quotes with single quotes in Makefiles (or remove them when it makes sense). r=mshal 2013-12-03 06:34:21 +09:00
Alexandros Chronopoulos
8532befc2c Bug 704316 - Remove reference to deleted mozilla-dos2unix. r=ted 2013-11-17 12:02:55 +02:00
Mike Hommey
4f78aaefaf Bug 915537 - Fix mach build --jobs. r=gps 2013-11-16 13:40:03 +09:00
Mike Hommey
0547bcf728 Bug 925605 - Allow to build with a special build of GNU make on windows. r=gps 2013-10-16 08:34:18 +09:00
Wes Kocher
1ec4cf1ebf Backed out changeset 5f0bfb16fa4a (bug 925605) 2013-10-15 16:57:00 -07:00
Mike Hommey
616f4b2735 Bug 925605 - Allow to build with a special build of GNU make on windows. r=gps 2013-10-16 08:34:18 +09:00
Mike Hommey
3e03c7c499 Bug 926900 - Remove msys-make specific mozconfig. r=gps 2013-10-16 08:31:18 +09:00
Gregory Szorc
5916036948 Bug 794506 - Part 1: Move virtualenv code under mozbuild; r=ted
--HG--
rename : build/virtualenv/packages.txt => build/virtualenv_packages.txt
rename : build/virtualenv/populate_virtualenv.py => python/mozbuild/mozbuild/virtualenv.py
2013-09-20 15:46:23 -07:00
Mike Hommey
24040102a2 Bug 913246 - Fix configure with relative MOZCONFIG. r=gps 2013-09-06 11:24:43 +09:00
Mike Hommey
d96a2ab84e Fixup for bug 911634. r=gps 2013-09-05 09:18:49 +09:00
Mike Hommey
cda48ada2e Bug 911936 - Kill make depend. r=gps 2013-09-05 09:01:45 +09:00
Mike Hommey
09b7788e66 Bug 911634 - Create a .mozconfig.mk in the objdir when starting a build, and include it from config.mk. r=gps 2013-09-05 09:01:44 +09:00
Mike Hommey
04daefa195 Back out changeset 6fe5a446b775 (bug 903118) 2013-09-05 09:01:44 +09:00
Mike Shal
95b7b7aab1 Bug 903118 - set mozconfig environment variables for sub-makes; r=gps 2013-08-14 09:34:18 -04:00
Mike Hommey
7f86c0e471 Bug 873640 - Fix and cleanup profiledbuild profile script invocation. r=ted 2013-05-21 08:28:49 +02:00
Gregory Szorc
dc5bde303f Bug 828317 - Require pymake to build on Windows; r=ted 2013-03-06 12:05:24 -08:00
Ed Morley
d46314dc33 Bug 863091 - Make auto clobbering opt-in rather than opt-out; r=glandium
To avoid surprises for devs building locally, auto clobbering is now opt-in, via
the use of |mk_add_options AUTOCLOBBER=1| in the mozconfig. Our automation uses
build/mozconfig.common which specifies this, so auto clobber will remain enabled
for our buildbot machines.
2013-04-25 13:41:17 +01:00
Gregory Szorc
d93f593627 Bug 837323 - Automatically clobber when CLOBBER is updated; r=ted, glandium 2013-03-29 10:34:58 -07:00
Ryan VanderMeulen
ef526e586a Backed out changesets 206bb159d62f, a6ab3e11f721, and a61aa08ab4ac (bug 837323) for frequent Windows fatal clobber errors on a CLOSED TREE. 2013-04-08 09:59:45 -04:00
Gregory Szorc
3e2b83c475 Bug 837323 - Automatically clobber when CLOBBER is updated; r=ted 2013-03-29 10:34:58 -07:00
Gregory Szorc
bbaccdd804 Bug 784841 - Part 19: Remove allmakefiles.sh and friends; r=ted 2013-02-25 14:09:16 -08:00
Mike Hommey
026abf6d83 Bug 840094 - Change how nsZipArchive logging works. r=taras,r=gps
Now log in a single file given by the MOZ_JAR_LOG_FILE environment variable.
Log entries contain the URI of the Zip archive, followed by the path in the
archive.
* * *
Bug 840094 - Fixup for debug builds failure because of nsZipArchive::CloseArchive being called several times
2013-02-19 11:02:12 +01:00
Jeff Hammel
c5984d50e5 Bug 830996 - implement a way to DRY mozbase packages for m-c;r=gps
--HG--
extra : rebase_source : 47c989854e95e0df97f3af656bba83a91bbef33a
2013-01-25 21:51:08 -08:00
Benoit Girard
72c2f648db Bug 717372 - The clobber information should live in the tree; r=khuey 2012-03-13 13:00:24 -04:00
Gregory Szorc
33590d14e9 Bug 815219 - Part 1: Automatically build using all available processor cores; r=ted 2012-11-27 14:01:17 -08:00
Ehsan Akhgari
7e34c81340 Backed out changeset 6b87b58ff491 (follow-up to bug 793953) because of make insanity
DONTBUILD this, like the ones before it
2012-09-26 15:47:11 -04:00
Ehsan Akhgari
5102c2f516 Bug 793953 follow-up: use the ?= syntax to get rid of the explicit condition; irc-r=glandium
DONTBUILD this either!
2012-09-26 15:15:41 -04:00
Ehsan Akhgari
01699a5f74 Bug 793953 - Support autoconf2.13 installed through fink; r=khuey
DONTBUILD
2012-09-25 00:17:32 -04:00
Siddharth Agarwal
4a2d60c32f Bug 781431 - A few minor build system improvements. r=ted
1. mozconfig2client-mk still refers to $HOME/.mozconfig, even though we
removed it a while ago. Thanks to Neil for pointing it out.
2. MOZCONFIG_FIND and MOZCONFIG_MODULES are no longer used by client.mk.
3. Make CONFIG_GUESS a script that runs just once per client.mk invocation.

--HG--
extra : rebase_source : ec75ebcc5cea004f64abafb8a219e828234237de
2012-08-15 22:06:43 +05:30
Siddharth Agarwal
95206f4816 Bug 780222 - Address review comment. 2012-08-07 02:46:02 +05:30
Siddharth Agarwal
2f58914b99 Bug 780222 - Remove redundant check-sync-dirs call in js/src/Makefile.in. r=ted
--HG--
extra : rebase_source : 05faaef0dfb039ff5405fb756bcbd3267f476a3f
2012-08-07 02:38:38 +05:30
Siddharth Agarwal
c18e108e90 Bug 779922 - Export Windows-style paths in the in-tree mozconfig.vs2010 when building under Pymake. r=ted
--HG--
extra : rebase_source : bb3dff7e94b53efe79801a2b3bfc6cd78ef47ac3
2012-08-07 02:37:11 +05:30
Siddharth Agarwal
91d92e952e Bug 780421 - Use $(PYTHON) to run config.status. r=glandium 2012-08-05 12:42:57 +02:00
Mike Hommey
e5d69586e3 Bug 774032 part 6 - Replace autoconf handling of config files and headers with our own. r=ted 2012-08-04 08:47:28 +02:00
Gregory Szorc
60d46c638c Bug 774106 - Don't use Makefile.in to populate virtualenv; r=glandium 2012-07-23 00:19:30 -07:00
Mike Hommey
0195babdb4 Bug 772841 - Use make package instead of make stage-package before profile run, but avoid package signing. r=ted,r=catlee 2012-07-13 00:02:12 +02:00
Mike Hommey
39147d2cc2 Bug 762358 - Don't create a .mozconfig.mk file, and re-run configure when .mozconfig changed. r=ted 2012-06-19 09:12:43 +02:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
John O'Duinn
46573c96f4 bug 707569 - build_and_deploy should use fast-package r=khuey 2012-05-07 17:50:26 -07:00
Ehsan Akhgari
166aca09f9 Merge mozilla-central into mozilla-inbound 2012-04-24 21:29:44 -04:00
John O'Duinn
b2b9c79608 bug 746741: add makefile targets to encapsulate rebuild/repackage/install steps on android. r=ted, a=npotb 2012-04-24 10:45:47 -04:00
Steve Fink
868f595110 Bug 746382 - save a copy of whatever mozconfig you used into $OBJDIR/.mozconfig to make it easier to automate rebuilds. r=khuey
--HG--
extra : rebase_source : 08b3f46644fd97403b9306f9040e05d5b2f20087
2012-04-17 16:10:23 -07:00
Joey Armstrong
92ed04c94f Bug 741839 - Consolidate wildcard calls in client.mk. r=ted 2012-04-06 14:07:46 -04:00
Joey Armstrong
6984e9f693 Bug 740452 - Move check-sync-dirs test to a named target so it can be run independent of configure. r=ted 2012-04-05 18:33:21 -04:00
Joey Armstrong
15ddc7aed7 Bug 738404 - Makefile.in edits to use threadsafe mkdir (bug 680246) - r=ted 2012-04-03 16:08:16 -04:00
Nicholas Nethercote
1613a2327c Bug 715048 - Don't re-run configure if .mozconfig.mk changes. r=khuey.
--HG--
extra : rebase_source : 0c879237191cfe21113ae701b12e03e9ea17d276
2012-01-04 20:43:30 -08:00
mh
5e5b8f3b5c Bug 710147 - Pass more targets from client.mk to the build system. r=ted 2011-12-16 11:23:34 +01:00
Justin Lebar
6ad87a7fef Bug 670967 - Part 3: Pass MOZ_PGO_INSTRUMENTED=1 env var during run of instrumented PGO code. r=ted
--HG--
extra : rebase_source : 606f957525f0aa79149c832ae5d66b49d5b5ed52
2011-12-15 15:02:53 -05:00
Ed Morley
ad7c3ee8b2 Bug 707512 - Abort Windows Pymake builds with a clearer error if MOZ_OBJDIR is an MSYS style path; r=ted 2011-12-08 20:02:26 +00:00
Ed Morley
ce5d4c35f0 Bug 643167 - js/src configure should build js-config with MAKE, not GMAKE (based on patch by Kyle Huey); r=ted
* Switches js-config generation to use $MAKE rather than $GMAKE, since using
  make.exe on pymake builds causes issues:
  "config/autoconf.mk:354: *** Windows-style srcdir being used with GNU make"
* Ensures $MAKE is defined for configure when using client.mk
* For standalone js builds client.mk won't be used, so sets $MAKE manually if it
  isn't already defined, to avoid bug 605133 comment 22.
2011-12-08 20:02:26 +00:00
Chris AtLee
8d01aa9835 Bug 481815: makefile hooks required for signing executable files, installer packages, and mars. r=ted
--HG--
extra : rebase_source : 7b696910865fdbc9191cb7511f558879a9b9e05d
2011-12-07 17:06:52 -05:00
Neil Rashbrook
ec8fab59fc Bug 684617 client.mk runs configure twice r=khuey 2011-09-07 20:08:36 +01:00
Kyle Huey
5871979406 Back out Bug 659311 which made it to m-c prematurely. 2011-08-19 13:16:24 -04:00
Mike Hommey
1da0ed406e Bug 659311 - Avoid clobber between profile generate and use passes of PGO builds. r=ted 2011-05-24 16:19:15 +02:00
Mike Hommey
a168da299c Bug 677577 - Force an early failure when check-sync-dirs.py fails. r=ted 2011-08-16 09:35:17 +02:00
Joey Armstrong
bd9f983215 Bug 666908: Remove MAKE:=gmake. Fix editor colorization quoting problem. r=khuey 2011-06-24 15:00:04 -04:00
Matt Brubeck
e2840da521 Back out 9fc0e6867256, 6947bbce9672, fb91a23bd158, a5870dd2ad7c, c3d3292fbd1e, 42f2aca1fde9 to fix Android failures on a CLOSED TREE 2011-07-01 11:20:52 -07:00
Joey Armstrong
5cff72fed8 Bug 666908: Remove MAKE:=gmake. Fix editor colorization quoting problem. r=khuey 2011-06-24 15:00:04 -04:00
Michael Wu
d8e5409ec9 Bug 641614 - Fix reordering of localized files in omnijar, r=ted 2011-06-10 17:54:01 -07:00
Mike Hommey
d7434901f4 Bug 643704 - Allow to trigger PGO builds through mozconfig. r=ted 2011-03-25 19:50:29 +01:00
Kyle Huey
7e03b434dc Bug 644164: Make configure depend on the Firefox version. r=ted 2011-03-23 13:24:53 -04:00
Justin Wood
ed47071897 Bug 608036 - Cleanup some of client.mk r=khuey a=NPOTB
--HG--
extra : rebase_source : fbf93e2ba4ea8c8e83dce84424c808accae6c566
2010-10-28 14:15:15 -04:00
Michael Wu
a47bee840c Bug 589971 - Omnijar before profiling part of PGO, r=ted a=beltzner 2010-09-09 16:12:08 -04:00
Kyle Huey
97141c6762 Bug 578563: Make objdir builds the default when using client.mk. r=ted a2.0=bs 2010-08-21 09:24:34 -04:00
Neil Rashbrook
f1fe16faa5 Bug 572529 Make it even easier to build with pymake r=ted 2010-06-30 12:45:21 +01:00
Vladimir Vukicevic
01b3e28078 dummy commit 2009-09-02 00:27:27 -07:00