[CMake] Having design issues implementing Xbox360 Generator support

David Cole david.cole at kitware.com
Tue Jan 19 15:54:17 EST 2010


In this related thread from last June, I express my concern over the
proliferation of CMake "generators" :
http://www.cmake.org/pipermail/cmake/2009-June/029919.html

I would much prefer to see a "use the existing Visual Studio generator but
somehow extend the number of platforms it supports" approach for anything
that actually gets committed to the CMake repository.

Additionally, it sounds like this approach would be difficult to test in an
automated fashion. I suppose we could just test the building of a generated
XBox project, but it would be ideal if there were a way to set up an
automated dashboard test to prove that the built product runs on the target
machine.

Of course, having expressed these doubts/concerns, I must say:
It would totally rock to be able to build XBox (and PlayStation and Wii)
games with CMake...!!


David Cole
Kitware, Inc.


On Tue, Jan 19, 2010 at 3:39 PM, David Genest <david.genest at ubisoft.com>wrote:

> > XBox is x86, right ?
>
> No, it is a Power architecture (PowerPC). But the builds can all be made
> seamlessly from visual studio.
>
> > Is this cross compiling, in other words, can executables for the XBox
> > be
> > executed on the development host ?
>
> You cannot execute binaries in the development environment; it needs to be
> copied first to the development console. In a sense it is cross compiling,
> but managed by Visual Studio. So I don't think it quite fits the cross
> compiling philosophy of cmake.
>
> > I haven't read the remainder of your mail closely, but I think you have
> > quite
> > similar issues to the ones encountered for supporting Windows CE:
> > http://public.kitware.com/Bug/view.php?id=7919
>
> I have read the issue.
>
> The issue poster seemingly had similar problems with the
> CMAKE_C_STANDARD_LIBRARIES_INIT because he modified it in the presence of a
> WINCE variable. If I may, I think that windows-cl.cmake is making too much
> assumptions about what it will build.
>
> Also, the issue talks about nmake generator, and I have not implemented
> that yet. I am not yet sure if it is possible.
>
> > This is currently not progressing because of the way how to find out
> > the
> > architecture of the most simple program the given compiler has built.
>
> Correct me if I'm wrong, but in the case of a Xbox 360 build, I think it is
> sufficient to hard-code the architecture in the generator because the
> development tools and tool chain are closed and very well integrated with
> the Visual Studio environment. I would guess that the WinCE generator could
> make the same assumptions. I am not aware of any way to build for an xbox
> 360 without visual studio. Of course, this does not help with the problem of
> finding out the architecture.
>
> > Can you please check if this is the same issue as yours with the
> > Windows-cl-Xbox360.cmake file ?
>
> The implementation route that the issue poster took is quite similar to
> mine, but he seems to hardcode more variables. He also sets the
> CMAKE_SYSTEM_NAME var (to WinCE in his case). The patches submitted are in a
> kind of a mess. I think that he had the same issues, because
> windows-cl.cmake unconditionally sets flags that will override what the
> platform may have set.
>
> > Alex
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100119/2ad0c3ba/attachment.htm>


More information about the CMake mailing list