[OE-core] [PATCH] cmake: refactor compile and install for easier re-use

Christopher Larson kergoth at gmail.com
Fri Feb 23 20:32:17 UTC 2018


On Fri, Feb 23, 2018 at 7:50 AM, André Draszik <git at andred.net> wrote:

> From: André Draszik <andre.draszik at jci.com>
>
> cmake_do_compile() and cmake_do_install() basically do the
> same, except they use a different --target, and at the
> moment this is copy/pasted code with a minor modification.
>
> Other recipes which e.g. might want to support compilation
> as part of ptest have to do the same. This is a bit
> inconvenient.
>
> By factoring out all of this into a common helper,
> cmake_runcmake_build(), this is easily re-used. An
> (imaginary) recipe can compile ptest support simply by
> using
>   cmake_runcmake_build --target buildtest-TESTS
> (assuming such a build target exists).
>
> Also, this now is very similar to oe_runmake().
>

If it’s similar to oe_runmake, why the long overly verbose function name
for the new function? Is oe_runcmake not viable?
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180223/e9b3146e/attachment-0002.html>


More information about the Openembedded-core mailing list