On 9/04/19 9:04 AM, Burton, Ross wrote:

On Mon, 8 Apr 2019 at 21:56, Douglas Royds <douglas.ro...@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".


-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to