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

1132 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 0366070f0d Bug 1256988 - Move --with-gonk to moz.configure. r=chmanchester 2016-03-17 06:49:44 +09:00
Mike Hommey b9c63e7503 Bug 1257051 - Use separate target triplets for iOS and OSX. r=ted
This aligns with the triplets used by clang/llvm. Technically, this
won't break iOS builds still using -darwin triplets until we move
MOZ_IOS_SDK to moz.configure and actively reject non iOS targets with
the iOS sdk.

Also allow to distinguish iOS and OSX with target.os.
2016-03-17 06:49:44 +09:00
Mike Hommey 896fa3fd26 Followup for bug 1256568 - Improve the help message for options check_prog adds. r=gps 2016-03-16 10:55:10 +09:00
Mike Hommey 9015326e32 Bug 1256990 - Move tar detection to moz.configure. r=chmanchester 2016-03-16 08:26:47 +09:00
Mike Hommey 8c8c40342a Bug 1256622 - Allow to build spidermonkey from the top-level configure. r=gps 2016-03-16 08:26:47 +09:00
Mike Hommey a3db813ef1 Bug 1256528 - Pass AUTOCONF down to old-configure. r=gps 2016-03-16 08:26:47 +09:00
Mike Hommey 377f0ec95c Bug 1256512 - Move TARGET_CPU and TARGET_OS to moz.configure. r=chmanchester
And remove the unused TARGET_VENDOR
2016-03-16 07:12:53 +09:00
Mike Hommey 986945d9e4 Bug 1256568 - Move doxygen, zip, unzip, xargs, rpmbuild, genisoimage and dsymutil detection to moz.configure. r=gps 2016-03-15 16:40:15 +09:00
Mike Hommey 254313370d Bug 1256568 - Move perl detection to moz.configure. r=gps 2016-03-15 16:40:15 +09:00
Mike Hommey 7aad9030cf Bug 1256568 - Move awk detection to moz.configure. r=gps 2016-03-15 16:40:15 +09:00
Mike Hommey dedfa183e2 Bug 1256568 - Inject some variables set in mozconfig into moz.configure. r=gps
Because some of the existing mozconfigs may be setting some variables,
we need to inject those that are handled by moz.configure now. It likely
doesn't matter for the variables currently in moz.configure, but it will
soon become important when more things are moved to moz.configure.

In fact, it is necessary for GENISOIMAGE and DSYMUTIL that we're going
to move in this bug, set in automation mozconfigs.

The implementation is cumbersome and quite horrible. We could do better
by changing the execution model in mozbuild.configure, which is probably
necessary for other reasons as well, but that requires more work and
testing.
2016-03-15 16:40:15 +09:00
Mike Hommey 84027af8da Bug 1256507 - Remove --enable-xterm-updates. r=gps
It's an opt-in flag that allows to display where the build is in
terminal window titles. The fact that it's opt-in and likely unknown
makes it very low-value, and the fact that it was added in an era where
builds were not very well parallelized made it have a meaning, but now
that builds are parallelized, its meaningfulness is diminished.

Let's just remove it.
2016-03-15 16:40:15 +09:00
Mike Hommey d33300555c Bug 1255305 - Move --host and --target to moz.configure. r=chmanchester
With all the things that still depend on all the variables derived from
--host and --target in both old-configure and moz.build, we still need
to keep variables such as OS_ARCH, OS_TARGET, CPU_ARCH, OS_TEST, etc.

Eventually, we'd settle on the output of split_triplet.

This /tries/ to preserve the current values for all these variables,
while also trying to make things a little more consistent. It also
effectively rejects OSes such as HPUX or AIX, because it is unclear
the decades old accumulated scripts related to them still do anything
useful, and we might as well have them start again from scratch, which,
in the coming weeks, will be even easier.
2016-03-15 07:34:50 +09:00
Mike Hommey 6278d4028c Bug 1255305 - Generalize adding arguments to old-configure. r=chmanchester 2016-03-15 07:34:50 +09:00
Mike Hommey 43c7636a88 Bug 1255305 - Move the function finding a shell from old.configure to init.configure. r=chmanchester 2016-03-15 07:34:50 +09:00
Blake Winton 36e4a6bd80 Bug 1256355 - Look for homebrew's autoconf213, and fix a typo. r=gps.
MozReview-Commit-ID: yt9fKDzZ9g

--HG--
extra : rebase_source : f5693c673a929267dc10394c9f3a42b3d074639b
2016-03-14 11:06:53 -04:00
Nicolas B. Pierron cf925792db Bug 1245860 - Add --with-nspr-prefix to the list of old configure options. r=ted 2016-03-14 14:41:08 +00:00
Mike Hommey ad56d4e463 Bug 1255433 - Store old-configure.vars as utf-8 or mbcs. r=gps
The data we get out of mozconfig can be unicode, and needs to be in a
form the shell used to run old-configure will be able to recognize,
which is likely utf-8 on UNIX (that's what we settled on), and mbcs on
Windows.
2016-03-12 09:16:56 +09:00
Mike Hommey 80f68ac7a4 Bug 1255312 - Limit the options we pass down to old-configure. r=chmanchester
So far, we've been passing down all configure_args from mozconfig as
well as every flag appearing on sys.argv. This is overly broad and
causes problems for some options, like --enable-application.

However, we don't need all these options to be passed.

For the top-level old-configure, we need to pass the flags it can
handle, as well as the flags that we want passed down to
js/src/configure.

For js/src/old-configure, we only need to pass the flags it can handle.

The flags an old-configure can handle is defined by the list of flags
in @old_configure_options. The list of flags to pass down to
js/src/configure is defined by extra_old_configure_args.

And since the mozconfig configure_args are being injected into python
configure processing, the list of values we get in old_configure includes
the mozconfig configure_args.
2016-03-12 09:16:48 +09:00
Mike Hommey 3df9b47d3e Fixup for bug 1255667 - Use the absolute path of OLD_CONFIGURE. r=me 2016-03-11 15:33:18 +09:00
Mike Hommey 743482d107 Followup for bug 1255197 - Remove unused dependencies from prepare_configure. r=me 2016-03-11 13:52:39 +09:00
Mike Hommey b5d512b98a Bug 1255667 - Don't read the mozconfig for the js configure. r=gps
While the long term goal is that js and top-level use the same configure
and the same overall setup, including the possibility to use mozconfigs,
figuring out what we want to do wrt mozconfig vs. command line and
environment variable is not a clear-cut case, and it's more important to
fix the immediate problem mozconfig causes to js developers by
"temporarily" returning to the previous behavior of not loading the
mozconfig for the js configure.

This was already done in the case of running it as a subconfigure, this
extends the exception. Unfortunately, there is no direct way to tell
whether the running configure is the js configure. The indirect way is
to look at the OLD_CONFIGURE path, which points to
js/src/old-configure.

I expect we'll have figured things out for mozconfigs well before
old-configure dies.
2016-03-11 12:16:12 +09:00
Mike Hommey 9344631411 Bug 1255197 - Avoid cumulating dependencies in prepare_configure(). r=chmanchester 2016-03-11 09:38:28 +09:00
Mike Hommey aa23cc29a6 Bug 1254906 - Move --disable-shared-js and --disable-export-js to moz.configure. r=chmanchester 2016-03-11 09:38:28 +09:00
Mike Hommey bf9a11821c Bug 1255185 - Move --with-external-source-dir to moz.configure. r=chmanchester 2016-03-10 13:54:02 +09:00
Mike Hommey e6d395b495 Bug 1254873 - Make --disable-js-shell the default for non-js-standalone builds. r=chmanchester
The implementation is a bit circumvoluted, but we do need to share
options between the top-level and js/src configures, possibly with
different defaults, and to properly pass things down from one to
the other. Until we are further down the road and can actually merge
both configures, this is a necessary evil.
2016-03-10 13:54:02 +09:00
Patrick Cloke c0a4f01d07 Bug 1254795 - Add missing --enable flags to old.configure. r=glandium
--HG--
extra : amend_source : 66a4cc84b21f8af8a26f21ae7aebbbcacf3c1356
2016-03-08 18:38:00 +01:00
Mike Hommey 7af16cb3a7 No bug - Fixup whitespaces in build/moz.configure/{init,old}.configure. r=me 2016-03-09 11:40:48 +09:00
Mike Hommey 564de8ea0e Bug 1254410 - Include app-specific configure files according to --enable-application/--enable-project. r=chmanchester
Because --enable-application is the current way to do things, transpose
it to configure.py, but since --enable-application=js doesn't make
sense, make it an alias of a new --enable-project option.

This only partially moves --enable-application out of old-configure.in
because there are a lot of other things intertwined with it.
2016-03-09 09:23:27 +09:00
Mike Hommey 849ac02d19 Bug 1253553 - Move --enable-artifact-builds, --disable-compile-environment and --enable-build-backend to moz.configure. r=nalexander,r=chmanchester
Note I'm using raw primitives until patterns emerge and we decide on
some helpers.
2016-03-08 15:41:32 +09:00
Mike Hommey 9ac013d5cf Bug 1253502 - Move python virtualenv initialization to moz.configure. r=gps 2016-03-08 15:41:32 +09:00
Mike Hommey 74b4506047 Bug 1253203 - Move parts of configure.py into sandboxed moz.configure. r=nalexander,r=chmanchester
This moves all the reading mozconfig, finding autoconf, refreshing the
old configure, and running the old configure into sandboxed
moz.configure. This effectively bootstraps the sandboxed python configure.
2016-03-08 15:41:32 +09:00