Comment #2 on issue 3252 by [email protected]: it should be possible to
use ninja for every day development
http://code.google.com/p/v8/issues/detail?id=3252
I talked about this a bit with machenbach a while ago. We came up with
several possible approaches:
config approaches:
1.) Have a 'configurations' entry for every arch in gyp:
Demo:
hummer:tmp thakis$ cat test.gyp
{
'target_defaults': {
'configurations': {
'ia32': {
},
'x75': {
},
},
},
'targets': [
{
'target_name': 'hallo',
'type': 'executable',
'sources': ['hallo.c'],
},
],
}
hummer:tmp thakis$ ~/src/gyp-rw/gyp -f ninja test.gyp --depth .
hummer:tmp thakis$ ls out/
ia32 x75
Use config inheritance to reuse most settings between archs, see
inherit_from in chromium's build/common.gypi
2.) Add --suffix support to ninja generator (see
pylib/gyp/generators/make.py "options.suffix"; ninja.py could have
something similar). Then invokek gyp multiple times::
(example with make)
~/src/gyp-rw/gyp -f make test.gyp --depth . --generator-output=out
--suffix .foo
3.) Pass -Goutput_dir to ninja, once for each arch, use with a trampoline
makefile (or ninja file; doesn't matter much) to switch to the right folder
(`ninja -C out_ia32/Debug` or whatevs)
In general, the name of "out" is set by -Goutput_dir, and the subfolders in
there are set by via gyp configs.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.