public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Usage of dev-utils/ninja in ebuilds
@ 2013-05-25 18:48 Mike Gilbert
  2013-05-25 19:17 ` Tom Wijsman
  2013-05-26  1:53 ` [gentoo-dev] " Ryan Hill
  0 siblings, 2 replies; 9+ messages in thread
From: Mike Gilbert @ 2013-05-25 18:48 UTC (permalink / raw
  To: Gentoo Dev; +Cc: Christoph Junghans, Chromium Herd, kde

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

For those unaware, dev-util/ninja is a make-replacement created by one
of the Chromium guys at Google. Its focus is on making incremental
builds of large software faster.

In the latest chromium ebuild (chromium-29.0.1516.3), we are using ninja
instead of make. ninja auto-detects the number of jobs to run by
default; in the chromium ebuild, we override this by passing -j
$(makeopts_jobs) instead.

Another place ninja is used cmake-utils.eclass, where it may be used
optionally in place of make depending on the CMAKE_MAKEFILE_GENERATOR
variable. The ninja_src_make function in cmake-utils.eclass calls ninja
with ${MAKEOPTS} or not depending on the value of CMAKE_VERBOSE. This is
a bit inconsistent and could cause problems because ninja only accepts a
limited subset of GNU make's command line options.

I'm wondering if we should create a more global function for calling
ninja in a consistent way. Maybe we should introduce a NINJAOPTS
variable for users to set in make.conf. Should we create a new eclass
for this, or just stick it in eutils?

Thoughts?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-05-26  4:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-25 18:48 [gentoo-dev] Usage of dev-utils/ninja in ebuilds Mike Gilbert
2013-05-25 19:17 ` Tom Wijsman
2013-05-25 19:45   ` Mike Gilbert
2013-05-26  3:01     ` "Paweł Hajdan, Jr."
2013-05-25 21:09   ` Luca Barbato
2013-05-26  1:53 ` [gentoo-dev] " Ryan Hill
2013-05-26  1:55   ` Mike Gilbert
2013-05-26  2:00   ` Alex Xu
2013-05-26  4:23     ` Ryan Hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox