ChrisPei / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

Teach gyp awareness of host/target OS/architecture #325

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Many gyp projects need to know about the host/target OS/architecture, and 
detect it or have it provided in variables in a variety of ways (which may or 
may not work reliably). This is also sometimes needed by gyp itself and the 
generator backends.

Currently gyp just has one setting for "flavor" which is actually "target OS". 
Some crosscompilation configurations don't work like this (e.g. building for 
Android on Mac using the make or ninja backends) and need to know the host OS 
as well to work correctly. The android backend also could make use of the 
architecture to differentiate host binaries like v8's mksnapshot which are 
actually target-arch dependent.

In order to try and get to a consistent solution to these problems, we should 
have gyp itself know what the host and target OS and architecture are. This can 
be used by gyp/generators where needed, and can be made available in variables 
similar to the existing "OS" variable for gyp files to consume. The default 
should be to detect them based on the current system and assume that 
host==target, but this should be overridable.

We should probably also rename "flavor" to "target_os" or similar, to make it 
clearer what it actually means.

Original issue reported on code.google.com by torne@chromium.org on 6 Mar 2013 at 2:56

GoogleCodeExporter commented 9 years ago

Original comment by torne@chromium.org on 6 Mar 2013 at 2:58

GoogleCodeExporter commented 9 years ago

Original comment by dpranke@chromium.org on 6 Mar 2013 at 5:20

GoogleCodeExporter commented 9 years ago
Nobody seemed interested in this, so abandoning.

Original comment by torne@chromium.org on 16 May 2013 at 10:38

GoogleCodeExporter commented 9 years ago
We're going to need this to work to support Android WebView multiarch 32/64 bit 
builds. Reopening.

Original comment by torne@chromium.org on 31 Mar 2014 at 1:42

GoogleCodeExporter commented 9 years ago

Original comment by torne@chromium.org on 31 Mar 2014 at 1:43

GoogleCodeExporter commented 9 years ago

Original comment by torne@chromium.org on 2 Apr 2014 at 5:35

GoogleCodeExporter commented 9 years ago
Discussion: 
https://groups.google.com/d/msg/gyp-developer/2E2xE3OvYkg/fbUWVTMKHpYJ

Original comment by thakis@chromium.org on 28 Aug 2014 at 1:17

GoogleCodeExporter commented 9 years ago
I'm not working on this any more, we no longer use the android backend.

Original comment by torne@chromium.org on 8 May 2015 at 5:56