On Wednesday 23 June 2010, Mathias Lafeldt wrote:
> I'm currently developing CMake scripts to support the PS2 console:
> http://bitbucket.org/misfire/cmake-ps2/src/
>
> FYI, the PS2 has two processors:
> - EE (Emotion Engine, 64-bit MIPS-III R5900) and
> - IOP (I/O processor, 32-bit MIPS-I R3000)
>
> There's a working toolchain including ee-gcc, iop-gcc, binutils, etc.
> and a homebrew PS2SDK.
>
> I already got more or less working CMake scripts for EE including a
> toolchain and a platform system file. But actually, I'm a little bit
> confused about the exact usage of those files.
>
> I know that the platform file belongs to Modules/Platform/ and is
> automatically loaded depending on CMAKE_SYSTEM_NAME. But what about the
> toolchain file? It looks like they aren't part of the CMake package.

In normal (not-crosscompiling) mode, cmake checks the system it runs on to 
find out what the operating system is, the compiler, etc.
When cross compiling this is not possible, since you want to build 
for "something else".
The purpose of the toolchain file is to tell cmake what you want to build for, 
and where the stuff is it can't guess.
So, the name of the target operating system, the location of the cross 
compiler, and usually the location of the target libs and headers.

These things usually depend on the specific installation on the development 
machine, so they can't be part of cmake.

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

Reply via email to