Openembedded Core Discussions
 help / color / mirror / Atom feed
* [RFC][PATCH][V2] cmake: respect ${S} and ${B}
@ 2014-01-10 17:54 Ross Burton
  2014-01-10 17:54 ` [PATCH 1/3] " Ross Burton
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ross Burton @ 2014-01-10 17:54 UTC (permalink / raw)
  To: openembedded-core

Hi,

Here is V2 of my cmake ${S}/${B} patch.  The class isn't that changed since V1,
apart from the addition of a note if the recipe has set OECMAKE_SOURCEPATH or
_BUILDPATH.

Then there's the choice of what we do with the default for ${B}.  One patch sets
${B} in separatebuilddir.inc for libproxy and taglib in oe-core.  The
alternative is to set B in cmake.bbclass directly to ${WORKDIR}/build.

Either way, this change to the class isn't backwards-compatible with many
recipes in the wild due to various ways of doing out-of-tree builds in meta-oe.
A branch that fixes up meta-oe (by generally deleting lines) is available in
meta-oe-contrib:ross/cmake for reference.  Some recipes are using
OECMAKE_SOURCEPATH/_BUILDPATH, and others are doing out-of-tree builds
"manually" by passing arguments to EXTRA_OECMAKE and doing cd's in
do_compile_prepend. Yuck.

Personally, I'd say we should merge cmake.bbclass with B set inside it by
default.  In my testing against meta-oe, only piglit is troublesome and that can
set B=${S}, everything else seems to be working fine once the recipes were cleaned up.

Ross



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

end of thread, other threads:[~2014-01-21 11:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-10 17:54 [RFC][PATCH][V2] cmake: respect ${S} and ${B} Ross Burton
2014-01-10 17:54 ` [PATCH 1/3] " Ross Burton
2014-01-13 22:06   ` Saul Wold
2014-01-13 22:15     ` Saul Wold
2014-01-14 10:24       ` Burton, Ross
2014-01-10 17:54 ` [PATCH 2/3] separatebuilddir: build libproxy and taglib out of the source tree Ross Burton
2014-01-10 17:54 ` [PATCH 3/3] cmake: default to out-of-tree builds Ross Burton
2014-01-16 10:26   ` Stefan Herbrechtsmeier
2014-01-21 11:39     ` Burton, Ross

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