Hi,

I'll submit a patch as soon as I've managed to work around some remaining 
issues. After messing around with some registry stuff, here's where I'm 
currently standing. I had a hard time to find whether VS stores the information 
on all the different SDKs in the registry or in a file. Concerning Windows 
Mobile they are stored in a config file called 
${VSHOME}\VC\vcpackages\WCE.VCPlatform.config. Now I'm using a special XML 
parser engine derived from cmXMLParser to parse it and to get a vector of 
structs containing all the information, including the used instruction set, the 
exact SDK name, etc. 
I also removed the need for the additional command line flags. All the 
toolchain-based stuff moved into the generator, because the only important flag 
to set is the "WINCE" flag to access the platform specific files. Everything 
else can also be parsed from the SDK definitions. Also the compilers/assemblers 
are set in the generator itself, because basically it is just a change of 
executables within VS (because they are part of VS anyway).
Now I end up having a generator with a set of SDKs and, unfortunately, only one 
possibility to set "this->PlatformName" to one of the SDKs. This means that it 
would be necessary to either
- use a user-dialog based selection of the SDKs found, which might not be easy, 
or
- introduce some additinal functionality into the VS generators (or at least 
this one) to set up projects for all platforms found (which would be my 
preferred solution). 
In principle, the second way should not be that hard, as most of the 
functionality is already there. As I've stated before I guess that there has to 
be a second layer, which simply "loops" through a vector of platforms; this 
will be my next step. One open question is how to pass specific options from 
outside using a CMakeLists.txt to a specific platform within the generator. 
However, I have not really thought about that yet.

Regards
Clemens

-------- Original-Nachricht --------
> Datum: Sun, 6 Jul 2008 11:26:43 +0200
> Von: Alexander Neundorf <[EMAIL PROTECTED]>
> An: cmake@cmake.org
> Betreff: Re: [CMake] Visual Studio and Windows Mobile SDKs

> On Friday 04 July 2008, Clemens Arth wrote:
> > Hi,
> >
> > here's a short progress report. I've now managed to get my project
> compiled
> > with Visual Studio 2008 with and without support for Windows Mobile 5
> SDK;
> 
> Cool :-)
> 
> > I basically managed that by compiling cmake from scratch, introducing a
> new
> > proprietary generator into the sources
> > (cmGlobalVisualStudio9_WindowsMobile5_Generator). Finally, this was
> > necessary just to get a rather simple thing done, namely setting the
> > platform name to the SDK name instead of "Win32". 
> 
> Maybe then it is not really necessary to add an extra generator. 
> Can you please send the patch ?
> 
> Alex
> _______________________________________________
> CMake mailing list
> CMake@cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to