[OE-core] [PATCH] cmake: Support Eclipse and other cmake generators

Burton, Ross ross.burton at intel.com
Mon Apr 8 21:12:55 UTC 2019


Can you put that in the commit message, because I tried googling and
didn't find that list.  Maybe also expand the comment.

Ross

On Mon, 8 Apr 2019 at 22:12, Douglas Royds <douglas.royds at taitradio.com> wrote:
>
> On 9/04/19 9:04 AM, Burton, Ross wrote:
>
> On Mon, 8 Apr 2019 at 21:56, Douglas Royds <douglas.royds at taitradio.com> wrote:
>
>  python() {
>      generator = d.getVar("OECMAKE_GENERATOR")
> -    if generator == "Unix Makefiles":
> -        args = "-G 'Unix Makefiles' -DCMAKE_MAKE_PROGRAM=" + d.getVar("MAKE")
> +    if "Unix Makefiles" in generator:
> +        args = "-G '" + generator +  "' -DCMAKE_MAKE_PROGRAM=" + d.getVar("MAKE")
>
> So are there other generators such as "Unix Makefiles - Something
> Else" that needs to trigger this code path?  A real world example
> would be useful.
>
>      else:
>          bb.fatal("Unknown CMake Generator %s" % generator)
>
> Because obviously at this point, arbitrary generators are very much
> not supported yet.
>
> Ross
>
>
> Here's the complete list, from cmake --help:
>
> The following generators are available on this platform:
>   Unix Makefiles               = Generates standard UNIX makefiles.
>   Ninja                        = Generates build.ninja files.
>   Watcom WMake                 = Generates Watcom WMake makefiles.
>   CodeBlocks - Ninja           = Generates CodeBlocks project files.
>   CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
>   CodeLite - Ninja             = Generates CodeLite project files.
>   CodeLite - Unix Makefiles    = Generates CodeLite project files.
>   Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
>   Sublime Text 2 - Unix Makefiles
>                                = Generates Sublime Text 2 project files.
>   Kate - Ninja                 = Generates Kate project files.
>   Kate - Unix Makefiles        = Generates Kate project files.
>   Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
>   Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
>
> All but one of them contain one of the strings, "Unix Makefiles" or "Ninja". In each of these cases, they generate the Makefiles (or ninja files respectively), but also generate the appropriate project files, eg. .project and .cproject for Eclipse.
>
> A user can set their OECMAKE_GENERATOR to any one of these strings, except "Watcom WMake".
>
>


More information about the Openembedded-core mailing list